| 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 |
| 11 PASS (new Blob(['hello'], {type:'text/html', endings:'native'})) instanceof wind
ow.Blob is true | 11 PASS (new Blob(['hello'], {type:'text/html', endings:'native'})) instanceof wind
ow.Blob is true |
| 12 PASS (new Blob(['hello'], {type:'text/html', endings:'transparent'})) instanceof
window.Blob is true | 12 PASS (new Blob(['hello'], {type:'text/html', endings:'transparent'})) instanceof
window.Blob is true |
| 13 PASS new Blob('hello') threw exception TypeError: First argument of the construc
tor is not of type Array. | 13 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.. |
| 14 PASS new Blob(0) threw exception TypeError: First argument of the constructor is
not of type Array. | 14 PASS new Blob(0) threw exception TypeError: Failed to construct 'Blob': The 1st
argument is neither an array, nor does it have indexed properties.. |
| 15 PASS (new Blob([])) instanceof window.Blob is true | 15 PASS (new Blob([])) instanceof window.Blob is true |
| 16 PASS (new Blob(['stringPrimitive'])) instanceof window.Blob is true | 16 PASS (new Blob(['stringPrimitive'])) instanceof window.Blob is true |
| 17 PASS (new Blob([String('stringObject')])) instanceof window.Blob is true | 17 PASS (new Blob([String('stringObject')])) instanceof window.Blob is true |
| 18 PASS (new Blob([new Blob])) instanceof window.Blob is true | 18 PASS (new Blob([new Blob])) instanceof window.Blob is true |
| 19 PASS (new Blob([new Blob([new Blob])])) instanceof window.Blob is true | 19 PASS (new Blob([new Blob([new Blob])])) instanceof window.Blob is true |
| 20 PASS (new Blob([12])).size is 2 | 20 PASS (new Blob([12])).size is 2 |
| 21 PASS (new Blob([[]])).size is 0 | 21 PASS (new Blob([[]])).size is 0 |
| 22 PASS (new Blob([{}])).size is 15 | 22 PASS (new Blob([{}])).size is 15 |
| 23 PASS (new Blob([document])).size is 21 | 23 PASS (new Blob([document])).size is 21 |
| 24 PASS (new Blob([toStringingObj])).size is 8 | 24 PASS (new Blob([toStringingObj])).size is 8 |
| 25 PASS new Blob([throwingObj]) threw exception Error. | 25 PASS new Blob([throwingObj]) threw exception Error. |
| 26 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true | 26 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true |
| 27 PASS new Blob([], {endings:'illegalValue'}) threw exception TypeError: The endin
gs property must be either "transparent" or "native". | 27 PASS new Blob([], {endings:'illegalValue'}) threw exception TypeError: Failed to
construct 'Blob': The 2nd argument's "endings" property must be either "transpa
rent" or "native".. |
| 28 PASS new Blob([], {endings:throwingObj}) threw exception Error. | 28 PASS new Blob([], {endings:throwingObj}) threw exception Error. |
| 29 PASS new Blob([], {type:throwingObj}) threw exception Error. | 29 PASS new Blob([], {type:throwingObj}) threw exception Error. |
| 30 PASS new Blob([], {type:'helloĆ®'}) threw exception SyntaxError: type must consis
t of ASCII characters. | 30 PASS new Blob([], {type:'helloĆ®'}) threw exception SyntaxError: Failed to constr
uct 'Blob': The 2nd argument's "type" property must consist of ASCII characters.
. |
| 31 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. |
| 32 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. |
| 33 PASS new Blob([], {type:throwingObj2, endings:'illegal'}) threw exception TypeEr
ror: The endings property must be either "transparent" or "native". | 33 PASS new Blob([], {type:throwingObj2, endings:'illegal'}) threw exception TypeEr
ror: Failed to construct 'Blob': The 2nd argument's "endings" property must be e
ither "transparent" or "native".. |
| 34 PASS (new Blob([], null)) instanceof window.Blob threw exception TypeError: Seco
nd argument of the constructor is not of type Object. | 34 PASS (new Blob([], null)) instanceof window.Blob threw exception TypeError: Fail
ed to construct 'Blob': The 2nd argument is not of type Object.. |
| 35 PASS (new Blob([], undefined)) instanceof window.Blob threw exception TypeError:
Second argument of the constructor is not of type Object. | 35 PASS (new Blob([], undefined)) instanceof window.Blob threw exception TypeError:
Failed to construct 'Blob': The 2nd argument is not of type Object.. |
| 36 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Secon
d argument of the constructor is not of type Object. | 36 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile
d to construct 'Blob': The 2nd argument is not of type Object.. |
| 37 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Sec
ond argument of the constructor is not of type Object. | 37 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': The 2nd argument is not of type Object.. |
| 38 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Seco
nd argument of the constructor is not of type Object. | 38 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail
ed to construct 'Blob': The 2nd argument is not of type Object.. |
| 39 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Sec
ond argument of the constructor is not of type Object. | 39 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai
led to construct 'Blob': The 2nd argument is not of type Object.. |
| 40 PASS (new Blob([], [])) instanceof window.Blob is true | 40 PASS (new Blob([], [])) instanceof window.Blob is true |
| 41 PASS (new Blob([], /abc/)) instanceof window.Blob is true | 41 PASS (new Blob([], /abc/)) instanceof window.Blob is true |
| 42 PASS (new Blob([], function () {})) instanceof window.Blob is true | 42 PASS (new Blob([], function () {})) instanceof window.Blob is true |
| 43 PASS (new Blob([], {type:'text/html'})).type is 'text/html' | 43 PASS (new Blob([], {type:'text/html'})).type is 'text/html' |
| 44 PASS (new Blob([], {type:'text/html'})).size is 0 | 44 PASS (new Blob([], {type:'text/html'})).size is 0 |
| 45 PASS (new Blob([], {type:'text/plain;charset=UTF-8'})).type is 'text/plain;chars
et=utf-8' | 45 PASS (new Blob([], {type:'text/plain;charset=UTF-8'})).type is 'text/plain;chars
et=utf-8' |
| 46 FAIL window.Blob.length should be 2. Was 0. | 46 FAIL window.Blob.length should be 2. Was 0. |
| 47 PASS new Blob([new DataView(new ArrayBuffer(100))]).size is 100 | 47 PASS new Blob([new DataView(new ArrayBuffer(100))]).size is 100 |
| 48 PASS new Blob([new Uint8Array(100)]).size is 100 | 48 PASS new Blob([new Uint8Array(100)]).size is 100 |
| 49 PASS new Blob([new Uint8ClampedArray(100)]).size is 100 | 49 PASS new Blob([new Uint8ClampedArray(100)]).size is 100 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 66 PASS new Blob([(new Int32Array(100)).buffer]).size is 400 | 66 PASS new Blob([(new Int32Array(100)).buffer]).size is 400 |
| 67 PASS new Blob([(new Float32Array(100)).buffer]).size is 400 | 67 PASS new Blob([(new Float32Array(100)).buffer]).size is 400 |
| 68 PASS new Blob([(new Float64Array(100)).buffer]).size is 800 | 68 PASS new Blob([(new Float64Array(100)).buffer]).size is 800 |
| 69 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 | 69 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 |
| 70 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 | 70 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 |
| 71 PASS new Blob({length: 0}) instanceof window.Blob is true | 71 PASS new Blob({length: 0}) instanceof window.Blob is true |
| 72 PASS new Blob({length: 0}).size is 0 | 72 PASS new Blob({length: 0}).size is 0 |
| 73 PASS new Blob({length: 1, 0: 'string'}).size is 6 | 73 PASS new Blob({length: 1, 0: 'string'}).size is 6 |
| 74 PASS new Blob({length: 2, 0: new Uint8Array(100), 1: new Int16Array(100)}).size
is 300 | 74 PASS new Blob({length: 2, 0: new Uint8Array(100), 1: new Int16Array(100)}).size
is 300 |
| 75 PASS new Blob({length: 1, 0: 'string'}, {type: 'text/html'}).type is 'text/html' | 75 PASS new Blob({length: 1, 0: 'string'}, {type: 'text/html'}).type is 'text/html' |
| 76 PASS new Blob({length: 0}, {endings:'illegal'}) threw exception TypeError: The e
ndings property must be either "transparent" or "native". | 76 PASS new Blob({length: 0}, {endings:'illegal'}) threw exception TypeError: Faile
d to construct 'Blob': The 2nd argument's "endings" property must be either "tra
nsparent" or "native".. |
| 77 PASS successfullyParsed is true | 77 PASS successfullyParsed is true |
| 78 | 78 |
| 79 TEST COMPLETE | 79 TEST COMPLETE |
| 80 | 80 |
| OLD | NEW |