Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Reduce throttling on video-buffering-repaints-controls test to preven…
…t timeout. https://bugs.webkit.org/show_bug.cgi?id=76113 Also reduces flakiness by checking for a repaint between progress and suspend events versus just between progress events. Patch by Dale Curtis <dalecurtis@chromium.org> on 2012-01-23 Reviewed by Adam Barth. * http/tests/media/video-buffering-repaints-controls-expected.txt: Added. * http/tests/media/video-buffering-repaints-controls.html: * platform/chromium-linux/http/tests/media/video-buffering-repaints-controls-expected.png: * platform/chromium-mac-snowleopard/http/tests/media/video-buffering-repaints-controls-expected.txt: Removed. * platform/chromium-win/http/tests/media/video-buffering-repaints-controls-expected.txt: Removed. * platform/chromium/test_expectations.txt: * platform/gtk/http/tests/media/video-buffering-repaints-controls-expected.txt: Removed. Canonical link: https://commits.webkit.org/93685@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@105651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
1113704
commit ab101ff63d3746248b718229e3001bfe188393a6
Showing
8 changed files
with
38 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,4 @@ | ||
Test that media controls repaint correctly during paused states when new data is buffered. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,36 +1,34 @@ | ||
<html> | ||
<head> | ||
<script src="../../media-resources/media-file.js"></script> | ||
<script> | ||
var painted = false; | ||
function start() { | ||
if (window.layoutTestController) | ||
layoutTestController.waitUntilDone(); | ||
<head> | ||
<script src="../../media-resources/media-file.js"></script> | ||
<script> | ||
function start() { | ||
if (window.layoutTestController) { | ||
layoutTestController.dumpAsText(true); | ||
layoutTestController.waitUntilDone(); | ||
} | ||
|
||
var video = document.querySelector('video'); | ||
|
||
video.addEventListener('progress', function(event) { | ||
// Each progress event should correlate to a repaint. Check | ||
// by watching for a repaint between progress events. | ||
if (painted) { | ||
layoutTestController.notifyDone(); | ||
} else { | ||
layoutTestController.display(); | ||
painted = true; | ||
} | ||
layoutTestController.display(); | ||
}, false); | ||
|
||
video.addEventListener('suspend', function(event) { | ||
layoutTestController.notifyDone(); | ||
}, false); | ||
|
||
var mediaFile = findMediaFile("video", "resources/test"); | ||
var mimeType = mimeTypeForFile(mediaFile); | ||
|
||
// Don't actually play since we're testing via an image diff. | ||
video.src = 'http://127.0.0.1:8000/media/video-throttled-load.cgi?&name=' + mediaFile + '&throttle=10&type=' + mimeType | ||
video.src = 'http://127.0.0.1:8000/media/video-throttled-load.cgi?&name=' + mediaFile + '&throttle=80&type=' + mimeType | ||
} | ||
</script> | ||
</head> | ||
|
||
<body onload="start();"> | ||
<p>Test that media controls repaint correctly during paused states when new data is buffered.</p> | ||
<video controls preload></video><br/> | ||
</body> | ||
</body> | ||
</html> |
BIN
-103 Bytes
(100%)
.../chromium-linux/http/tests/media/video-buffering-repaints-controls-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.