summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/webgl
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/canvas/webgl')
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests-expected.txt14
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests.html101
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-invalid-arguments-expected.txt42
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-out-of-bounds-expected.txt28
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt8
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests.html23
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-crash-expected.txt4
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt366
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/script-tests/arraybuffer-transfer-of-control.js3
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt5
-rw-r--r--third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges.html4
11 files changed, 251 insertions, 347 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests-expected.txt
deleted file mode 100644
index 66b8bcb..0000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests-expected.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Verifies allocation of large array buffers
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-PASS Construction of huge Float32Array threw exception
-PASS Construction of huge Float64Array threw exception
-PASS Construction of huge Int16Array threw exception
-PASS Construction of huge Int32Array threw exception
-PASS Construction of huge Uint16Array threw exception
-PASS Construction of huge Uint32Array threw exception
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests.html
deleted file mode 100644
index 0d63287..0000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-large-array-tests.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="utf-8">
-<link rel="stylesheet" href="../../resources/js-test-style.css"/>
-<script src="../../js/resources/js-test-pre.js"></script>
-<script src="resources/webgl-test.js"></script>
-<script src="resources/typed-array-test-cases.js"></script>
-</head>
-<body>
-<div id="description"></div>
-<div id="console"></div>
-
-<script>
-description("Verifies allocation of large array buffers");
-
-var currentlyRunning = '';
-var allPassed = true;
-function running(str) {
- currentlyRunning = str;
-}
-
-function output(str) {
- debug(str);
-}
-
-function pass() {
- testPassed(currentlyRunning);
-}
-
-function fail(str) {
- allPassed = false;
- var exc;
- if (str)
- exc = currentlyRunning + ': ' + str;
- else
- exc = currentlyRunning;
- testFailed(exc);
-}
-
-function assertEq(prefix, expected, val) {
- if (expected != val) {
- var str = prefix + ': expected ' + expected + ', got ' + val;
- throw str;
- }
-}
-
-function assert(prefix, expected) {
- if (!expected) {
- var str = prefix + ': expected value / true';
- throw str;
- }
-}
-
-function printSummary() {
- if (allPassed) {
- debug("Test passed.");
- } else {
- debug("TEST FAILED");
- }
-}
-
-
-function testConstructionOfHugeArray(type, name, sz) {
- if (sz == 1)
- return;
- try {
- // Construction of huge arrays must fail because byteLength is
- // an unsigned long
- array = new type(3000000000);
- testFailed("Construction of huge " + name + " should throw exception");
- } catch (e) {
- testPassed("Construction of huge " + name + " threw exception");
- }
-}
-
-function runTests() {
- allPassed = true;
-
- for (var i = 0; i < testCases.length; i++) {
- var testCase = testCases[i];
- running(testCase.name);
- if (!(testCase.name in window)) {
- fail("does not exist");
- continue;
- }
- var type = window[testCase.name];
- var name = testCase.name;
- testConstructionOfHugeArray(type, name, testCase.elementSizeInBytes);
- }
-}
-
-runTests();
-var successfullyParsed = true;
-
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-
-</body>
-</html>
-
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-invalid-arguments-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-invalid-arguments-expected.txt
index bae03bc..6e5bd04 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-invalid-arguments-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-invalid-arguments-expected.txt
@@ -2,27 +2,27 @@ Verifies that attempting to set invalid elements to a Typed Array throws an exce
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS typedArray.set() threw exception TypeError: Cannot read property 'length' of undefined.
-PASS typedArray.set('hello world') threw exception RangeError: Source is too large.
-PASS typedArray.set(otherArray, 1) threw exception RangeError: Source is too large.
-PASS typedArray.set() threw exception TypeError: Cannot read property 'length' of undefined.
-PASS typedArray.set('hello world') threw exception RangeError: Source is too large.
-PASS typedArray.set(otherArray, 1) threw exception RangeError: Source is too large.
-PASS typedArray.set() threw exception TypeError: Cannot read property 'length' of undefined.
-PASS typedArray.set('hello world') threw exception RangeError: Source is too large.
-PASS typedArray.set(otherArray, 1) threw exception RangeError: Source is too large.
-PASS typedArray.set() threw exception TypeError: Cannot read property 'length' of undefined.
-PASS typedArray.set('hello world') threw exception RangeError: Source is too large.
-PASS typedArray.set(otherArray, 1) threw exception RangeError: Source is too large.
-PASS typedArray.set() threw exception TypeError: Cannot read property 'length' of undefined.
-PASS typedArray.set('hello world') threw exception RangeError: Source is too large.
-PASS typedArray.set(otherArray, 1) threw exception RangeError: Source is too large.
-PASS typedArray.set() threw exception TypeError: Cannot read property 'length' of undefined.
-PASS typedArray.set('hello world') threw exception RangeError: Source is too large.
-PASS typedArray.set(otherArray, 1) threw exception RangeError: Source is too large.
-PASS typedArray.set() threw exception TypeError: Cannot read property 'length' of undefined.
-PASS typedArray.set('hello world') threw exception RangeError: Source is too large.
-PASS typedArray.set(otherArray, 1) threw exception RangeError: Source is too large.
+PASS typedArray.set() threw exception TypeError: Not enough arguments.
+PASS typedArray.set('hello world') threw exception TypeError: Invalid argument.
+PASS typedArray.set(otherArray, 1) threw exception RangeError: Index is out of range..
+PASS typedArray.set() threw exception TypeError: Not enough arguments.
+PASS typedArray.set('hello world') threw exception TypeError: Invalid argument.
+PASS typedArray.set(otherArray, 1) threw exception RangeError: Index is out of range..
+PASS typedArray.set() threw exception TypeError: Not enough arguments.
+PASS typedArray.set('hello world') threw exception TypeError: Invalid argument.
+PASS typedArray.set(otherArray, 1) threw exception RangeError: Index is out of range..
+PASS typedArray.set() threw exception TypeError: Not enough arguments.
+PASS typedArray.set('hello world') threw exception TypeError: Invalid argument.
+PASS typedArray.set(otherArray, 1) threw exception RangeError: Index is out of range..
+PASS typedArray.set() threw exception TypeError: Not enough arguments.
+PASS typedArray.set('hello world') threw exception TypeError: Invalid argument.
+PASS typedArray.set(otherArray, 1) threw exception RangeError: Index is out of range..
+PASS typedArray.set() threw exception TypeError: Not enough arguments.
+PASS typedArray.set('hello world') threw exception TypeError: Invalid argument.
+PASS typedArray.set(otherArray, 1) threw exception RangeError: Index is out of range..
+PASS typedArray.set() threw exception TypeError: Not enough arguments.
+PASS typedArray.set('hello world') threw exception TypeError: Invalid argument.
+PASS typedArray.set(otherArray, 1) threw exception RangeError: Index is out of range..
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-out-of-bounds-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-out-of-bounds-expected.txt
index cd91ae1..bcc7d85 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-out-of-bounds-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-set-out-of-bounds-expected.txt
@@ -4,26 +4,26 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
Regression test for https://bugs.webkit.org/show_bug.cgi?id=33352 : Passing array that is too large to set method of WebGLArrays does not throw an exception
Testing Int8Array
-PASS webGLArray.set([4, 5], 1) threw exception RangeError: Source is too large.
-PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Source is too large.
+PASS webGLArray.set([4, 5], 1) threw exception RangeError: Index is out of range..
+PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Index is out of range..
Testing Uint8Array
-PASS webGLArray.set([4, 5], 1) threw exception RangeError: Source is too large.
-PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Source is too large.
+PASS webGLArray.set([4, 5], 1) threw exception RangeError: Index is out of range..
+PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Index is out of range..
Testing Int16Array
-PASS webGLArray.set([4, 5], 1) threw exception RangeError: Source is too large.
-PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Source is too large.
+PASS webGLArray.set([4, 5], 1) threw exception RangeError: Index is out of range..
+PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Index is out of range..
Testing Uint16Array
-PASS webGLArray.set([4, 5], 1) threw exception RangeError: Source is too large.
-PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Source is too large.
+PASS webGLArray.set([4, 5], 1) threw exception RangeError: Index is out of range..
+PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Index is out of range..
Testing Int32Array
-PASS webGLArray.set([4, 5], 1) threw exception RangeError: Source is too large.
-PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Source is too large.
+PASS webGLArray.set([4, 5], 1) threw exception RangeError: Index is out of range..
+PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Index is out of range..
Testing Uint32Array
-PASS webGLArray.set([4, 5], 1) threw exception RangeError: Source is too large.
-PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Source is too large.
+PASS webGLArray.set([4, 5], 1) threw exception RangeError: Index is out of range..
+PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Index is out of range..
Testing Float32Array
-PASS webGLArray.set([4, 5], 1) threw exception RangeError: Source is too large.
-PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Source is too large.
+PASS webGLArray.set([4, 5], 1) threw exception RangeError: Index is out of range..
+PASS webGLArray.set([4, 5, 6]) threw exception RangeError: Index is out of range..
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt
index 21d3c33..b9d69e9 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests-expected.txt
@@ -5,7 +5,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS testSlice
test inheritance hierarchy of typed array views
PASS ArrayBufferView has [NoInterfaceObject] extended attribute and was (correctly) not defined
-PASS new Uint8ClampedArray(1) instanceof Uint8Array is false
+PASS new Uint8ClampedArray(1) instanceof Uint8Array is true
PASS test Float32Array SetAndGetPos10ToNeg10
PASS test Float32Array ConstructWithArrayOfSignedValues
PASS test Float32Array ConstructWithTypedArrayOfSignedValues
@@ -34,6 +34,7 @@ PASS Construction of Float32Array with negative size threw exception
PASS Construction of Float32Array with negative out-of-range values threw an exception
PASS Construction of Float32Array with unaligned offset threw an exception
PASS Construction of Float32Array with unaligned length threw an exception
+PASS Construction of huge Float32Array threw exception
PASS Array lengths matched with explicit and implicit creation of ArrayBuffer
PASS new Float32Array(new ArrayBuffer(18), 0, 2) succeeded
Testing subarray of Float32Array
@@ -89,6 +90,7 @@ PASS Construction of Float64Array with negative size threw exception
PASS Construction of Float64Array with negative out-of-range values threw an exception
PASS Construction of Float64Array with unaligned offset threw an exception
PASS Construction of Float64Array with unaligned length threw an exception
+PASS Construction of huge Float64Array threw exception
PASS Array lengths matched with explicit and implicit creation of ArrayBuffer
PASS new Float64Array(new ArrayBuffer(36), 0, 2) succeeded
Testing subarray of Float64Array
@@ -197,6 +199,7 @@ PASS Construction of Int16Array with negative size threw exception
PASS Construction of Int16Array with negative out-of-range values threw an exception
PASS Construction of Int16Array with unaligned offset threw an exception
PASS Construction of Int16Array with unaligned length threw an exception
+PASS Construction of huge Int16Array threw exception
PASS Array lengths matched with explicit and implicit creation of ArrayBuffer
PASS new Int16Array(new ArrayBuffer(9), 0, 2) succeeded
Testing subarray of Int16Array
@@ -253,6 +256,7 @@ PASS Construction of Int32Array with negative size threw exception
PASS Construction of Int32Array with negative out-of-range values threw an exception
PASS Construction of Int32Array with unaligned offset threw an exception
PASS Construction of Int32Array with unaligned length threw an exception
+PASS Construction of huge Int32Array threw exception
PASS Array lengths matched with explicit and implicit creation of ArrayBuffer
PASS new Int32Array(new ArrayBuffer(18), 0, 2) succeeded
Testing subarray of Int32Array
@@ -413,6 +417,7 @@ PASS Construction of Uint16Array with negative size threw exception
PASS Construction of Uint16Array with negative out-of-range values threw an exception
PASS Construction of Uint16Array with unaligned offset threw an exception
PASS Construction of Uint16Array with unaligned length threw an exception
+PASS Construction of huge Uint16Array threw exception
PASS Array lengths matched with explicit and implicit creation of ArrayBuffer
PASS new Uint16Array(new ArrayBuffer(9), 0, 2) succeeded
Testing subarray of Uint16Array
@@ -469,6 +474,7 @@ PASS Construction of Uint32Array with negative size threw exception
PASS Construction of Uint32Array with negative out-of-range values threw an exception
PASS Construction of Uint32Array with unaligned offset threw an exception
PASS Construction of Uint32Array with unaligned length threw an exception
+PASS Construction of huge Uint32Array threw exception
PASS Array lengths matched with explicit and implicit creation of ArrayBuffer
PASS new Uint32Array(new ArrayBuffer(18), 0, 2) succeeded
Testing subarray of Uint32Array
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests.html
index b182516..30fd961 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/array-unit-tests.html
@@ -123,12 +123,9 @@ function testInheritanceHierarchy() {
} catch (e) {
testPassed('ArrayBufferView has [NoInterfaceObject] extended attribute and was (correctly) not defined');
}
-
- // There is currently only one kind of view that inherits from another
- // Uint8ClampedArray inherited from Uint8Array in earlier versions
- // of the typed array specification. Since this is no longer the
- // case, assert the new behavior.
- shouldBe('new Uint8ClampedArray(1) instanceof Uint8Array', 'false');
+
+ // There is currently only one kind of view that inherits from another
+ shouldBe('new Uint8ClampedArray(1) instanceof Uint8Array', 'true');
}
//
@@ -651,6 +648,19 @@ function testConstructionWithUnalignedLength(type, name, elementSizeInBytes) {
}
}
+function testConstructionOfHugeArray(type, name, sz) {
+ if (sz == 1)
+ return;
+ try {
+ // Construction of huge arrays must fail because byteLength is
+ // an unsigned long
+ array = new type(3000000000);
+ testFailed("Construction of huge " + name + " should throw exception");
+ } catch (e) {
+ testPassed("Construction of huge " + name + " threw exception");
+ }
+}
+
function testConstructionWithBothArrayBufferAndLength(type, name, elementSizeInBytes) {
var bufByteLength = 1000 * elementSizeInBytes;
var buf = new ArrayBuffer(bufByteLength);
@@ -993,6 +1003,7 @@ function runTests() {
testConstructionWithNegativeOutOfRangeValues(type, name);
testConstructionWithUnalignedOffset(type, name, testCase.elementSizeInBytes);
testConstructionWithUnalignedLength(type, name, testCase.elementSizeInBytes);
+ testConstructionOfHugeArray(type, name, testCase.elementSizeInBytes);
testConstructionWithBothArrayBufferAndLength(type, name, testCase.elementSizeInBytes);
testConstructionWithSubPortionOfArrayBuffer(type, name, testCase.elementSizeInBytes);
testSubarrayWithOutOfRangeValues(type, name, testCase.elementSizeInBytes);
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-crash-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-crash-expected.txt
index 479df30..6e201b2 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-crash-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-crash-expected.txt
@@ -2,8 +2,8 @@ Test that DataView does not crash with bad offset or length.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS view = new DataView(array.buffer, -4500000000) threw exception RangeError: Start offset is outside the bounds of the buffer.
-PASS view = new DataView(array.buffer, -4500000000, 4500000000) threw exception RangeError: Start offset is outside the bounds of the buffer.
+PASS view = new DataView(array.buffer, -4500000000) threw exception RangeError: Size is too large (or is negative)..
+PASS view = new DataView(array.buffer, -4500000000, 4500000000) threw exception RangeError: Size is too large (or is negative)..
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
index a8258e7..3f15da4 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
+++ b/third_party/WebKit/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: 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.
+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)..
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 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.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.getUint8(0) is 0
-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.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.getInt16(0, true) is 256
-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(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(0) is 1
-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.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.getUint16(0, true) is 256
-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(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(0) is 1
-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.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.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 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, 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, 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 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, 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, 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 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, 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, 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 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, 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, 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 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, 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, 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 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, 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, 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 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, 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, 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 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, 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, 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 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, 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, 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 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.
+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..
Test for wrong arguments passed to get methods
-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.
+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.
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 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.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.setUint8(0, 0) is undefined.
PASS view.getUint8(0) is 0
-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.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.setInt16(0, 256, true) is undefined.
PASS view.getInt16(0, true) is 256
-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(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(0, 1) is undefined.
PASS view.getInt16(0) is 1
-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.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.setUint16(0, 256, true) is undefined.
PASS view.getUint16(0, true) is 256
-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(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(0, 1) is undefined.
PASS view.getUint16(0) is 1
-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.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.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 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.
+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..
Test for wrong arguments passed to set methods
-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.
+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.
Test for indexing that should not work
PASS view[0] is undefined.
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/script-tests/arraybuffer-transfer-of-control.js b/third_party/WebKit/LayoutTests/fast/canvas/webgl/script-tests/arraybuffer-transfer-of-control.js
index a239803..4e1ede2 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/script-tests/arraybuffer-transfer-of-control.js
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/script-tests/arraybuffer-transfer-of-control.js
@@ -13,7 +13,6 @@ var basicBufferTypes =
["Uint32", Uint32Array, 4],
["Int8", Int8Array, 1],
["Uint8", Uint8Array, 1],
- ["Uint8Clamped", Uint8ClampedArray, 1],
["Int16", Int16Array, 2],
["Uint16", Uint16Array, 2],
["Float32", Float32Array, 4],
@@ -116,7 +115,7 @@ function assertViewClosed(testName, view)
return false;
} catch (xn) { }
try {
- view.set([0], 1);
+ view.set(0, 1);
testFailed(testName + ": set on a closed view succeeded");
return false;
} catch (xn) { }
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt
index bf5165f..c314633 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges-expected.txt
@@ -25,6 +25,7 @@ PASS Setting Uint8Array from Uint8Array with out-of-range offset was caught
PASS Construction of Int16Array with null buffer threw exception
PASS Construction of Int16Array with out-of-range values threw exception
PASS Construction of Int16Array with negative out-of-range values threw exception
+PASS Construction of huge Int16Array threw exception
Testing subarray of Int16Array
PASS array.length is 32 / typeSize
PASS array.subarray(4, 0x3FFFFFFF).length is (32 / typeSize) - 4
@@ -35,6 +36,7 @@ PASS Setting Int16Array from Int16Array with out-of-range offset was caught
PASS Construction of Uint16Array with null buffer threw exception
PASS Construction of Uint16Array with out-of-range values threw exception
PASS Construction of Uint16Array with negative out-of-range values threw exception
+PASS Construction of huge Uint16Array threw exception
Testing subarray of Uint16Array
PASS array.length is 32 / typeSize
PASS array.subarray(4, 0x3FFFFFFF).length is (32 / typeSize) - 4
@@ -45,6 +47,7 @@ PASS Setting Uint16Array from Uint16Array with out-of-range offset was caught
PASS Construction of Int32Array with null buffer threw exception
PASS Construction of Int32Array with out-of-range values threw exception
PASS Construction of Int32Array with negative out-of-range values threw exception
+PASS Construction of huge Int32Array threw exception
Testing subarray of Int32Array
PASS array.length is 32 / typeSize
PASS array.subarray(4, 0x3FFFFFFF).length is (32 / typeSize) - 4
@@ -55,6 +58,7 @@ PASS Setting Int32Array from Int32Array with out-of-range offset was caught
PASS Construction of Uint32Array with null buffer threw exception
PASS Construction of Uint32Array with out-of-range values threw exception
PASS Construction of Uint32Array with negative out-of-range values threw exception
+PASS Construction of huge Uint32Array threw exception
Testing subarray of Uint32Array
PASS array.length is 32 / typeSize
PASS array.subarray(4, 0x3FFFFFFF).length is (32 / typeSize) - 4
@@ -65,6 +69,7 @@ PASS Setting Uint32Array from Uint32Array with out-of-range offset was caught
PASS Construction of Float32Array with null buffer threw exception
PASS Construction of Float32Array with out-of-range values threw exception
PASS Construction of Float32Array with negative out-of-range values threw exception
+PASS Construction of huge Float32Array threw exception
Testing subarray of Float32Array
PASS array.length is 32 / typeSize
PASS array.subarray(4, 0x3FFFFFFF).length is (32 / typeSize) - 4
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges.html
index c876455..37ac73a 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-array-invalid-ranges.html
@@ -44,7 +44,6 @@ function testConstructionWithNegativeOutOfRangeValues(type, name) {
}
}
-/*
function testConstructionOfHugeArray(type, name, sz) {
if (sz == 1)
return;
@@ -57,7 +56,6 @@ function testConstructionOfHugeArray(type, name, sz) {
testPassed("Construction of huge " + name + " threw exception");
}
}
-*/
// These need to be global for shouldBe to see them
var array;
@@ -140,7 +138,7 @@ for (var i = 0; i < typeNames.length; i++) {
testConstructionWithNullBuffer(type, name);
testConstructionWithOutOfRangeValues(type, name);
testConstructionWithNegativeOutOfRangeValues(type, name);
- //testConstructionOfHugeArray(type, name, typeSizes[i]);
+ testConstructionOfHugeArray(type, name, typeSizes[i]);
testSubarrayWithOutOfRangeValues(type, name, typeSizes[i]);
testSettingFromArrayWithOutOfRangeOffset(type, name);
testSettingFromFakeArrayWithOutOfRangeLength(type, name);