Index: LayoutTests/fast/canvas/webgl/array-unit-tests.html |
diff --git a/LayoutTests/fast/canvas/webgl/array-unit-tests.html b/LayoutTests/fast/canvas/webgl/array-unit-tests.html |
index 30fd9614fcece32313644b51015e767d99f96f64..99a9f5ab60f686cf6df652503fb1f295d796fbfb 100644 |
--- a/LayoutTests/fast/canvas/webgl/array-unit-tests.html |
+++ b/LayoutTests/fast/canvas/webgl/array-unit-tests.html |
@@ -123,9 +123,6 @@ 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 |
- shouldBe('new Uint8ClampedArray(1) instanceof Uint8Array', 'true'); |
Dmitry Lomov (no reviews)
2013/07/15 16:58:05
Uint8ClampedArray is not a sub-type of Uint8Array
|
} |
// |
@@ -344,8 +341,8 @@ function testOffsetsAndSizes(type, name, elementSizeInBytes) { |
running('test ' + name + ' OffsetsAndSizes'); |
try { |
var len = 10; |
- assertEq('type.BYTES_PER_ELEMENT', elementSizeInBytes, type.BYTES_PER_ELEMENT); |
var array = new type(len); |
+ assertEq('array.BYTES_PER_ELEMENT', elementSizeInBytes, array.BYTES_PER_ELEMENT); |
Dmitry Lomov (no reviews)
2013/07/15 16:58:05
BYTES_PER_ELEMENT is a property on prototype, not
|
assert('array.buffer', array.buffer); |
assertEq('array.byteOffset', 0, array.byteOffset); |
assertEq('array.length', len, array.length); |
@@ -647,7 +644,7 @@ function testConstructionWithUnalignedLength(type, name, elementSizeInBytes) { |
}, "Construction of " + name + " with unaligned length"); |
} |
} |
- |
+/* |
function testConstructionOfHugeArray(type, name, sz) { |
if (sz == 1) |
return; |
@@ -660,6 +657,7 @@ function testConstructionOfHugeArray(type, name, sz) { |
testPassed("Construction of huge " + name + " threw exception"); |
} |
} |
+*/ |
Dmitry Lomov (no reviews)
2013/07/15 16:58:05
Huge arrays are a problem.
Per ES6 spec, if typed
|
function testConstructionWithBothArrayBufferAndLength(type, name, elementSizeInBytes) { |
var bufByteLength = 1000 * elementSizeInBytes; |
@@ -1003,7 +1001,7 @@ function runTests() { |
testConstructionWithNegativeOutOfRangeValues(type, name); |
testConstructionWithUnalignedOffset(type, name, testCase.elementSizeInBytes); |
testConstructionWithUnalignedLength(type, name, testCase.elementSizeInBytes); |
- testConstructionOfHugeArray(type, name, testCase.elementSizeInBytes); |
+// testConstructionOfHugeArray(type, name, testCase.elementSizeInBytes); |
testConstructionWithBothArrayBufferAndLength(type, name, testCase.elementSizeInBytes); |
testConstructionWithSubPortionOfArrayBuffer(type, name, testCase.elementSizeInBytes); |
testSubarrayWithOutOfRangeValues(type, name, testCase.elementSizeInBytes); |