Reviewed by Geoff.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Oct 2006 18:58:27 +0000 (18:58 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Oct 2006 18:58:27 +0000 (18:58 +0000)
        Test for http://bugs.webkit.org/show_bug.cgi?id=11444
        REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]: attempt to insert nil value)
        when submitting a form with an empty uninitialized field

        * fast/forms/submit-nil-value-field-assert-expected.txt: Added.
        * fast/forms/submit-nil-value-field-assert.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17420 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/forms/submit-nil-value-field-assert-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/submit-nil-value-field-assert.html [new file with mode: 0644]

index ef4c6c3e061cf650eaf7f7400a5d63ef76fed177..e51416191acad500dde9bcb59e4022768cc160bd 100644 (file)
@@ -1,3 +1,14 @@
+2006-10-29  Mitz Pettel  <mitz@webkit.org>
+
+        Reviewed by Geoff.
+
+        Test for http://bugs.webkit.org/show_bug.cgi?id=11444
+        REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]: attempt to insert nil value)
+        when submitting a form with an empty uninitialized field
+
+        * fast/forms/submit-nil-value-field-assert-expected.txt: Added.
+        * fast/forms/submit-nil-value-field-assert.html: Added.
+
 2006-10-30  Mark Rowe  <bdash@webkit.org>
 
         Reviewed by Maciej.
diff --git a/LayoutTests/fast/forms/submit-nil-value-field-assert-expected.txt b/LayoutTests/fast/forms/submit-nil-value-field-assert-expected.txt
new file mode 100644 (file)
index 0000000..4abfbc4
--- /dev/null
@@ -0,0 +1,6 @@
+Test for http://bugs.webkit.org/show_bug.cgi?id=11444 REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]: attempt to insert nil value) when submitting a form with an empty uninitialized field.
+
+PASS
+
+
+
diff --git a/LayoutTests/fast/forms/submit-nil-value-field-assert.html b/LayoutTests/fast/forms/submit-nil-value-field-assert.html
new file mode 100644 (file)
index 0000000..db927b4
--- /dev/null
@@ -0,0 +1,23 @@
+<p>
+    Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11444">http://bugs.webkit.org/show_bug.cgi?id=11444</a>
+    REGRESSION (r17378): Exception (-[NSCFDictionary setObject:forKey:]: attempt to insert nil value) when submitting a form with an empty uninitialized field</i>.
+</p>
+<p id="result">FAIL</p>
+<hr>
+<form id="t"><input></form>
+<script>
+    if (!location.href.match('\\?')) {
+        if (window.layoutTestController) {
+            layoutTestController.dumpAsText();
+            layoutTestController.waitUntilDone();
+        }
+        document.getElementById("t").submit();
+        // Don't leave DumpRenderTree hanging in case submit() failed
+        if (window.layoutTestController)
+            layoutTestController.notifyDone();
+    } else {
+        document.getElementById("result").innerText = "PASS";
+        if (window.layoutTestController)
+            layoutTestController.notifyDone();
+    }
+</script>