Skip to content
Permalink
Browse files
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 <brandonstewart@apple.com> 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.


Canonical link: https://commits.webkit.org/245232@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
stwrt authored and webkit-commit-queue committed Dec 14, 2021
1 parent 1dc91c6 commit bd0aa534e46ff561788572a5ddfff5f7d679021c
Showing 3 changed files with 54 additions and 0 deletions.
@@ -1,3 +1,17 @@
2021-12-14 Brandon Stewart <brandonstewart@apple.com>

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 <antti@apple.com>

[CSS Cascade Layers] revert-layer should revert style attribute to regular author style
@@ -0,0 +1,3 @@
This test shall pass if it does not crash.


@@ -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 = 'data:';
}

onload = () => {
let s0 = document.createElement('script');
s0.src = `data:text/javascript,(${foo})()`;
document.head.appendChild(s0);
};
</script>

<body>
This test shall pass if it does not crash.
</body>

</html>

0 comments on commit bd0aa53

Please sign in to comment.