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

Unified Diff: LayoutTests/compositing/clip-change.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/clip-change.html
diff --git a/LayoutTests/compositing/clip-change.html b/LayoutTests/compositing/clip-change.html
index da4a61b288baac53d0ca91001d88dd64d2c23ca4..1cda32b1cc8b38f1b14f0b5bb7fbe90bb1ee4176 100644
--- a/LayoutTests/compositing/clip-change.html
+++ b/LayoutTests/compositing/clip-change.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
+ <script src="../resources/run-after-display.js"></script>
<style>
#indicator {
position: absolute;
@@ -22,16 +23,20 @@
}
</style>
<script>
- if (window.testRunner)
+ if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+ }
function doTest() {
- if (window.testRunner)
- testRunner.display();
- // The change in clip style should be reflected immediately in the size
- // of the composited clipper layer. After changing the clip, it should
- // entirely cover the indicator.
- var clipper = document.getElementById("clipper");
- clipper.style.clip = "rect(0px, 100px, 100px, 0px)";
+ runAfterDisplay(function() {
+ // The change in clip style should be reflected immediately in the size
+ // of the composited clipper layer. After changing the clip, it should
+ // entirely cover the indicator.
+ var clipper = document.getElementById("clipper");
+ clipper.style.clip = "rect(0px, 100px, 100px, 0px)";
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
window.addEventListener("load", doTest, false);
</script>

Powered by Google App Engine
This is Rietveld 408576698