Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Unified Diff: third_party/WebKit/LayoutTests/compositing/video/video-reflection.html

Issue 2238043002: Fix multiple test result printing and rebaseline compositing/video/video-reflection.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/compositing/video/video-reflection.html
diff --git a/third_party/WebKit/LayoutTests/compositing/video/video-reflection.html b/third_party/WebKit/LayoutTests/compositing/video/video-reflection.html
index 6e7ab3efd565f3f2f0beff4571274c8ef736909b..2e07e350771a483c5d4cbf05056d1b4f7d157eb5 100644
--- a/third_party/WebKit/LayoutTests/compositing/video/video-reflection.html
+++ b/third_party/WebKit/LayoutTests/compositing/video/video-reflection.html
@@ -6,6 +6,7 @@
(Please avoid writing new tests using video-test.js) -->
<script src="../../media/video-test.js"></script>
<script type="text/javascript">
+ var testedOnce = false;
if (window.testRunner) {
window.testRunner.dumpAsTextWithPixelResults();
window.testRunner.waitUntilDone();
@@ -21,10 +22,14 @@
video.currentTime = 1;
}
function seeked(e) {
- testExpected('video.currentTime', 1);
+ if (!testedOnce) {
+ testExpected('video.currentTime', 1);
- if (window.testRunner)
- setTimeout(function() { testRunner.notifyDone(); }, 150);
+ if (window.testRunner)
+ setTimeout(function() { testRunner.notifyDone(); }, 150);
+
+ testedOnce = true;
+ }
}
</script>
<style>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698