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

Unified Diff: LayoutTests/fast/repaint/4774354.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/fast/repaint/4774354.html
diff --git a/LayoutTests/fast/repaint/4774354.html b/LayoutTests/fast/repaint/4774354.html
index 17d3a081e4c52b2e89ab1c830478350fdd34a525..26ee56beba5a34cc179d1ac15453c9642f75b085 100644
--- a/LayoutTests/fast/repaint/4774354.html
+++ b/LayoutTests/fast/repaint/4774354.html
@@ -1,4 +1,4 @@
-<script src="resources/repaint.js" type="text/javascript"></script>
+<script src="../../resources/run-after-display.js" type="text/javascript"></script>
<script type="text/javascript">
function step1() {
@@ -19,7 +19,7 @@ function step2() {
var text = body.firstChild;
sel.setPosition(text, text.length);
// Wait for the caret to paint.
- window.setTimeout(runRepaintTest, 100);
+ runAfterDisplay(repaintTest);
}
function repaintTest() {
@@ -28,9 +28,7 @@ function repaintTest() {
var body = doc.body;
var text = body.firstChild;
var sel = frame.getSelection();
-
sel.setBaseAndExtent(text, 5, text, text.length);
-
if (window.testRunner)
window.testRunner.notifyDone();
}

Powered by Google App Engine
This is Rietveld 408576698