Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: LayoutTests/fast/canvas/webgl/data-view-test-expected.txt

Issue 19230002: Use V8 implementation of TypedArrays and DataView in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More copyright notices fixed. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
diff --git a/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt b/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
index 3f15da464ffd56e33677af77559193825e715fa0..a8258e758b05c714466f79d30e5d7fca73331c56 100644
--- a/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
+++ b/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
@@ -22,9 +22,9 @@ PASS view.byteOffset is 0
PASS view.byteLength is 1
Test for constructor throwing exception
-PASS view = new DataView(arayBuffer, 0, 3) threw exception RangeError: Size is too large (or is negative)..
-PASS view = new DataView(arayBuffer, 1, 2) threw exception RangeError: Size is too large (or is negative)..
-PASS view = new DataView(arayBuffer, 2, 1) threw exception RangeError: Size is too large (or is negative)..
+PASS view = new DataView(arayBuffer, 0, 3) threw exception RangeError: Invalid data view length.
+PASS view = new DataView(arayBuffer, 1, 2) threw exception RangeError: Invalid data view length.
+PASS view = new DataView(arayBuffer, 2, 1) threw exception RangeError: Invalid data view length.
Test for get methods that work
PASS view.getInt8(0) is 0
@@ -152,161 +152,161 @@ PASS view.getFloat64(10, false) is -NaN
Test for get methods that might read beyond range
PASS view.getInt8(0) is 0
-PASS view.getInt8(8) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt8(15) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getInt8(8) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt8(15) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getUint8(0) is 0
-PASS view.getUint8(8) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint8(15) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getUint8(8) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint8(15) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getInt16(0, true) is 256
-PASS view.getInt16(5, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt16(9, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt16(14, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getInt16(5, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt16(9, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt16(14, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getInt16(0) is 1
-PASS view.getInt16(5) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt16(9) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt16(14) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getInt16(5) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt16(9) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt16(14) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getUint16(0, true) is 256
-PASS view.getUint16(5, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint16(9, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint16(14, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getUint16(5, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint16(9, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint16(14, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getUint16(0) is 1
-PASS view.getUint16(5) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint16(9) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint16(14) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(6, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(9, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(12, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(6) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(9) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(12) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(6, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(9, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(12, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(6) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(9) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(12) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getUint16(5) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint16(9) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint16(14) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(6, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(9, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(12, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(3) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(6) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(9) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(12) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(6, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(9, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(12, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(3) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(6) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(9) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(12) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat32(0, false) is 10
PASS view.getFloat32(3, false) is 10
PASS view.getFloat32(7, false) is 10
PASS view.getFloat32(10, false) is 10
-PASS view.getFloat32(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat32(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat32(0, false) is 1.2300000190734863
PASS view.getFloat32(3, false) is 1.2300000190734863
PASS view.getFloat32(7, false) is 1.2300000190734863
PASS view.getFloat32(10, false) is 1.2300000190734863
-PASS view.getFloat32(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat32(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat32(0, false) is -45621.37109375
PASS view.getFloat32(3, false) is -45621.37109375
PASS view.getFloat32(7, false) is -45621.37109375
PASS view.getFloat32(10, false) is -45621.37109375
-PASS view.getFloat32(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat32(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat32(0, false) is NaN
PASS view.getFloat32(3, false) is NaN
PASS view.getFloat32(7, false) is NaN
PASS view.getFloat32(10, false) is NaN
-PASS view.getFloat32(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat32(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat32(0, false) is -NaN
PASS view.getFloat32(3, false) is -NaN
PASS view.getFloat32(7, false) is -NaN
PASS view.getFloat32(10, false) is -NaN
-PASS view.getFloat64(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat64(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat64(0, false) is 10
PASS view.getFloat64(3, false) is 10
PASS view.getFloat64(7, false) is 10
PASS view.getFloat64(10, false) is 10
-PASS view.getFloat64(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat64(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat64(0, false) is 1.23
PASS view.getFloat64(3, false) is 1.23
PASS view.getFloat64(7, false) is 1.23
PASS view.getFloat64(10, false) is 1.23
-PASS view.getFloat64(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat64(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat64(0, false) is -6213576.4839
PASS view.getFloat64(3, false) is -6213576.4839
PASS view.getFloat64(7, false) is -6213576.4839
PASS view.getFloat64(10, false) is -6213576.4839
-PASS view.getFloat64(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat64(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat64(0, false) is NaN
PASS view.getFloat64(3, false) is NaN
PASS view.getFloat64(7, false) is NaN
PASS view.getFloat64(10, false) is NaN
-PASS view.getFloat64(0, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(3, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(7, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(10, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getFloat64(0, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(3, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(7, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(10, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.getFloat64(0, false) is -NaN
PASS view.getFloat64(3, false) is -NaN
PASS view.getFloat64(7, false) is -NaN
PASS view.getFloat64(10, false) is -NaN
Test for get methods that read from negative index
-PASS view.getInt8(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt8(-2) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint8(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint8(-2) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt16(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt16(-2) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt16(-3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint16(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint16(-2) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint16(-3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(-3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getInt32(-5) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(-3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getUint32(-5) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(-3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat32(-5) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(-1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(-5) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.getFloat64(-9) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.getInt8(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt8(-2) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint8(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint8(-2) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt16(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt16(-2) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt16(-3) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint16(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint16(-2) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint16(-3) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(-3) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getInt32(-5) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(-3) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getUint32(-5) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(-3) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat32(-5) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(-1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(-5) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.getFloat64(-9) threw exception RangeError: Offset is outside the bounds of the DataView.
Test for wrong arguments passed to get methods
-PASS view.getInt8() threw exception TypeError: Not enough arguments.
-PASS view.getUint8() threw exception TypeError: Not enough arguments.
-PASS view.getInt16() threw exception TypeError: Not enough arguments.
-PASS view.getUint16() threw exception TypeError: Not enough arguments.
-PASS view.getInt32() threw exception TypeError: Not enough arguments.
-PASS view.getUint32() threw exception TypeError: Not enough arguments.
-PASS view.getFloat32() threw exception TypeError: Not enough arguments.
-PASS view.getFloat64() threw exception TypeError: Not enough arguments.
+PASS view.getInt8() threw exception TypeError: invalid_argument.
+PASS view.getUint8() threw exception TypeError: invalid_argument.
+PASS view.getInt16() threw exception TypeError: invalid_argument.
+PASS view.getUint16() threw exception TypeError: invalid_argument.
+PASS view.getInt32() threw exception TypeError: invalid_argument.
+PASS view.getUint32() threw exception TypeError: invalid_argument.
+PASS view.getFloat32() threw exception TypeError: invalid_argument.
+PASS view.getFloat64() threw exception TypeError: invalid_argument.
Test for set methods that work
PASS view.setInt8(0, 0) is undefined.
@@ -557,52 +557,52 @@ PASS view.getFloat64(10, false) is -NaN
Test for set methods that might write beyond the range
PASS view.setInt8(0, 0) is undefined.
PASS view.getInt8(0) is 0
-PASS view.setInt8(8, -128) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt8(15, -1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.setInt8(8, -128) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt8(15, -1) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.setUint8(0, 0) is undefined.
PASS view.getUint8(0) is 0
-PASS view.setUint8(8, 128) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint8(15, 255) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.setUint8(8, 128) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint8(15, 255) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.setInt16(0, 256, true) is undefined.
PASS view.getInt16(0, true) is 256
-PASS view.setInt16(5, 26213, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt16(9, -32127, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt16(14, -2, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.setInt16(5, 26213, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt16(9, -32127, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt16(14, -2, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.setInt16(0, 1) is undefined.
PASS view.getInt16(0) is 1
-PASS view.setInt16(5, 25958) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt16(9, -32382) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt16(14, -257) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.setInt16(5, 25958) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt16(9, -32382) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt16(14, -257) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.setUint16(0, 256, true) is undefined.
PASS view.getUint16(0, true) is 256
-PASS view.setUint16(5, 26213, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint16(9, 33409, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint16(14, 65534, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.setUint16(5, 26213, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(9, 33409, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(14, 65534, true) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.setUint16(0, 1) is undefined.
PASS view.getUint16(0) is 1
-PASS view.setUint16(5, 25958) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint16(9, 33154) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint16(14, 65279) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(0, 50462976, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(3, 1717920771, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(6, -2122291354, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(9, -58490239, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(12, -66052, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(0, 66051) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(3, 56911206) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(6, 1718059137) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(9, -2122152964) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(12, -50462977) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(0, 50462976, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(3, 1717920771, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(6, 2172675942, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(9, 4236477057, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(12, 4294901244, true) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(0, 66051) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(3, 56911206) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(6, 1718059137) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(9, 2172814332) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(12, 4244504319) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.setUint16(5, 25958) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(9, 33154) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(14, 65279) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(0, 50462976, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(3, 1717920771, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(6, -2122291354, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(9, -58490239, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(12, -66052, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(0, 66051) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(3, 56911206) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(6, 1718059137) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(9, -2122152964) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(12, -50462977) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(0, 50462976, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(3, 1717920771, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(6, 2172675942, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(9, 4236477057, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(12, 4294901244, true) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(0, 66051) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(3, 56911206) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(6, 1718059137) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(9, 2172814332) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(12, 4244504319) threw exception RangeError: Offset is outside the bounds of the DataView.
PASS view.setFloat32(0, 10, true) is undefined.
PASS view.getFloat32(0, true) is 10
PASS view.setFloat32(3, 10, true) is undefined.
@@ -765,46 +765,46 @@ PASS view.setFloat64(10, -NaN, false) is undefined.
PASS view.getFloat64(10, false) is -NaN
Test for set methods that write to negative index
-PASS view.setInt8(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt8(-2, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint8(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint8(-2, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt16(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt16(-2, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt16(-3, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint16(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint16(-2, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint16(-3, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(-3, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setInt32(-5, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(-3, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setUint32(-5, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setFloat32(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setFloat32(-3, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setFloat32(-5, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setFloat64(-1, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setFloat64(-5, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS view.setFloat64(-9, 0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS view.setInt8(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt8(-2, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint8(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint8(-2, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt16(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt16(-2, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt16(-3, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(-2, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(-3, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(-3, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(-5, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(-3, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint32(-5, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat32(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat32(-3, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat32(-5, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat64(-1, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat64(-5, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat64(-9, 0) threw exception RangeError: Offset is outside the bounds of the DataView.
Test for wrong arguments passed to set methods
-PASS view.setInt8() threw exception TypeError: Not enough arguments.
-PASS view.setUint8() threw exception TypeError: Not enough arguments.
-PASS view.setInt16() threw exception TypeError: Not enough arguments.
-PASS view.setUint16() threw exception TypeError: Not enough arguments.
-PASS view.setInt32() threw exception TypeError: Not enough arguments.
-PASS view.setUint32() threw exception TypeError: Not enough arguments.
-PASS view.setFloat32() threw exception TypeError: Not enough arguments.
-PASS view.setFloat64() threw exception TypeError: Not enough arguments.
-PASS view.setInt8(1) threw exception TypeError: Not enough arguments.
-PASS view.setUint8(1) threw exception TypeError: Not enough arguments.
-PASS view.setInt16(1) threw exception TypeError: Not enough arguments.
-PASS view.setUint16(1) threw exception TypeError: Not enough arguments.
-PASS view.setInt32(1) threw exception TypeError: Not enough arguments.
-PASS view.setUint32(1) threw exception TypeError: Not enough arguments.
-PASS view.setFloat32(1) threw exception TypeError: Not enough arguments.
-PASS view.setFloat64(1) threw exception TypeError: Not enough arguments.
+PASS view.setInt8() threw exception TypeError: invalid_argument.
+PASS view.setUint8() threw exception TypeError: invalid_argument.
+PASS view.setInt16() threw exception TypeError: invalid_argument.
+PASS view.setUint16() threw exception TypeError: invalid_argument.
+PASS view.setInt32() threw exception TypeError: invalid_argument.
+PASS view.setUint32() threw exception TypeError: invalid_argument.
+PASS view.setFloat32() threw exception TypeError: invalid_argument.
+PASS view.setFloat64() threw exception TypeError: invalid_argument.
+FAIL view.setInt8(1) should throw an exception. Was undefined.
+FAIL view.setUint8(1) should throw an exception. Was undefined.
+PASS view.setInt16(1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setUint16(1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setInt32(1) threw exception TypeError: invalid_argument.
+PASS view.setUint32(1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat32(1) threw exception RangeError: Offset is outside the bounds of the DataView.
+PASS view.setFloat64(1) threw exception RangeError: Offset is outside the bounds of the DataView.
Test for indexing that should not work
PASS view[0] is undefined.

Powered by Google App Engine
This is Rietveld 408576698