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([])) instanceof window.Blob is true | 7 PASS (new Blob([])) instanceof window.Blob is true |
8 PASS (new Blob(['hello'])) instanceof window.Blob is true | 8 PASS (new Blob(['hello'])) 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'], {type:'text/html'})) instanceof window.Blob is true | 10 PASS (new Blob(['hello'], {type:'text/html'})) instanceof window.Blob is true |
(...skipping 10 matching lines...) Expand all Loading... |
21 PASS (new Blob([12])).size is 2 | 21 PASS (new Blob([12])).size is 2 |
22 PASS (new Blob([[]])).size is 0 | 22 PASS (new Blob([[]])).size is 0 |
23 PASS (new Blob([{}])).size is 15 | 23 PASS (new Blob([{}])).size is 15 |
24 PASS (new Blob([document])).size is 21 | 24 PASS (new Blob([document])).size is 21 |
25 PASS (new Blob([toStringingObj])).size is 8 | 25 PASS (new Blob([toStringingObj])).size is 8 |
26 PASS new Blob([throwingObj]) threw exception Error. | 26 PASS new Blob([throwingObj]) threw exception Error. |
27 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true | 27 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true |
28 PASS new Blob([], {endings:'illegalValue'}) threw exception TypeError: Failed to
construct 'Blob': The provided value 'illegalValue' is not a valid enum value o
f type NormalizeLineEndings.. | 28 PASS new Blob([], {endings:'illegalValue'}) threw exception TypeError: Failed to
construct 'Blob': The provided value 'illegalValue' is not a valid enum value o
f type NormalizeLineEndings.. |
29 PASS new Blob([], {endings:throwingObj}) threw exception Error. | 29 PASS new Blob([], {endings:throwingObj}) threw exception Error. |
30 PASS new Blob([], {type:throwingObj}) threw exception Error. | 30 PASS new Blob([], {type:throwingObj}) threw exception Error. |
31 PASS new Blob([], {type:'helloĆ®'}) threw exception SyntaxError: Failed to constr
uct 'Blob': The 'type' property must consist of ASCII characters.. | |
32 PASS new Blob([], {endings:throwingObj1, type:throwingObj2}) threw exception Err
or 1. | 31 PASS new Blob([], {endings:throwingObj1, type:throwingObj2}) threw exception Err
or 1. |
33 PASS new Blob([], {type:throwingObj2, endings:throwingObj1}) threw exception Err
or 1. | 32 PASS new Blob([], {type:throwingObj2, endings:throwingObj1}) threw exception Err
or 1. |
34 PASS new Blob([], {type:throwingObj2, endings:'illegal'}) threw exception TypeEr
ror: Failed to construct 'Blob': The provided value 'illegal' is not a valid enu
m value of type NormalizeLineEndings.. | 33 PASS new Blob([], {type:throwingObj2, endings:'illegal'}) threw exception TypeEr
ror: Failed to construct 'Blob': The provided value 'illegal' is not a valid enu
m value of type NormalizeLineEndings.. |
| 34 PASS new Blob([], {type:'helloĆ®'}).type is "" |
| 35 PASS new Blob([], {type:'123ABCabc'}).type is "123abcabc" |
35 PASS (new Blob([], null)) instanceof window.Blob is true | 36 PASS (new Blob([], null)) instanceof window.Blob is true |
36 PASS (new Blob([], undefined)) instanceof window.Blob is true | 37 PASS (new Blob([], undefined)) instanceof window.Blob is true |
37 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile
d to construct 'Blob': parameter 2 ('options') is not an object.. | 38 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile
d to construct 'Blob': parameter 2 ('options') is not an object.. |
38 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. | 39 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. |
39 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail
ed to construct 'Blob': parameter 2 ('options') is not an object.. | 40 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail
ed to construct 'Blob': parameter 2 ('options') is not an object.. |
40 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. | 41 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. |
41 PASS (new Blob([], [])) instanceof window.Blob is true | 42 PASS (new Blob([], [])) instanceof window.Blob is true |
42 PASS (new Blob([], /abc/)) instanceof window.Blob is true | 43 PASS (new Blob([], /abc/)) instanceof window.Blob is true |
43 PASS (new Blob([], function () {})) instanceof window.Blob is true | 44 PASS (new Blob([], function () {})) instanceof window.Blob is true |
44 PASS (new Blob([], {type:'text/html'})).type is 'text/html' | 45 PASS (new Blob([], {type:'text/html'})).type is 'text/html' |
(...skipping 26 matching lines...) Expand all Loading... |
71 PASS new Blob([(new Float32Array(100)).buffer]).size is 400 | 72 PASS new Blob([(new Float32Array(100)).buffer]).size is 400 |
72 PASS new Blob([(new Float64Array(100)).buffer]).size is 800 | 73 PASS new Blob([(new Float64Array(100)).buffer]).size is 800 |
73 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 | 74 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 |
74 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 | 75 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 |
75 PASS new Blob({length: 0}).size is 0 | 76 PASS new Blob({length: 0}).size is 0 |
76 PASS new Blob({length: 1, 0: 'string'}).size is 6 | 77 PASS new Blob({length: 1, 0: 'string'}).size is 6 |
77 PASS successfullyParsed is true | 78 PASS successfullyParsed is true |
78 | 79 |
79 TEST COMPLETE | 80 TEST COMPLETE |
80 | 81 |
OLD | NEW |