fixed tests that always fail due to slow execution

This commit is contained in:
Christopher De Cairos 2011-05-18 09:47:02 -04:00
Родитель c617f525d8
Коммит e89850eb49
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -51,6 +51,9 @@ test("Popcorn Subtitle Plugin", function () {
popped.exec( 0.5, function() {
equals( subtitlediv.innerHTML, "this is the first subtitle of 2011", "subtitle displaying correct information" );
plus();
// capturing location now, to check against later,
// a subtitle must be displayed to get valid data
// which is why we do this in exec
@ -62,8 +65,7 @@ test("Popcorn Subtitle Plugin", function () {
popped.media.style.left = "400px";
popped.media.style.top = "600px";
equals( subtitlediv.innerHTML, "this is the first subtitle of 2011", "subtitle displaying correct information" );
plus();
});
popped.exec( 1.5, function() {