]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Fix minor unit test error [#290]
authorstevenaw <sweerdenburg@gmail.com>
Tue, 25 Jan 2011 22:34:02 +0000 (17:34 -0500)
committerstevenaw <sweerdenburg@gmail.com>
Tue, 25 Jan 2011 22:34:02 +0000 (17:34 -0500)
parsers/parserSRT/popcorn.parserSRT.unit.html
parsers/parserSRT/popcorn.parserSRT.unit.js

index f6ecffd20a6dc5122779d2b919d1dedde0b0c3cc..6f987c406ce3dd3f20045b299d51780b69e50b0d 100644 (file)
@@ -8,12 +8,12 @@
 do not move - this must be called immediately prior to
 popcorn-api-draft.js
 -->
-  
+
   <script src="../../popcorn.js"></script>
+
+  <script src="popcorn.parserSRT.js"></script>
   <script src="../../plugins/subtitle/popcorn.subtitle.js"></script>
-  <script src="popcorn.parseSRT.js"></script>
-  
-  <script src="popcorn.parseSRT.unit.js"></script>
+  <script src="popcorn.parserSRT.unit.js"></script>
 </head>
 <body>
   <h1 id="qunit-header">Popcorn 0.3 SRT parser Plug-in Test</h1>
index dc0ff2fd96c5e5b5d02a3c090dadb9aac31b3649..80e56c3a8a58993159c532d7e3228620dedf882e 100644 (file)
@@ -22,14 +22,13 @@ test("Popcorn 0.3 SRT Parser Plugin", function () {
   expect(expects);
   
   stop( 10000 );
-
-  alert("HI");
+  
   // Allow load time
   setTimeout(function () {
     Popcorn.forEach(poppercorn.getTrackEvents(), function(evt) {
       if(evt._natives.type === "subtitle") {
         numSubs++;
-        key = Math.ceil(evt.start).toString();
+        key = evt.start.toString();
         equals(subs[key], evt.text , "Correct amounts" );
         plus();
       }