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> |