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

Unified Diff: LayoutTests/compositing/iframes/connect-compositing-iframe2.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
Index: LayoutTests/compositing/iframes/connect-compositing-iframe2.html
diff --git a/LayoutTests/compositing/iframes/connect-compositing-iframe2.html b/LayoutTests/compositing/iframes/connect-compositing-iframe2.html
index 40f841f83e17f2f23c417838d9d68bb05989dfad..c0ec3d7092773391f32e15607e6342bda60034e6 100644
--- a/LayoutTests/compositing/iframes/connect-compositing-iframe2.html
+++ b/LayoutTests/compositing/iframes/connect-compositing-iframe2.html
@@ -2,6 +2,7 @@
<html>
<head>
+ <script src="../../resources/run-after-display.js"></script>
<style type="text/css" media="screen">
iframe {
border: 10px solid black;
@@ -31,15 +32,14 @@
function doTest()
{
- if (window.testRunner)
- testRunner.display();
+ runAfterDisplay(function() {
+ document.getElementById('iframe').className = 'composited';
- document.getElementById('iframe').className = 'composited';
-
- if (window.testRunner) {
- document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
- testRunner.notifyDone();
- }
+ if (window.testRunner) {
+ document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
+ testRunner.notifyDone();
+ }
+ });
}
window.addEventListener('load', doTest, false);

Powered by Google App Engine
This is Rietveld 408576698