OLD | NEW |
1 Test the Blob constructor. | 1 Test the Blob constructor. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS (new Blob()) instanceof window.Blob is true | 6 PASS (new Blob()) instanceof window.Blob is true |
7 PASS (new Blob(undefined)) instanceof window.Blob is true | 7 PASS (new Blob(undefined)) instanceof window.Blob is true |
8 PASS (new Blob([])) instanceof window.Blob is true | 8 PASS (new Blob([])) instanceof window.Blob is true |
9 PASS (new Blob(['hello'])) instanceof window.Blob is true | 9 PASS (new Blob(['hello'])) instanceof window.Blob is true |
10 PASS (new Blob(['hello'], {})) instanceof window.Blob is true | 10 PASS (new Blob(['hello'], {})) instanceof window.Blob is true |
11 PASS (new Blob(['hello'], {type:'text/html'})) instanceof window.Blob is true | 11 PASS (new Blob(['hello'], {type:'text/html'})) instanceof window.Blob is true |
12 PASS (new Blob(['hello'], {type:'text/html', endings:'native'})) instanceof wind
ow.Blob is true | 12 PASS (new Blob(['hello'], {type:'text/html', endings:'native'})) instanceof wind
ow.Blob is true |
13 PASS (new Blob(['hello'], {type:'text/html', endings:'transparent'})) instanceof
window.Blob is true | 13 PASS (new Blob(['hello'], {type:'text/html', endings:'transparent'})) instanceof
window.Blob is true |
14 PASS (new Blob()).size is 0 | 14 PASS (new Blob()).size is 0 |
15 PASS (new Blob(undefined)).size is 0 | 15 PASS (new Blob(undefined)).size is 0 |
16 PASS (new Blob()).type is "" | 16 PASS (new Blob()).type is "" |
17 PASS (new Blob(undefined)).type is "" | 17 PASS (new Blob(undefined)).type is "" |
18 PASS new Blob('hello') threw exception TypeError: Failed to construct 'Blob': Th
e 1st argument is neither an array, nor does it have indexed properties.. | 18 PASS new Blob('hello') threw exception TypeError: Failed to construct 'Blob': Th
e provided value cannot be converted to a sequence.. |
19 PASS new Blob(0) threw exception TypeError: Failed to construct 'Blob': The 1st
argument is neither an array, nor does it have indexed properties.. | 19 PASS new Blob(0) threw exception TypeError: Failed to construct 'Blob': The prov
ided value cannot be converted to a sequence.. |
20 PASS new Blob(null) threw exception TypeError: Failed to construct 'Blob': The 1
st argument is neither an array, nor does it have indexed properties.. | 20 PASS new Blob(null) threw exception TypeError: Failed to construct 'Blob': The p
rovided value cannot be converted to a sequence.. |
21 PASS (new Blob([])) instanceof window.Blob is true | 21 PASS (new Blob([])) instanceof window.Blob is true |
22 PASS (new Blob(['stringPrimitive'])) instanceof window.Blob is true | 22 PASS (new Blob(['stringPrimitive'])) instanceof window.Blob is true |
23 PASS (new Blob([String('stringObject')])) instanceof window.Blob is true | 23 PASS (new Blob([String('stringObject')])) instanceof window.Blob is true |
24 PASS (new Blob([new Blob])) instanceof window.Blob is true | 24 PASS (new Blob([new Blob])) instanceof window.Blob is true |
25 PASS (new Blob([new Blob([new Blob])])) instanceof window.Blob is true | 25 PASS (new Blob([new Blob([new Blob])])) instanceof window.Blob is true |
26 PASS (new Blob([12])).size is 2 | 26 PASS (new Blob([12])).size is 2 |
27 PASS (new Blob([[]])).size is 0 | 27 PASS (new Blob([[]])).size is 0 |
28 PASS (new Blob([{}])).size is 15 | 28 PASS (new Blob([{}])).size is 15 |
29 PASS (new Blob([document])).size is 21 | 29 PASS (new Blob([document])).size is 21 |
30 PASS (new Blob([toStringingObj])).size is 8 | 30 PASS (new Blob([toStringingObj])).size is 8 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 PASS new Blob([(new Uint8ClampedArray(100)).buffer]).size is 100 | 74 PASS new Blob([(new Uint8ClampedArray(100)).buffer]).size is 100 |
75 PASS new Blob([(new Uint16Array(100)).buffer]).size is 200 | 75 PASS new Blob([(new Uint16Array(100)).buffer]).size is 200 |
76 PASS new Blob([(new Uint32Array(100)).buffer]).size is 400 | 76 PASS new Blob([(new Uint32Array(100)).buffer]).size is 400 |
77 PASS new Blob([(new Int8Array(100)).buffer]).size is 100 | 77 PASS new Blob([(new Int8Array(100)).buffer]).size is 100 |
78 PASS new Blob([(new Int16Array(100)).buffer]).size is 200 | 78 PASS new Blob([(new Int16Array(100)).buffer]).size is 200 |
79 PASS new Blob([(new Int32Array(100)).buffer]).size is 400 | 79 PASS new Blob([(new Int32Array(100)).buffer]).size is 400 |
80 PASS new Blob([(new Float32Array(100)).buffer]).size is 400 | 80 PASS new Blob([(new Float32Array(100)).buffer]).size is 400 |
81 PASS new Blob([(new Float64Array(100)).buffer]).size is 800 | 81 PASS new Blob([(new Float64Array(100)).buffer]).size is 800 |
82 PASS new Blob([(new Float64Array(100)).buffer, (new Int32Array(100)).buffer, (ne
w Uint8Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size is
1400 | 82 PASS new Blob([(new Float64Array(100)).buffer, (new Int32Array(100)).buffer, (ne
w Uint8Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size is
1400 |
83 PASS new Blob([new Blob([(new Int32Array(100)).buffer]), (new Uint8Array(100)).b
uffer, (new Float32Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buff
er]).size is 1000 | 83 PASS new Blob([new Blob([(new Int32Array(100)).buffer]), (new Uint8Array(100)).b
uffer, (new Float32Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buff
er]).size is 1000 |
84 PASS new Blob({length: 0}).size is 0 | 84 PASS new Blob(createIterable([{done:true}])).size is 0 |
85 PASS new Blob({length: 1, 0: 'string'}).size is 6 | 85 PASS new Blob(createIterable([{done:false, value:'string'},{done:true}])).size i
s 6 |
86 PASS OMICRON_WITH_OXIA.charCodeAt(0) is 0x1F79 | 86 PASS OMICRON_WITH_OXIA.charCodeAt(0) is 0x1F79 |
87 PASS reader.result.charCodeAt(0) is 0x1F79 | 87 PASS reader.result.charCodeAt(0) is 0x1F79 |
88 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(3) is 0xDC00 | 88 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(3) is 0xDC00 |
89 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(7) is 0xD800 | 89 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(7) is 0xD800 |
90 PASS reader.result.charCodeAt(3) is 0xFFFD | 90 PASS reader.result.charCodeAt(3) is 0xFFFD |
91 PASS reader.result.charCodeAt(7) is 0xFFFD | 91 PASS reader.result.charCodeAt(7) is 0xFFFD |
92 PASS successfullyParsed is true | 92 PASS successfullyParsed is true |
93 | 93 |
94 TEST COMPLETE | 94 TEST COMPLETE |
95 | 95 |
OLD | NEW |