Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / redo-after-detach.html
blob89509d06cc6b2871c2d1e2fae3ad16b299f68792
1 <html>
2 <head>
3 <script>
4 function test()
6 document.getElementById("tf").setAttribute("results", 0);
7 document.execCommand("Redo");
9 </script>
10 </head>
11 <body onload="test()">
12 This tests that we don't crash when redoing an editing command after the search field has been detached and reattached.<br>
13 <input type="search" id="tf"><br>
14 <script>
15 if (window.testRunner)
16 testRunner.dumpAsText();
18 document.getElementById("tf").focus();
19 document.execCommand("InsertText", false, "test");
20 document.execCommand("Undo");
21 </script>
22 </body>
23 </html>