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

Unified Diff: third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt

Issue 1896283002: Make Blob constructor's first argument optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update platform-specific expectations Created 4 years, 8 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: third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt b/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
index c32749a5787ba1b67288861942a0da17acdf2008..ee59c7bfcda66dd9c4273945b8be40eef24e8f3a 100644
--- a/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
@@ -4,12 +4,17 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS (new Blob()) instanceof window.Blob is true
+PASS (new Blob(undefined)) instanceof window.Blob is true
PASS (new Blob([])) instanceof window.Blob is true
PASS (new Blob(['hello'])) instanceof window.Blob is true
PASS (new Blob(['hello'], {})) instanceof window.Blob is true
PASS (new Blob(['hello'], {type:'text/html'})) instanceof window.Blob is true
PASS (new Blob(['hello'], {type:'text/html', endings:'native'})) instanceof window.Blob is true
PASS (new Blob(['hello'], {type:'text/html', endings:'transparent'})) instanceof window.Blob is true
+PASS (new Blob()).size is 0
+PASS (new Blob(undefined)).size is 0
+PASS (new Blob()).type is ""
+PASS (new Blob(undefined)).type is ""
PASS new Blob('hello') threw exception TypeError: Failed to construct 'Blob': The 1st argument is neither an array, nor does it have indexed properties..
PASS new Blob(0) threw exception TypeError: Failed to construct 'Blob': The 1st argument is neither an array, nor does it have indexed properties..
PASS new Blob(null) threw exception TypeError: Failed to construct 'Blob': The 1st argument is neither an array, nor does it have indexed properties..

Powered by Google App Engine
This is Rietveld 408576698