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

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

Issue 2810843002: bindings: Make the sequence conversion code more complaint with WebIDL. (Closed)
Patch Set: Adjust even more tests Created 3 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 284953da3eb24b6bb26a1c2ffc404b741ae03762..0a6eeb57cfe39a266f0579ecd37d67e56bfe6513 100644
--- a/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
@@ -15,9 +15,9 @@ 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..
+PASS new Blob('hello') threw exception TypeError: Failed to construct 'Blob': The provided value cannot be converted to a sequence..
+PASS new Blob(0) threw exception TypeError: Failed to construct 'Blob': The provided value cannot be converted to a sequence..
+PASS new Blob(null) threw exception TypeError: Failed to construct 'Blob': The provided value cannot be converted to a sequence..
PASS (new Blob([])) instanceof window.Blob is true
PASS (new Blob(['stringPrimitive'])) instanceof window.Blob is true
PASS (new Blob([String('stringObject')])) instanceof window.Blob is true
@@ -81,8 +81,8 @@ PASS new Blob([(new Float32Array(100)).buffer]).size is 400
PASS new Blob([(new Float64Array(100)).buffer]).size is 800
PASS new Blob([(new Float64Array(100)).buffer, (new Int32Array(100)).buffer, (new Uint8Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size is 1400
PASS new Blob([new Blob([(new Int32Array(100)).buffer]), (new Uint8Array(100)).buffer, (new Float32Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size is 1000
-PASS new Blob({length: 0}).size is 0
-PASS new Blob({length: 1, 0: 'string'}).size is 6
+PASS new Blob(createIterable([{done:true}])).size is 0
+PASS new Blob(createIterable([{done:false, value:'string'},{done:true}])).size is 6
PASS OMICRON_WITH_OXIA.charCodeAt(0) is 0x1F79
PASS reader.result.charCodeAt(0) is 0x1F79
PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(3) is 0xDC00

Powered by Google App Engine
This is Rietveld 408576698