Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / access-key-self-destruct.html
blobe19fece918119b6120c24a958a0bf4da1fb0de3d
1 <script>
2 function replace()
4 document.getElementById("target").innerHTML = "If you can see this text and there was no crash, the test was a success.";
6 function test()
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
11 modifiers = ["ctrlKey", "altKey"];
12 else
13 modifiers = ["altKey"];
14 eventSender.keyDown("a", modifiers);
17 </script>
18 <body onload="test()">
19 <p>This tests what happens when you use accesskey to trigger a script that causes a node to get destroyed
20 without ever having a reference to it from JavaScript. With older versions of WebKit this used to cause a crash.</p>
21 <p id="target"><a href="javascript:replace()" accesskey="a"></a>If you can see this text, the test was a failure.</p>
22 </body>