Title: [105228] trunk/LayoutTests
- Revision
- 105228
- Author
- [email protected]
- Date
- 2012-01-17 18:43:13 -0800 (Tue, 17 Jan 2012)
Log Message
Fix media handling in compositing tests after r105219.
Reviewed by James Robinson.
Seeking seems to have issues on Chromium, and cause these tests to
timeout, so change the tests to play, then seek back to time 0.
New image results now show the first frame of the movie.
* compositing/resources/media-testing.js:
(ensureFrameVisible):
* platform/mac/compositing/geometry/video-fixed-scrolling-expected.png:
* platform/mac/compositing/geometry/video-opacity-overlay-expected.png:
* platform/mac/compositing/layers-inside-overflow-scroll-expected.png:
* platform/mac/compositing/reflections/load-video-in-reflection-expected.png:
* platform/mac/compositing/self-painting-layers-expected.png:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (105227 => 105228)
--- trunk/LayoutTests/ChangeLog 2012-01-18 02:18:28 UTC (rev 105227)
+++ trunk/LayoutTests/ChangeLog 2012-01-18 02:43:13 UTC (rev 105228)
@@ -1,3 +1,22 @@
+2012-01-17 Simon Fraser <[email protected]>
+
+ Fix media handling in compositing tests after r105219.
+
+ Reviewed by James Robinson.
+
+ Seeking seems to have issues on Chromium, and cause these tests to
+ timeout, so change the tests to play, then seek back to time 0.
+
+ New image results now show the first frame of the movie.
+
+ * compositing/resources/media-testing.js:
+ (ensureFrameVisible):
+ * platform/mac/compositing/geometry/video-fixed-scrolling-expected.png:
+ * platform/mac/compositing/geometry/video-opacity-overlay-expected.png:
+ * platform/mac/compositing/layers-inside-overflow-scroll-expected.png:
+ * platform/mac/compositing/reflections/load-video-in-reflection-expected.png:
+ * platform/mac/compositing/self-painting-layers-expected.png:
+
2012-01-17 Ojan Vafai <[email protected]>
Tweak results.html keyboard handling and flagging UI
Modified: trunk/LayoutTests/compositing/resources/media-testing.js (105227 => 105228)
--- trunk/LayoutTests/compositing/resources/media-testing.js 2012-01-18 02:18:28 UTC (rev 105227)
+++ trunk/LayoutTests/compositing/resources/media-testing.js 2012-01-18 02:43:13 UTC (rev 105228)
@@ -2,19 +2,25 @@
if (window.layoutTestController)
layoutTestController.waitUntilDone();
-function ensureFrameVisible(video, videoRenderedCallbac)
+function ensureFrameVisible(video, videoRenderedCallback)
{
- video.addEventListener('seeked', videoRenderedCallbac, false);
- video.currentTime = 0.5;
+ video.addEventListener('timeupdate', function() {
+ video.pause();
+ video.currentTime = 0;
+ if (videoRenderedCallback)
+ videoRenderedCallback();
+ }, false);
+
+ video.play();
}
-function setupVideo(videoElement, videoPath, canPlayThroughCallback, videoRenderedCallbac)
+function setupVideo(videoElement, videoPath, canPlayThroughCallback, videoRenderedCallback)
{
var mediaFile = findMediaFile("video", videoPath);
videoElement.addEventListener("canplaythrough", function () {
if (canPlayThroughCallback)
canPlayThroughCallback();
- ensureFrameVisible(this, videoRenderedCallbac);
+ ensureFrameVisible(this, videoRenderedCallback);
}, false);
videoElement.src = ""
}
Modified: trunk/LayoutTests/platform/mac/compositing/geometry/video-fixed-scrolling-expected.png
(Binary files differ)
Modified: trunk/LayoutTests/platform/mac/compositing/geometry/video-opacity-overlay-expected.png
(Binary files differ)
Modified: trunk/LayoutTests/platform/mac/compositing/layers-inside-overflow-scroll-expected.png
(Binary files differ)
Modified: trunk/LayoutTests/platform/mac/compositing/reflections/load-video-in-reflection-expected.png
(Binary files differ)
Modified: trunk/LayoutTests/platform/mac/compositing/self-painting-layers-expected.png
(Binary files differ)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes