Title: [269834] trunk/LayoutTests
Revision
269834
Author
wei...@apple.com
Date
2020-11-15 16:33:28 -0800 (Sun, 15 Nov 2020)

Log Message

Remove and re-add fast/forms/selection-direction.html without CRs
https://bugs.webkit.org/show_bug.cgi?id=218966

Reviewed by Darin Adler.

* fast/forms/selection-direction.html: Removed.
Temporarily remove test. Will add back without CRs in next commit.

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (269833 => 269834)


--- trunk/LayoutTests/ChangeLog	2020-11-15 21:03:32 UTC (rev 269833)
+++ trunk/LayoutTests/ChangeLog	2020-11-16 00:33:28 UTC (rev 269834)
@@ -1,3 +1,13 @@
+2020-11-15  Sam Weinig  <wei...@apple.com>
+
+        Remove and re-add fast/forms/selection-direction.html without CRs
+        https://bugs.webkit.org/show_bug.cgi?id=218966
+
+        Reviewed by Darin Adler.
+
+        * fast/forms/selection-direction.html: Removed.
+        Temporarily remove test. Will add back without CRs in next commit.
+
 2020-11-15  Youenn Fablet  <you...@apple.com>
 
         Add a WebRTC SFrame transform

Deleted: trunk/LayoutTests/fast/forms/selection-direction.html (269833 => 269834)


--- trunk/LayoutTests/fast/forms/selection-direction.html	2020-11-15 21:03:32 UTC (rev 269833)
+++ trunk/LayoutTests/fast/forms/selection-direction.html	2020-11-16 00:33:28 UTC (rev 269834)
@@ -1,105 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=""
-</head>
-<body>
-<p id="description"></p>
-<div><input id="dummy"></div>
-<div id="tests"><input value="hello"><textarea>hello</textarea></div>
-<div id="console"></div>
-<div>
-<script type="text/_javascript_">
-description('Tests for selectionDirection');
-
-var dummy = document.getElementById('dummy');
-
-function assertDirection(expectedDirection, element, description) {
-    var action = '' + element.selectionDirection
-        + '" after ' + description;
-
-    if (element.selectionDirection == expectedDirection)
-        testPassed(action);
-    else
-        testFailed(action + ', but expected "' + expectedDirection + '"');
-}
-
-function testCache(expectedDirection, element) {
-    dummy.focus();
-    assertDirection(expectedDirection, element, 'focusing on another element');
-
-    element.style.display = 'none';
-    assertDirection(expectedDirection, element, 'hiding the element');
-    element.style.display = null;
-}
-
-function runTest(element, platform) {
-    debug(element.localName + ' on ' + platform);
-    element.focus();
-
-    var noneOnMacAndForwardOnOthers = (platform == 'Mac') ? 'none' : 'forward';
-
-    element.setSelectionRange(1, 2);
-    assertDirection(noneOnMacAndForwardOnOthers, element, 'focusing and setting selection by setSelectionRange(1, 2)');
-    testCache(noneOnMacAndForwardOnOthers, element);
-
-    element.focus();
-    element.setSelectionRange(1, 2, 'forward');
-    assertDirection('forward', element, 'focusing and setting selection by setSelectionRange(1, 2, "forward")');
-    testCache('forward', element);
-
-    element.setSelectionRange(1, 2, 'backward');
-    assertDirection('backward', element, 'setting selection by setSelectionRange(1, 2, "backward") without focus');
-    testCache('backward', element);
-
-    element.selectionDirection = 'none';
-    assertDirection(noneOnMacAndForwardOnOthers, element, 'setting selection by selectionDirection = "none" without focus');
-    testCache(noneOnMacAndForwardOnOthers, element);
-
-    element.selectionDirection = 'forward';
-    assertDirection('forward', element, 'focusing and setting selection by selectionDirection = "forward" without focus');
-    testCache('forward', element);
-
-    element.focus();
-    element.selectionDirection = 'backward';
-    assertDirection('backward', element, 'focusing and setting selection by selectionDirection = "backward"');
-    testCache('backward', element);
-
-    element.focus();
-    element.setSelectionRange(1, 1);
-    window.getSelection().modify('extend', 'forward', 'character');
-    assertDirection('forward', element, 'extending selection forward by character');
-    testCache('forward', element);
-
-    element.focus();
-    element.setSelectionRange(1, 1);
-    window.getSelection().modify('extend', 'backward', 'character');
-    assertDirection('backward', element, 'extending selection backward by character');
-    testCache('backward', element);
-
-}
-
-function runTestFor(platform) {
-    if (window.internals)
-        internals.settings.setEditingBehavior(platform.toLowerCase());
-    var tests = document.getElementById('tests');
-    for (var i = 0; i < tests.childNodes.length; i++) {
-        runTest(tests.childNodes[i], platform);
-        debug('');
-    }
-}
-
-if (window.internals) {
-    runTestFor('Mac');
-    runTestFor('Win');
-    runTestFor('Unix');
-} else
-    runTestFor(navigator.platform.indexOf('Mac') >= 0 ? 'Mac' : 'Win');
-
-tests.style.display = 'none';
-dummy.parentNode.style.display = 'none';
-
-</script>
-<script src=""
-</body>
-</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to