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

Unified Diff: LayoutTests/compositing/iframes/connect-compositing-iframe3.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-iframe3.html
diff --git a/LayoutTests/compositing/iframes/connect-compositing-iframe3.html b/LayoutTests/compositing/iframes/connect-compositing-iframe3.html
index 59f8ae1bfeece077dac1528036b4f808002ac395..c14a70312b61ca5486db15451c5ada41aff66375 100644
--- a/LayoutTests/compositing/iframes/connect-compositing-iframe3.html
+++ b/LayoutTests/compositing/iframes/connect-compositing-iframe3.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;
@@ -25,15 +26,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