summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/style/apply-style-join-child-text-nodes-crash.html
blob: df899bbfbed7371913e37d5cbcbf886dc459f701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script id="script1">
document.addEventListener("DOMCharacterDataModified",function(){
    document.body.innerHTML = "PASS. WebKit didn't crash."; 
    gc();
    finishJSTest();
},true);
</script>
<script>
window.jsTestIsAsync = true;

if (window.testRunner)
    testRunner.waitUntilDone();

var scriptElement = document.getElementById('script1');
scriptElement.parentNode.appendChild(scriptElement.firstChild);
scriptElement.parentNode.removeChild(scriptElement);
document.designMode = "on";
document.execCommand("SelectAll");
document.execCommand("FontSizeDelta", false, 3);
</script>
</body>
</html>