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

Unified Diff: LayoutTests/compositing/video-page-visibility.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 10 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 | « LayoutTests/compositing/video-frame-size-change.html ('k') | LayoutTests/resources/run-after-display.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/video-page-visibility.html
diff --git a/LayoutTests/compositing/video-page-visibility.html b/LayoutTests/compositing/video-page-visibility.html
index a813df3c6597a2d3aff6d79756007193d9fc75fe..d4026f51de9acef701ccb17ff044548e611c83e6 100644
--- a/LayoutTests/compositing/video-page-visibility.html
+++ b/LayoutTests/compositing/video-page-visibility.html
@@ -1,5 +1,6 @@
<html>
<head>
+ <script src="../resources/run-after-display.js"></script>
<style>
video {
width: 400px;
@@ -20,10 +21,10 @@
video.src = 'resources/video.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mp4');
video.addEventListener('canplaythrough', function() {
if (window.testRunner) {
- testRunner.display();
- testRunner.setPageVisibility("hidden");
- testRunner.display();
- testRunner.notifyDone();
+ runAfterDisplay(function() {
+ testRunner.setPageVisibility("hidden");
+ testRunner.notifyDone();
+ });
}
}, false);
</script>
« no previous file with comments | « LayoutTests/compositing/video-frame-size-change.html ('k') | LayoutTests/resources/run-after-display.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698