]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[t609] parser unit tests loading data twice
authorScottDowne <sdowne@learn.senecac.on.ca>
Fri, 24 Jun 2011 15:39:32 +0000 (11:39 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Fri, 24 Jun 2011 15:39:32 +0000 (11:39 -0400)
12 files changed:
parsers/parserSBV/popcorn.parserSBV.unit.html
parsers/parserSBV/popcorn.parserSBV.unit.js
parsers/parserSRT/popcorn.parserSRT.unit.html
parsers/parserSRT/popcorn.parserSRT.unit.js
parsers/parserSSA/popcorn.parserSSA.unit.html
parsers/parserSSA/popcorn.parserSSA.unit.js
parsers/parserTTML/popcorn.parserTTML.unit.html
parsers/parserTTML/popcorn.parserTTML.unit.js
parsers/parserTTXT/popcorn.parserTTXT.unit.html
parsers/parserTTXT/popcorn.parserTTXT.unit.js
parsers/parserVTT/popcorn.parserVTT.unit.html
parsers/parserVTT/popcorn.parserVTT.unit.js

index 43b78ea10d71d0b632a0181c66e71f9c56790389..33bf622aa1b485870488abc7d2be416642a47161 100644 (file)
@@ -26,7 +26,6 @@
   <video id='video' 
     controls
     width= '250px'
-    data-timeline-sources="data/data.sbv"
     poster="../../test/poster.png"> 
 
     <source id='mp4'
index 8ce17b63719fe0d84523a1b2c25d5cd4fb8699ef..a477834385604208144676a9d8a2e5fbfae227b5 100644 (file)
@@ -29,7 +29,7 @@ test( "Popcorn 0.3 SBV Parser Plugin", function () {
     }
   }
   
-  poppercorn.parseSBV( document.getElementById( "video" ).getAttribute( "data-timeline-sources" ) );
+  poppercorn.parseSBV( "data/data.sbv" );
   
   expect(expects);
   
index 572a9f42a7e65c3634121fcfc2199efd5e7a7a0b..3f75cec3889abafc44497b35dc5c3b3650446f23 100644 (file)
@@ -26,7 +26,6 @@ popcorn-api-draft.js
   <video id='video'
     controls
     width="250px"
-    data-timeline-sources="./data/unit.srt"
     poster="../../test/poster.png">
 
     <source id='mp4'
@@ -41,4 +40,4 @@ popcorn-api-draft.js
 
   </video>
 </body>
-</html>
\ No newline at end of file
+</html>
index 11474e13224638448dcc7a33754c0d617e0f164d..4a3a9818e4216dd0c205cfbbbc5ab5e07e527394 100644 (file)
@@ -74,7 +74,7 @@ test("Popcorn 0.3 SRT Parser Plugin", function () {
     }
   }
   
-  poppercorn.parseSRT( document.getElementById( 'video' ).getAttribute( 'data-timeline-sources' ) );
+  poppercorn.parseSRT( "data/unit.srt" );
   
   expects = expectedSubs.length*4+1;
   expect( expects );
@@ -105,4 +105,4 @@ test("Popcorn 0.3 SRT Parser Plugin", function () {
 
   }, 500);
   
-});
\ No newline at end of file
+});
index 4903e3c00e9243e8baa4258c5162ffb02d084a82..c9e4c92c7c906ac9025133ab8c7ad48aea2db252 100644 (file)
@@ -26,7 +26,6 @@
   <video id='video' 
     controls
     width= '250px'
-    data-timeline-sources="data/data.ssa"
     poster="../../test/poster.png"> 
 
     <source id='mp4'
index 5ba1d76ffa60edf62a6477f3e6b11854b8c32b9b..37eb030142fd515924bbf585d5ea91c3f620f212 100644 (file)
@@ -29,7 +29,7 @@ test( "Popcorn 0.3 SSA/ASS Parser Plugin", function () {
     }
   }
   
-  poppercorn.parseSSA( document.getElementById( "video" ).getAttribute( "data-timeline-sources" ) );
+  poppercorn.parseSSA( "data/data.ssa" );
   
   expect( expects );
   stop( 5000 );
index 1586e513e3304ed0946a7cdde13d77184e2ccb7d..eb8c2cca4c74b745c61a1ca0a76e802386b6bad2 100644 (file)
@@ -26,7 +26,6 @@
   <video id='video' 
     controls
     width= '250px'
-    data-timeline-sources="data/unit.ttml"
     poster="../../test/poster.png"> 
 
     <source id='mp4'
index 193021843133e93c7b09feb67854c0fbb10fd5dd..330b6527d3be6dfdeed273869a0cf11fd41128d5 100644 (file)
@@ -73,7 +73,7 @@ test( "Popcorn 0.3 TTML Parser Plugin", function () {
     }
   }
   
-  poppercorn.parseTTML( document.getElementById( 'video' ).getAttribute( "data-timeline-sources" ) );
+  poppercorn.parseTTML( "data/unit.ttml" );
   
   expect( expects );
   stop( 5000 );
index 3b4b232497f8e94bc64d5aa314c5981f1c463f4a..e867e4a86c82cb6945575d6b2bbd74cc0a7d0515 100644 (file)
@@ -26,7 +26,6 @@
   <video id='video' 
     controls
     width= '250px'
-    data-timeline-sources="data/unit.TTXT"
     poster="../../test/poster.png"> 
 
     <source id='mp4'
index 681bf73663ab17f56141bebde0b6be76fdb4f1f8..1cedc34ba9f0da3c5fdefaf4e100815fd8e7ad9e 100644 (file)
@@ -29,7 +29,7 @@ test("Popcorn 0.3 TTXT Parser Plugin", function () {
     }
   }
   
-  poppercorn.parseTTXT(document.getElementById('video').getAttribute('data-timeline-sources'));
+  poppercorn.parseTTXT( "data/unit.TTXT" );
   
   expects = subs.length*3+1;
   expect(expects);
index 86ce76b1811ae7054874138a21b518f9f329f43b..3a23e37a44b73f924cf706684b7bd3a4f0bdbb9b 100644 (file)
@@ -26,7 +26,6 @@ popcorn-api-draft.js
   <video id='video'
     controls
     width= '250px'
-    data-timeline-sources="data/unit.vtt"
     poster="../../test/poster.png">
 
     <source id='mp4'
@@ -41,4 +40,4 @@ popcorn-api-draft.js
 
   </video>
 </body>
-</html>
\ No newline at end of file
+</html>
index 2f41da3be031af7a635cb2574f31b18f967c1a06..c8ea8f4f6a0d464d85d2634b2b410382b80e295b 100644 (file)
@@ -38,7 +38,7 @@ test( "Popcorn 0.3 WebSRT/VTT Parser Plugin", function () {
     }
   }
   
-  poppercorn.parseVTT( document.getElementById( 'video' ).getAttribute( 'data-timeline-sources' ) );
+  poppercorn.parseVTT( "data/unit.vtt" );
   expect( expects );
   stop( 5000 );
   
@@ -64,4 +64,4 @@ test( "Popcorn 0.3 WebSRT/VTT Parser Plugin", function () {
 
   }, 500);
   
-});
\ No newline at end of file
+});