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

Unified Diff: LayoutTests/compositing/layer-creation/fixed-position-scroll.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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/repaint/newly-composited-on-scroll.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/layer-creation/fixed-position-scroll.html
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-scroll.html b/LayoutTests/compositing/layer-creation/fixed-position-scroll.html
index 8ee69971d967ce1d553541552ad03ac05b42c13a..96b67f1a836a166c55e23851345048570a0d5700 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-scroll.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-scroll.html
@@ -31,25 +31,22 @@
-webkit-transform: translateZ(0);
}
</style>
- <script src="../../fast/repaint/resources/repaint.js"></script>
+ <script src="../../resources/run-after-display.js"></script>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
- function repaintTest()
- {
- window.scrollBy(0,-96);
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
function doTest()
{
window.scrollBy(0,-2048);
window.scrollBy(0,160);
- runRepaintTest();
+ runAfterDisplay(function() {
+ window.scrollBy(0,-96);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
}
window.addEventListener('load', doTest, false);
</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/repaint/newly-composited-on-scroll.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698