Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / apply-style-crash3.html
blobc168d9fda1fff3dbf8be6e4f09e72cb693817e2f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <unknown>
8 <script></script>
9 <textarea></textarea>
10 <script>
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.waitUntilDone();
16 function onDOMNodeRemoved(e) {
17 if (!(e.srcElement instanceof Element))
18 return;
20 e.srcElement.insertAdjacentHTML('afterbegin', ' ');
21 document.execCommand('FontSizeDelta', false, '1px');
24 document.addEventListener("DOMNodeRemoved", onDOMNodeRemoved, false);
25 document.designMode = "on";
26 document.execCommand("SelectAll", false)
27 var unknown = document.getElementsByTagName("unknown")[0];
28 unknown.textContent = "sss";
29 unknown.outerHTML = "";
30 document.execCommand("SelectAll", false);
31 // Put description() here so as to not upset test condition.
32 description("Verify that changing the style over an unknown element does not crash.");
33 if (window.testRunner)
34 testRunner.notifyDone();
35 </script>
36 </body>
37 </html>