2014-01-12 02:51:19 +00:00
This test case tests the various typed array and related constructors. In particular, makes sure that you use the "new" keyword when using the constructors.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
2016-02-23 19:41:56 +00:00
PASS Int8Array() threw exception TypeError: calling Int8Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Int8Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Int8Array.length is 3
2016-02-23 19:41:56 +00:00
PASS Int16Array() threw exception TypeError: calling Int16Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Int16Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Int16Array.length is 3
2016-02-23 19:41:56 +00:00
PASS Int32Array() threw exception TypeError: calling Int32Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Int32Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Int32Array.length is 3
2016-02-23 19:41:56 +00:00
PASS Uint8Array() threw exception TypeError: calling Uint8Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Uint8Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Uint8Array.length is 3
2016-06-30 04:24:52 +00:00
PASS Uint8ClampedArray() threw exception TypeError: calling Uint8ClampedArray constructor without new is invalid.
PASS new Uint8ClampedArray() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Uint8ClampedArray.length is 3
2016-02-23 19:41:56 +00:00
PASS Uint16Array() threw exception TypeError: calling Uint16Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Uint16Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Uint16Array.length is 3
2016-02-23 19:41:56 +00:00
PASS Uint32Array() threw exception TypeError: calling Uint32Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Uint32Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Uint32Array.length is 3
2016-02-23 19:41:56 +00:00
PASS Float32Array() threw exception TypeError: calling Float32Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Float32Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Float32Array.length is 3
2016-02-23 19:41:56 +00:00
PASS Float64Array() threw exception TypeError: calling Float64Array constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new Float64Array() did not throw exception.
2016-09-14 22:27:19 +00:00
PASS Float64Array.length is 3
2016-02-23 19:41:56 +00:00
PASS DataView(new ArrayBuffer()) threw exception TypeError: calling DataView constructor without new is invalid.
2014-01-12 02:51:19 +00:00
PASS new DataView(new ArrayBuffer()) did not throw exception.
2020-09-03 17:04:09 +00:00
PASS DataView.length is 1
2014-01-12 02:51:19 +00:00
PASS successfullyParsed is true
TEST COMPLETE