Title: [260326] trunk/LayoutTests
- Revision
- 260326
- Author
- [email protected]
- Date
- 2020-04-18 16:17:29 -0700 (Sat, 18 Apr 2020)
Log Message
Add a test to ensure WebKit::mayContainEditableElementsInRect() returns true if the document element is editable
https://bugs.webkit.org/show_bug.cgi?id=210560
Reviewed by Simon Fraser.
If the document element is marked editable then all child elements are editable.
Add a test to ensure that WebKit::mayContainEditableElementsInRect() returns true
for such a page.
* editing/editable-region/hit-test-editable-document-element-expected.txt: Added.
* editing/editable-region/hit-test-editable-document-element.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (260325 => 260326)
--- trunk/LayoutTests/ChangeLog 2020-04-18 23:02:37 UTC (rev 260325)
+++ trunk/LayoutTests/ChangeLog 2020-04-18 23:17:29 UTC (rev 260326)
@@ -1,3 +1,17 @@
+2020-04-18 Daniel Bates <[email protected]>
+
+ Add a test to ensure WebKit::mayContainEditableElementsInRect() returns true if the document element is editable
+ https://bugs.webkit.org/show_bug.cgi?id=210560
+
+ Reviewed by Simon Fraser.
+
+ If the document element is marked editable then all child elements are editable.
+ Add a test to ensure that WebKit::mayContainEditableElementsInRect() returns true
+ for such a page.
+
+ * editing/editable-region/hit-test-editable-document-element-expected.txt: Added.
+ * editing/editable-region/hit-test-editable-document-element.html: Added.
+
2020-04-18 Antti Koivisto <[email protected]>
[CSS selectors] Support :where() pseudo class
Added: trunk/LayoutTests/editing/editable-region/hit-test-editable-document-element-expected.txt (0 => 260326)
--- trunk/LayoutTests/editing/editable-region/hit-test-editable-document-element-expected.txt (rev 0)
+++ trunk/LayoutTests/editing/editable-region/hit-test-editable-document-element-expected.txt 2020-04-18 23:17:29 UTC (rev 260326)
@@ -0,0 +1,10 @@
+Hit test an editable document.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS (x = 0, y = 0, width = 800, height = 88) contains editable elements.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/editing/editable-region/hit-test-editable-document-element.html (0 => 260326)
--- trunk/LayoutTests/editing/editable-region/hit-test-editable-document-element.html (rev 0)
+++ trunk/LayoutTests/editing/editable-region/hit-test-editable-document-element.html 2020-04-18 23:17:29 UTC (rev 260326)
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html contenteditable="true">
+<head>
+<script src=""
+<script src=""
+<script src=""
+</head>
+<body>
+<script>
+window.jsTestIsAsync = true;
+
+async function runTest()
+{
+ if (!window.testRunner) {
+ testFailed("Must be run in WebKitTestRunner.");
+ return;
+ }
+ await shouldHaveEditableElementsInRectForElement(document.documentElement);
+ finishJSTest();
+}
+
+description("Hit test an editable document.");
+runTest();
+</script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes