Skip to content

Commit

Permalink
[t609] parser unit tests loading data twice
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDowne committed Jun 24, 2011
1 parent b4d7736 commit 40f73dc
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 16 deletions.
1 change: 0 additions & 1 deletion parsers/parserSBV/popcorn.parserSBV.unit.html
Expand Up @@ -26,7 +26,6 @@ <h2 id="qunit-userAgent"></h2>
<video id='video'
controls
width= '250px'
data-timeline-sources="data/data.sbv"
poster="../../test/poster.png">

<source id='mp4'
Expand Down
2 changes: 1 addition & 1 deletion parsers/parserSBV/popcorn.parserSBV.unit.js
Expand Up @@ -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);

Expand Down
3 changes: 1 addition & 2 deletions parsers/parserSRT/popcorn.parserSRT.unit.html
Expand Up @@ -26,7 +26,6 @@ <h2 id="qunit-userAgent"></h2>
<video id='video'
controls
width="250px"
data-timeline-sources="./data/unit.srt"
poster="../../test/poster.png">

<source id='mp4'
Expand All @@ -41,4 +40,4 @@ <h2 id="qunit-userAgent"></h2>

</video>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions parsers/parserSRT/popcorn.parserSRT.unit.js
Expand Up @@ -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 );
Expand Down Expand Up @@ -105,4 +105,4 @@ test("Popcorn 0.3 SRT Parser Plugin", function () {

}, 500);

});
});
1 change: 0 additions & 1 deletion parsers/parserSSA/popcorn.parserSSA.unit.html
Expand Up @@ -26,7 +26,6 @@ <h2 id="qunit-userAgent"></h2>
<video id='video'
controls
width= '250px'
data-timeline-sources="data/data.ssa"
poster="../../test/poster.png">

<source id='mp4'
Expand Down
2 changes: 1 addition & 1 deletion parsers/parserSSA/popcorn.parserSSA.unit.js
Expand Up @@ -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 );
Expand Down
1 change: 0 additions & 1 deletion parsers/parserTTML/popcorn.parserTTML.unit.html
Expand Up @@ -26,7 +26,6 @@ <h2 id="qunit-userAgent"></h2>
<video id='video'
controls
width= '250px'
data-timeline-sources="data/unit.ttml"
poster="../../test/poster.png">

<source id='mp4'
Expand Down
2 changes: 1 addition & 1 deletion parsers/parserTTML/popcorn.parserTTML.unit.js
Expand Up @@ -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 );
Expand Down
1 change: 0 additions & 1 deletion parsers/parserTTXT/popcorn.parserTTXT.unit.html
Expand Up @@ -26,7 +26,6 @@ <h2 id="qunit-userAgent"></h2>
<video id='video'
controls
width= '250px'
data-timeline-sources="data/unit.TTXT"
poster="../../test/poster.png">

<source id='mp4'
Expand Down
2 changes: 1 addition & 1 deletion parsers/parserTTXT/popcorn.parserTTXT.unit.js
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions parsers/parserVTT/popcorn.parserVTT.unit.html
Expand Up @@ -26,7 +26,6 @@ <h2 id="qunit-userAgent"></h2>
<video id='video'
controls
width= '250px'
data-timeline-sources="data/unit.vtt"
poster="../../test/poster.png">

<source id='mp4'
Expand All @@ -41,4 +40,4 @@ <h2 id="qunit-userAgent"></h2>

</video>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions parsers/parserVTT/popcorn.parserVTT.unit.js
Expand Up @@ -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 );

Expand All @@ -64,4 +64,4 @@ test( "Popcorn 0.3 WebSRT/VTT Parser Plugin", function () {

}, 500);

});
});

0 comments on commit 40f73dc

Please sign in to comment.