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

Unified Diff: LayoutTests/compositing/iframes/invisible-nested-iframe-hide.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-hide.html
diff --git a/LayoutTests/compositing/iframes/invisible-nested-iframe-hide.html b/LayoutTests/compositing/iframes/invisible-nested-iframe-hide.html
index bef0477e475f1f469364c8a7feee3be0e5e3c5ef..bf8991c98e96dc36e18b1c10d04c5ea9d7b50de7 100644
--- a/LayoutTests/compositing/iframes/invisible-nested-iframe-hide.html
+++ b/LayoutTests/compositing/iframes/invisible-nested-iframe-hide.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 = "display:none;";
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