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

Unified Diff: LayoutTests/compositing/iframes/invisible-nested-iframe-show.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/invisible-nested-iframe-show.html
diff --git a/LayoutTests/compositing/iframes/invisible-nested-iframe-show.html b/LayoutTests/compositing/iframes/invisible-nested-iframe-show.html
index 6137fced7c9239e7b531d5a0ef354fcf445771aa..b09ae27207d41aa5de4604e0a872ec984e535404 100644
--- a/LayoutTests/compositing/iframes/invisible-nested-iframe-show.html
+++ b/LayoutTests/compositing/iframes/invisible-nested-iframe-show.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;
@@ -32,15 +33,14 @@
function doTest()
{
- window.setTimeout(function() {
+ runAfterDisplay(function() {
var div = document.getElementById('invisible');
div.style.cssText = "";
if (window.testRunner) {
- testRunner.display();
document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
testRunner.notifyDone();
}
- }, 0)
+ });
}
window.addEventListener('load', doTest, false);

Powered by Google App Engine
This is Rietveld 408576698