Bug 1725850 - part 30: Port editor/libeditor/crashtests/716456-1.html to WPT r=saschanaz

Differential Revision: https://phabricator.services.mozilla.com/D129586
This commit is contained in:
Masayuki Nakano 2021-10-29 09:29:24 +00:00
parent 053ad7574e
commit 73429d31ba
3 changed files with 11 additions and 13 deletions

View File

@ -13,7 +13,6 @@ load 582138-1.xhtml
load 633709.xhtml
load 639736-1.xhtml
load 713427-2.xhtml
load 716456-1.html
needs-focus load 745494.html
load 759748.html
load 761861.html

View File

@ -1,29 +1,27 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html class="test-wait">
<head>
<meta charset="utf-8">
<title>Testcase for bug 716456 of Mozilla</title>
<script>
function boom()
{
var div = document.querySelector("div");
function boom() {
const div = document.querySelector("div");
div.contentEditable = "true";
div.focus();
var r = document.documentElement;
document["removeChild"](r);
document["appendChild"](r);
const root = document.documentElement;
document.removeChild(root);
document.appendChild(root);
setTimeout(function() {
setTimeout(() => {
getSelection().collapse(div, 0);
document.execCommand("inserthtml", false, "a");
setTimeout(function() {
setTimeout(() => {
document.documentElement.removeAttribute("class");
}, 0);
}, 0);
}
</script>
</head>
<body onload="boom();"><div></div></body>
</html>

View File

@ -823,6 +823,7 @@ CSS-COLLIDING-REF-NAME: css/css-break/background-image-001-ref.html
# Ported crashtests from Mozilla
SET TIMEOUT: editing/crashtests/backcolor-in-nested-editing-host-td-from-DOMAttrModified.html
SET TIMEOUT: editing/crashtests/inserthtml-after-temporarily-removing-document-element.html
SET TIMEOUT: editing/crashtests/inserthtml-in-text-adopted-to-other-document.html
SET TIMEOUT: editing/crashtests/insertorderedlist-in-text-adopted-to-other-document.html
SET TIMEOUT: editing/crashtests/make-editable-div-inline-and-set-contenteditable-of-input-to-false.html