| Index: third_party/WebKit/LayoutTests/http/tests/local/blob/script-tests/send-data-blob.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/local/blob/script-tests/send-data-blob.js b/third_party/WebKit/LayoutTests/http/tests/local/blob/script-tests/send-data-blob.js
|
| index a7dc896a3879192a04e75ead964027142ebf26ac..a8b05a1aa3c1a0b61a454609766677e6c44c6984 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/local/blob/script-tests/send-data-blob.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/local/blob/script-tests/send-data-blob.js
|
| @@ -2,12 +2,12 @@ description("Test for building blobs with multiple strings combined by BlobBuild
|
|
|
| var util = new HybridBlobTestUtil(runTests);
|
|
|
| -function runAppendTest(appendItems, opt_ending, opt_urlParameter, opt_type)
|
| +function runAppendTest(appendItems, opt_urlParameter, opt_type)
|
| {
|
| - var blob = util.appendAndCreateBlob(appendItems, opt_ending, opt_type);
|
| + var blob = util.appendAndCreateBlob(appendItems, opt_type);
|
| var urlParameter = opt_urlParameter;
|
| if (!opt_urlParameter)
|
| - urlParameter = util.createUrlParameter(appendItems, null, opt_ending);
|
| + urlParameter = util.createUrlParameter(appendItems, null);
|
| if (opt_type != undefined)
|
| shouldBe("'" + blob.type + "'", "'" + opt_type + "'");
|
| util.uploadBlob(blob, urlParameter);
|
| @@ -26,12 +26,12 @@ function runTests()
|
| debug('* BlobBuilder.append(string)');
|
| runAppendTest([ stringA ]);
|
| runAppendTest([ stringA, stringB ]);
|
| - runAppendTest([ stringA, stringB ], null, null, 'type/foo');
|
| + runAppendTest([ stringA, stringB ], null, 'type/foo');
|
|
|
| debug('* BlobBuilder.append(blob)');
|
| runAppendTest([ [ stringA ] ]);
|
| runAppendTest([ [ stringA, stringB, stringA ] ]);
|
| - runAppendTest([ [ stringA, stringC ] ], null, null, 'type/bar');
|
| + runAppendTest([ [ stringA, stringC ] ], null, 'type/bar');
|
|
|
| debug('* BlobBuilder.append(string/blob)');
|
| runAppendTest([ [ [ stringA, stringB ], stringA ], stringC ]);
|
| @@ -41,18 +41,12 @@ function runTests()
|
| var mixedArray = [ [ stringA, stringB, stringA ], stringC, [ stringA, stringB ] , stringA ];
|
| var blob = { 'type':'blob', 'value':util.appendAndCreateBlob(mixedArray) };
|
| var parameter = util.createUrlParameter([ mixedArray, stringC, mixedArray ]);
|
| - runAppendTest([ blob, stringC, blob ], null, parameter);
|
| + runAppendTest([ blob, stringC, blob ], parameter);
|
|
|
| debug('* BlobBuilder.append(string) - with line-endings');
|
| runAppendTest([ stringLF ]);
|
| runAppendTest([ stringCR ]);
|
| runAppendTest([ stringCRLF ]);
|
| -
|
| - debug('* BlobBuilder.append(string, "native") - with line-endings');
|
| - runAppendTest([ stringLF ], 'native');
|
| - runAppendTest([ stringCR ], 'native');
|
| - runAppendTest([ stringCRLF ], 'native');
|
| - runAppendTest([ stringCRLF, stringLF, stringCRLF ], 'native');
|
| }
|
|
|
| if (window.eventSender)
|
|
|