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

Unified Diff: LayoutTests/compositing/iframes/connect-compositing-iframe.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-iframe.html
diff --git a/LayoutTests/compositing/iframes/connect-compositing-iframe.html b/LayoutTests/compositing/iframes/connect-compositing-iframe.html
index a2ec8cf352bcaf497bd208e9fe0e915abaf46989..c26bffb4ee8c5f41c00c57e0c987bbafe1a24bb6 100644
--- a/LayoutTests/compositing/iframes/connect-compositing-iframe.html
+++ b/LayoutTests/compositing/iframes/connect-compositing-iframe.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;
@@ -34,12 +35,11 @@
{
document.getElementById('parent-iframe').contentDocument.body.offsetWidth; // work around bug 41999.
- if (window.testRunner)
- testRunner.display();
-
if (window.testRunner) {
- document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
- testRunner.notifyDone();
+ runAfterDisplay(function() {
+ document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
+ testRunner.notifyDone();
+ });
}
}
</script>

Powered by Google App Engine
This is Rietveld 408576698