Title: [287029] trunk/LayoutTests
Revision
287029
Author
[email protected]
Date
2021-12-14 10:03:05 -0800 (Tue, 14 Dec 2021)

Log Message

Add test case for execCommand to verify inserting an ordered list and deletion
https://bugs.webkit.org/show_bug.cgi?id=234113
<rdar://85926354>

Patch by Brandon Stewart <[email protected]> on 2021-12-14
Reviewed by Chris Dumez.

Add test to verify correct execution of execCommand when inserting an ordered
list and calling delete.

* editing/execCommand/insert-ordered-list-and-delete-expected.txt: Added.
* editing/execCommand/insert-ordered-list-and-delete.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (287028 => 287029)


--- trunk/LayoutTests/ChangeLog	2021-12-14 17:20:18 UTC (rev 287028)
+++ trunk/LayoutTests/ChangeLog	2021-12-14 18:03:05 UTC (rev 287029)
@@ -1,3 +1,17 @@
+2021-12-14  Brandon Stewart  <[email protected]>
+
+        Add test case for execCommand to verify inserting an ordered list and deletion
+        https://bugs.webkit.org/show_bug.cgi?id=234113
+        <rdar://85926354>
+
+        Reviewed by Chris Dumez.
+
+        Add test to verify correct execution of execCommand when inserting an ordered
+        list and calling delete.
+
+        * editing/execCommand/insert-ordered-list-and-delete-expected.txt: Added.
+        * editing/execCommand/insert-ordered-list-and-delete.html: Added.
+
 2021-12-14  Antti Koivisto  <[email protected]>
 
         [CSS Cascade Layers] revert-layer should revert style attribute to regular author style

Added: trunk/LayoutTests/editing/execCommand/insert-ordered-list-and-delete-expected.txt (0 => 287029)


--- trunk/LayoutTests/editing/execCommand/insert-ordered-list-and-delete-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/editing/execCommand/insert-ordered-list-and-delete-expected.txt	2021-12-14 18:03:05 UTC (rev 287029)
@@ -0,0 +1,3 @@
+This test shall pass if it does not crash.
+
+

Added: trunk/LayoutTests/editing/execCommand/insert-ordered-list-and-delete.html (0 => 287029)


--- trunk/LayoutTests/editing/execCommand/insert-ordered-list-and-delete.html	                        (rev 0)
+++ trunk/LayoutTests/editing/execCommand/insert-ordered-list-and-delete.html	2021-12-14 18:03:05 UTC (rev 287029)
@@ -0,0 +1,37 @@
+<html>
+
+<script>
+
+  function foo() {
+	if (window.testRunner)
+	   testRunner.dumpAsText();
+
+    document.designMode = 'on';
+    let ol0 = document.createElement('ol');
+    document.body.append(ol0);
+    let span0 = document.createElement('span');
+    ol0.append(span0);
+    span0.append('');
+    let li0 = document.createElement('li');
+    li0.appendChild(document.createElement('iframe'));
+    span0.append(li0);
+    span0.append(document.createElement('div'));
+    document.execCommand('SelectAll');
+    document.createElement('audio')._onwebkitplaybacktargetavailabilitychanged_ = () => document.execCommand('InsertOrderedList');
+    let img0 = document.createElement('img');
+    img0._onerror_ = () => document.execCommand('Delete');
+    img0.src = '';
+  }
+
+  _onload_ = () => {
+    let s0 = document.createElement('script');
+    s0.src = ""
+    document.head.appendChild(s0);
+  };
+</script>
+ 
+<body>
+	This test shall pass if it does not crash.
+</body>
+ 
+</html>
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to