Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / display-none-in-onchange-keyboard.html
bloba525d8736869b53ae98b5e489d9936c36a1543e9
1 <html>
2 <head>
3 <script>
4 function runTest() {
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 else {
8 alert('This test does not work in Safari.');
9 return;
12 document.getElementById('first').focus();
14 // This will cause onchange to get invoked
15 eventSender.keyDown('a', new Array());
17 // Simulate a tab.
18 eventSender.keyDown('\t', new Array());
20 document.getElementById('result').innerHTML = "SUCCESS - Didn't crash";
22 </script>
23 </head>
24 <body onload="runTest()">
25 <input id="first" type="text" onchange="document.getElementById('u').style.display='none'"><input id="u" type="text">
26 <p>This tests that setting display to 'none' for an element that's about to get focus doesn't crash.</p>
27 <div id="result">THE TEST DID NOT RUN</div>
28 </body>
29 </html>