]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#619] clean up XML parser unit test
authorScottDowne <sdowne@learn.senecac.on.ca>
Fri, 24 Jun 2011 21:22:29 +0000 (17:22 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Fri, 24 Jun 2011 21:22:29 +0000 (17:22 -0400)
parsers/parserXML/popcorn.parserXML.unit.js

index 84e0d08219a5e690fc696605862431573e5492ed..495774ee1058bd3b954d23f606a86061d6fd126b 100644 (file)
@@ -53,11 +53,8 @@ test("Popcorn 0.1 XML Parser Plugin", function () {
     end: function ( event, options ) {}
   });
 
-  poppercorn.parseXML("data/unit.XML");
-
-  // interval used to wait for data to be parsed
-  interval = setInterval( function() {
-    poppercorn.currentTime(5).play().currentTime(6);
-  }, 2000);
-  
+  poppercorn.parseXML("data/unit.XML", function() {
+    poppercorn.currentTime(5);
+  });  
 });
+