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

Unified Diff: LayoutTests/compositing/repaint/newly-composited-repaint-rect.html

Issue 207383002: Remove repaint.js from layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations Created 6 years, 9 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/repaint/newly-composited-repaint-rect.html
diff --git a/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html b/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
index 77182642e1452a88aaf3c393231439d6c8a49324..8d23c00f84b73cbb1f44abd7a735353f9d76d95b 100644
--- a/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
+++ b/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
@@ -47,7 +47,6 @@
</head>
<script src="../../resources/run-after-display.js"></script>
-<script src="../../fast/repaint/resources/repaint.js"></script>
<script>
if (window.testRunner) {
@@ -60,21 +59,23 @@
}
function repaintTest() {
- // Changing the position will cause the scrolldiv to become composited becuase it overlaps another compostied element.
- changeDivPosition();
-
- // Force DumpRenderTree to do a layout and repaint here, this is where the repaintRect
- // goes wrong because it does not get updated for a newly composited element.
runAfterDisplay(function() {
- // Scrolling a little will demonstrate whether the repaint rect is correct or not.
- document.getElementById('scrolldiv').scrollTop = 500;
- testRunner.notifyDone();
+ // Changing the position will cause the scrolldiv to become composited becuase it overlaps another compostied element.
+ changeDivPosition();
+
+ // Force DumpRenderTree to do a layout and repaint here, this is where the repaintRect
+ // goes wrong because it does not get updated for a newly composited element.
+ runAfterDisplay(function() {
+ // Scrolling a little will demonstrate whether the repaint rect is correct or not.
+ document.getElementById('scrolldiv').scrollTop = 500;
+ testRunner.notifyDone();
+ });
});
}
</script>
-<body onload="runRepaintTest()">
+<body onload="repaintTest()">
<div class="composited box"></div>
<div id="scrolldiv">
<div class="shouldNotBeSeen box"></div>
« no previous file with comments | « LayoutTests/compositing/repaint/newly-composited-on-scroll.html ('k') | LayoutTests/compositing/repaint/shrink-layer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698