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

Unified Diff: LayoutTests/compositing/rtl/rtl-overflow-invalidation.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/rtl/rtl-overflow-invalidation.html
diff --git a/LayoutTests/compositing/rtl/rtl-overflow-invalidation.html b/LayoutTests/compositing/rtl/rtl-overflow-invalidation.html
index eda7fecbe9515b821369b514388cd379e197a520..f371fdebdda5137744104f4ca44581bf65ac2cd9 100644
--- a/LayoutTests/compositing/rtl/rtl-overflow-invalidation.html
+++ b/LayoutTests/compositing/rtl/rtl-overflow-invalidation.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
+<script src="../../resources/run-after-display.js"></script>
<style>
body {
direction: rtl;
@@ -25,13 +26,17 @@
<script>
function doTest() {
if (window.testRunner) {
- testRunner.display();
+ testRunner.waitUntilDone();
testRunner.dumpAsTextWithPixelResults();
}
- // This test passes if this element is repainted correctly, even
- // on a page that is composited and has horizontal overflow.
- var elem = document.getElementById("layer");
- elem.style.backgroundColor = "green";
+ runAfterDisplay(function() {
+ // This test passes if this element is repainted correctly, even
+ // on a page that is composited and has horizontal overflow.
+ var elem = document.getElementById("layer");
+ elem.style.backgroundColor = "green";
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
window.addEventListener('load', doTest, false);
</script>

Powered by Google App Engine
This is Rietveld 408576698