Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string-expected.txt

Issue 267983005: Auto-rebaseline for r173389 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string-expected.txt
diff --git a/LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string-expected.txt b/LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string-expected.txt
index 37f1b284848ca6d677f98e97c15aff8a19892f80..e962d0c9af08414ac050e34483ff9aa27d585da4 100644
--- a/LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string-expected.txt
+++ b/LayoutTests/http/tests/local/formdata/send-form-data-with-bad-string-expected.txt
@@ -1,5 +1,15 @@
-CONSOLE ERROR: line 20: Uncaught SyntaxError: Illegal return statement
-FAIL successfullyParsed should be true. Was false.
+Test that passing bad strings to FormData.append() throws and aborts properly.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS formData.append(badString, 'test') threw exception Exception in toString().
+PASS formData.append('textarea', badString) threw exception Exception in toString().
+PASS formData.append('blob', new Blob(['']), badString) threw exception Exception in toString().
+PASS xhr.response.indexOf('test') is -1
+PASS xhr.response.indexOf('textarea') is -1
+PASS xhr.response.indexOf('blob') is -1
+PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698