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

Unified Diff: LayoutTests/fast/reflections/inline-crash.html

Issue 196573042: Remove display() from more 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/reflections/inline-crash.html
diff --git a/LayoutTests/fast/reflections/inline-crash.html b/LayoutTests/fast/reflections/inline-crash.html
index d5efd3ef0f7c61129a2591755aadd64a87a472b6..63be5ef7a439d6ae24fa737ab4654f711624e592 100644
--- a/LayoutTests/fast/reflections/inline-crash.html
+++ b/LayoutTests/fast/reflections/inline-crash.html
@@ -1,20 +1,13 @@
+<script src="../../resources/run-after-display.js"></script>
<script>
- onload = function()
- {
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.display();
- }
- setTimeout(changeColor, 0);
- }
-
- changeColor = function()
- {
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ runAfterDisplay(function() {
var span = document.getElementById("span");
getSelection().setBaseAndExtent(span, 0, span, 1);
if (window.testRunner)
testRunner.notifyDone();
- }
+ });
</script>
<p>
Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=19525">https://bugs.webkit.org/show_bug.cgi?id=19525</a>

Powered by Google App Engine
This is Rietveld 408576698