Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / submit-nil-value-field-assert.html
blob83a153bd40df280bf05c63f873b7a71297dd8382
1 <p>
2 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11444">http://bugs.webkit.org/show_bug.cgi?id=11444</a>
3 REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]: attempt to insert nil value) when submitting a form with an empty uninitialized field</i>.
4 </p>
5 <p id="result">FAIL</p>
6 <hr>
7 <form id="t"><input></form>
8 <script>
9 if (!location.href.match('\\?')) {
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
14 document.getElementById("t").submit();
15 } else {
16 document.getElementById("result").innerText = "PASS";
17 if (window.testRunner)
18 testRunner.notifyDone();
20 </script>