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 |
(...skipping 15 matching lines...) Expand all Loading... |
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 |
31 PASS new Blob([throwingObj]) threw exception Error. | 31 PASS new Blob([throwingObj]) threw exception Error. |
32 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true | 32 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true |
33 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.. | 33 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.. |
34 PASS new Blob([], {endings:throwingObj}) threw exception Error. | 34 PASS new Blob([], {endings:throwingObj}) threw exception Error. |
35 PASS new Blob([], {type:throwingObj}) threw exception Error. | 35 PASS new Blob([], {type:throwingObj}) threw exception Error. |
36 PASS new Blob([], {type:'helloĆ®'}) threw exception SyntaxError: Failed to constr
uct 'Blob': The 'type' property must consist of ASCII characters.. | |
37 PASS new Blob([], {endings:throwingObj1, type:throwingObj2}) threw exception Err
or 1. | 36 PASS new Blob([], {endings:throwingObj1, type:throwingObj2}) threw exception Err
or 1. |
38 PASS new Blob([], {type:throwingObj2, endings:throwingObj1}) threw exception Err
or 1. | 37 PASS new Blob([], {type:throwingObj2, endings:throwingObj1}) threw exception Err
or 1. |
39 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.. | 38 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.. |
| 39 PASS new Blob([], {type:'hello\u00EE'}).type is "" |
| 40 PASS new Blob([], {type:'hello\u001F'}).type is "" |
| 41 PASS new Blob([], {type:'hello\u007F'}).type is "" |
| 42 PASS new Blob([], {type:'ABC/abc'}).type is "abc/abc" |
| 43 PASS new Blob([], {type:'123ABCabc'}).type is "123abcabc" |
40 PASS (new Blob([], null)) instanceof window.Blob is true | 44 PASS (new Blob([], null)) instanceof window.Blob is true |
41 PASS (new Blob([], undefined)) instanceof window.Blob is true | 45 PASS (new Blob([], undefined)) instanceof window.Blob is true |
42 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile
d to construct 'Blob': parameter 2 ('options') is not an object.. | 46 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile
d to construct 'Blob': parameter 2 ('options') is not an object.. |
43 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. | 47 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. |
44 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail
ed to construct 'Blob': parameter 2 ('options') is not an object.. | 48 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail
ed to construct 'Blob': parameter 2 ('options') is not an object.. |
45 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. | 49 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': parameter 2 ('options') is not an object.. |
46 PASS (new Blob([], [])) instanceof window.Blob is true | 50 PASS (new Blob([], [])) instanceof window.Blob is true |
47 PASS (new Blob([], /abc/)) instanceof window.Blob is true | 51 PASS (new Blob([], /abc/)) instanceof window.Blob is true |
48 PASS (new Blob([], function () {})) instanceof window.Blob is true | 52 PASS (new Blob([], function () {})) instanceof window.Blob is true |
49 PASS (new Blob([], {type:'text/html'})).type is 'text/html' | 53 PASS (new Blob([], {type:'text/html'})).type is 'text/html' |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 PASS OMICRON_WITH_OXIA.charCodeAt(0) is 0x1F79 | 86 PASS OMICRON_WITH_OXIA.charCodeAt(0) is 0x1F79 |
83 PASS reader.result.charCodeAt(0) is 0x1F79 | 87 PASS reader.result.charCodeAt(0) is 0x1F79 |
84 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(3) is 0xDC00 | 88 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(3) is 0xDC00 |
85 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(7) is 0xD800 | 89 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(7) is 0xD800 |
86 PASS reader.result.charCodeAt(3) is 0xFFFD | 90 PASS reader.result.charCodeAt(3) is 0xFFFD |
87 PASS reader.result.charCodeAt(7) is 0xFFFD | 91 PASS reader.result.charCodeAt(7) is 0xFFFD |
88 PASS successfullyParsed is true | 92 PASS successfullyParsed is true |
89 | 93 |
90 TEST COMPLETE | 94 TEST COMPLETE |
91 | 95 |
OLD | NEW |