Title: [238571] trunk/LayoutTests
Revision
238571
Author
dba...@webkit.org
Date
2018-11-27 13:22:35 -0800 (Tue, 27 Nov 2018)

Log Message

Fix test timeout following  <https://trac.webkit.org/changeset/238545>
(https://bugs.webkit.org/show_bug.cgi?id=191969)

Actually call HTMLInputElement.setSelectionRange().

* fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-after-hiding-auto-fill-strong-password-button-expected.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (238570 => 238571)


--- trunk/LayoutTests/ChangeLog	2018-11-27 21:16:07 UTC (rev 238570)
+++ trunk/LayoutTests/ChangeLog	2018-11-27 21:22:35 UTC (rev 238571)
@@ -1,3 +1,12 @@
+2018-11-27  Daniel Bates  <daba...@apple.com>
+
+        Fix test timeout following  <https://trac.webkit.org/changeset/238545>
+        (https://bugs.webkit.org/show_bug.cgi?id=191969)
+
+        Actually call HTMLInputElement.setSelectionRange().
+
+        * fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-after-hiding-auto-fill-strong-password-button-expected.html:
+
 2018-11-27  Timothy Hatcher  <timo...@apple.com>
 
         Web Inspector: Add support for forcing color scheme appearance in DOM tree.

Modified: trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-after-hiding-auto-fill-strong-password-button-expected.html (238570 => 238571)


--- trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-after-hiding-auto-fill-strong-password-button-expected.html	2018-11-27 21:16:07 UTC (rev 238570)
+++ trunk/LayoutTests/fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-after-hiding-auto-fill-strong-password-button-expected.html	2018-11-27 21:22:35 UTC (rev 238571)
@@ -21,7 +21,7 @@
 {
     console.assert(event.key === "CapsLock");
     // Move the caret to the beginning of the field to ensure consistent test results.
-    input.setSelectionRange(0, 0);
+    document.querySelector("input").setSelectionRange(0, 0);
     // FIXME: For some reason it takes up to 100ms for the caps lock indicator to be painted (why?).
     window.setTimeout(done, 100);
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to