Changeset 52881 in webkit
- Timestamp:
- Jan 6, 2010 4:30:40 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52879 r52881 1 2010-01-06 Ojan Vafai <ojan@chromium.org> 2 3 Reviewed by Eric Carlson. 4 5 media/video-seeking.html is flaky 6 https://bugs.webkit.org/show_bug.cgi?id=33273 7 8 Removed setTimeouts from this test. It kind of looks 9 like they were intentional, but I don't see how they add 10 anything to this test (other than race conditions). 11 12 * media/video-seeking-expected.txt: 13 * media/video-seeking.html: 14 1 15 2010-01-06 Ojan Vafai <ojan@chromium.org> 2 16 -
trunk/LayoutTests/media/video-seeking-expected.txt
r50063 r52881 6 6 EVENT(seeked) 7 7 8 EXPECTED (seekedCount == '1') OK9 8 EXPECTED (video.seeking == 'false') OK 10 9 EXPECTED (video.currentTime == '0.5') OK … … 14 13 EVENT(seeked) 15 14 16 EXPECTED (seekedCount == '2') OK17 15 EXPECTED (video.seeking == 'false') OK 18 16 EXPECTED (video.currentTime == '1') OK … … 22 20 EVENT(seeked) 23 21 24 EXPECTED (seekedCount == '3') OK25 22 EXPECTED (video.seeking == 'false') OK 26 23 EXPECTED (video.currentTime == '1.5') OK -
trunk/LayoutTests/media/video-seeking.html
r50063 r52881 9 9 10 10 var seekedCount = 0; 11 var counter;12 11 13 12 function seeked() … … 15 14 ++seekedCount; 16 15 consoleWrite(""); 17 }18 16 19 function someTimeLater()20 {21 testExpected("seekedCount", counter);22 17 testExpected("video.seeking", false); 23 testExpected("video.currentTime", counter* 0.5);24 run("video.currentTime = " + ( counter+ 1) * 0.5);18 testExpected("video.currentTime", seekedCount * 0.5); 19 run("video.currentTime = " + (seekedCount + 1) * 0.5); 25 20 testExpected("video.seeking", true); 26 21 27 if (counter == 3)28 { 29 consoleWrite("");22 consoleWrite(""); 23 24 if (seekedCount == 3) 30 25 endTest(); 31 }32 33 ++counter;34 consoleWrite("");35 26 } 36 27 … … 38 29 { 39 30 run("video.currentTime = 0.5"); 40 counter = 1;41 setTimeout(someTimeLater, 200)42 setTimeout(someTimeLater, 400)43 setTimeout(someTimeLater, 600)44 31 consoleWrite(""); 45 32 }
Note: See TracChangeset
for help on using the changeset viewer.