Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-all-text-in-text-field-assertion.html
blob941ef990d6bcde4b962cdb92cbaa466b07112c91
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpEditingCallbacks();
6 </script>
8 <script>
9 if (window.testRunner) {
10 testRunner.waitUntilDone();
11 testRunner.dumpAsText();
13 </script>
14 <script src="../editing.js"></script>
15 </head>
16 <body>
17 <div>Bug 9358: REGRESSION: Assertion failure in HTMLInputElement::setValueFromRenderer (value == constrainValue(value)) when deleting all text</div>
18 <div><a href="https://bugs.webkit.org/show_bug.cgi?id=9358">https://bugs.webkit.org/show_bug.cgi?id=9358</a></div>
19 <div><br></div>
20 <form>
21 Assertion fails when all characters are deleted: <input type="text" id="t" value="X">
22 </form>
23 <script>
24 document.getElementById("t").focus();
25 document.execCommand("SelectAll");
26 document.execCommand("Delete");
27 </script>
28 <div>SUCCESS if the test didn't crash and you see this message.</div>
29 <script>
30 if (window.testRunner) {
31 testRunner.notifyDone()
33 </script>
34 <body>
35 </html>