Commit 60236bcc authored by xidachen's avatar xidachen Committed by Commit bot

Updated fast/canvas/webgl-array-invalid-ranges.html

This test still assumes that the following command should throw an exception:
var array = new TypedArray(null, 0, 0);

The specs https://www.khronos.org/registry/typedarray/specs/latest/#TYPEDARRAYS
doesn't say it should throw an exception. So we update this test.

BUG=623120

Review-Url: https://chromiumcodereview.appspot.com/2433363003
Cr-Commit-Position: refs/heads/master@{#426533}
parent 455784de
...@@ -71,11 +71,6 @@ crbug.com/619103 paint/invalidation/background-resize-width.html [ Failure ] ...@@ -71,11 +71,6 @@ crbug.com/619103 paint/invalidation/background-resize-width.html [ Failure ]
crbug.com/619103 [ Win ] paint/invalidation/svg/text-viewbox-rescale.html [ Pass Failure ] crbug.com/619103 [ Win ] paint/invalidation/svg/text-viewbox-rescale.html [ Pass Failure ]
crbug.com/619103 paint/selection/text-selection-newline-mixed-ltr-rtl.html [ Failure ] crbug.com/619103 paint/selection/text-selection-newline-mixed-ltr-rtl.html [ Failure ]
# WebKit test is checking for outdated semantics on TypedArray constructors.
crbug.com/623120 virtual/gpu/fast/canvas/webgl/webgl-array-invalid-ranges.html [ NeedsManualRebaseline ]
crbug.com/623120 fast/canvas/webgl/webgl-array-invalid-ranges.html [ NeedsManualRebaseline ]
crbug.com/623120 virtual/display_list_2d_canvas/fast/canvas/webgl/webgl-array-invalid-ranges.html [ NeedsManualRebaseline ]
# TODO(fmalita): re-enable # TODO(fmalita): re-enable
# crbug.com/624709 [ Win ] virtual/gpu-rasterization/fast/images/png-with-color-profile.html [ Failure ] # crbug.com/624709 [ Win ] virtual/gpu-rasterization/fast/images/png-with-color-profile.html [ Failure ]
crbug.com/624709 [ Win ] virtual/gpu-rasterization/fast/images/webp-color-profile-lossy.html [ Failure ] crbug.com/624709 [ Win ] virtual/gpu-rasterization/fast/images/webp-color-profile-lossy.html [ Failure ]
...@@ -1275,4 +1270,4 @@ crbug.com/655458 imported/wpt/workers/semantics/structured-clone/shared.html [ C ...@@ -1275,4 +1270,4 @@ crbug.com/655458 imported/wpt/workers/semantics/structured-clone/shared.html [ C
crbug.com/656622 inspector/sources/debugger-pause/debugger-eval-while-paused-throws.html [ NeedsManualRebaseline ] crbug.com/656622 inspector/sources/debugger-pause/debugger-eval-while-paused-throws.html [ NeedsManualRebaseline ]
# Web platform tests for the service workers cannot work without --enable-wptserve. # Web platform tests for the service workers cannot work without --enable-wptserve.
crbug.com/602693 imported/wpt/service-workers [ Skip ] crbug.com/602693 imported/wpt/service-workers [ Skip ]
\ No newline at end of file
...@@ -2,7 +2,7 @@ Verifies that out-of-range parameters for creation, slicing and setting of WebGL ...@@ -2,7 +2,7 @@ Verifies that out-of-range parameters for creation, slicing and setting of WebGL
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS Construction of Int8Array with null buffer threw exception PASS Construction of Int8Array with null buffer should not throw exception
PASS Construction of Int8Array with out-of-range values threw exception PASS Construction of Int8Array with out-of-range values threw exception
PASS Construction of Int8Array with negative out-of-range values threw exception PASS Construction of Int8Array with negative out-of-range values threw exception
Testing subarray of Int8Array Testing subarray of Int8Array
...@@ -12,7 +12,7 @@ PASS array.subarray(4, -2147483648).length is 0 ...@@ -12,7 +12,7 @@ PASS array.subarray(4, -2147483648).length is 0
PASS Setting Int8Array from array with out-of-range offset was caught PASS Setting Int8Array from array with out-of-range offset was caught
PASS Setting Int8Array from fake array with invalid length was caught PASS Setting Int8Array from fake array with invalid length was caught
PASS Setting Int8Array from Int8Array with out-of-range offset was caught PASS Setting Int8Array from Int8Array with out-of-range offset was caught
PASS Construction of Uint8Array with null buffer threw exception PASS Construction of Uint8Array with null buffer should not throw exception
PASS Construction of Uint8Array with out-of-range values threw exception PASS Construction of Uint8Array with out-of-range values threw exception
PASS Construction of Uint8Array with negative out-of-range values threw exception PASS Construction of Uint8Array with negative out-of-range values threw exception
Testing subarray of Uint8Array Testing subarray of Uint8Array
...@@ -22,7 +22,7 @@ PASS array.subarray(4, -2147483648).length is 0 ...@@ -22,7 +22,7 @@ PASS array.subarray(4, -2147483648).length is 0
PASS Setting Uint8Array from array with out-of-range offset was caught PASS Setting Uint8Array from array with out-of-range offset was caught
PASS Setting Uint8Array from fake array with invalid length was caught PASS Setting Uint8Array from fake array with invalid length was caught
PASS Setting Uint8Array from Uint8Array with out-of-range offset was caught 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 null buffer should not throw exception
PASS Construction of Int16Array with out-of-range values 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 Int16Array with negative out-of-range values threw exception
Testing subarray of Int16Array Testing subarray of Int16Array
...@@ -32,7 +32,7 @@ PASS array.subarray(4, -2147483648).length is 0 ...@@ -32,7 +32,7 @@ PASS array.subarray(4, -2147483648).length is 0
PASS Setting Int16Array from array with out-of-range offset was caught PASS Setting Int16Array from array with out-of-range offset was caught
PASS Setting Int16Array from fake array with invalid length was caught PASS Setting Int16Array from fake array with invalid length was caught
PASS Setting Int16Array from Int16Array with out-of-range offset was caught 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 null buffer should not throw exception
PASS Construction of Uint16Array with out-of-range values 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 Uint16Array with negative out-of-range values threw exception
Testing subarray of Uint16Array Testing subarray of Uint16Array
...@@ -42,7 +42,7 @@ PASS array.subarray(4, -2147483648).length is 0 ...@@ -42,7 +42,7 @@ PASS array.subarray(4, -2147483648).length is 0
PASS Setting Uint16Array from array with out-of-range offset was caught PASS Setting Uint16Array from array with out-of-range offset was caught
PASS Setting Uint16Array from fake array with invalid length was caught PASS Setting Uint16Array from fake array with invalid length was caught
PASS Setting Uint16Array from Uint16Array with out-of-range offset was caught 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 null buffer should not throw exception
PASS Construction of Int32Array with out-of-range values 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 Int32Array with negative out-of-range values threw exception
Testing subarray of Int32Array Testing subarray of Int32Array
...@@ -52,7 +52,7 @@ PASS array.subarray(4, -2147483648).length is 0 ...@@ -52,7 +52,7 @@ PASS array.subarray(4, -2147483648).length is 0
PASS Setting Int32Array from array with out-of-range offset was caught PASS Setting Int32Array from array with out-of-range offset was caught
PASS Setting Int32Array from fake array with invalid length was caught PASS Setting Int32Array from fake array with invalid length was caught
PASS Setting Int32Array from Int32Array with out-of-range offset was caught 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 null buffer should not throw exception
PASS Construction of Uint32Array with out-of-range values 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 Uint32Array with negative out-of-range values threw exception
Testing subarray of Uint32Array Testing subarray of Uint32Array
...@@ -62,7 +62,7 @@ PASS array.subarray(4, -2147483648).length is 0 ...@@ -62,7 +62,7 @@ PASS array.subarray(4, -2147483648).length is 0
PASS Setting Uint32Array from array with out-of-range offset was caught PASS Setting Uint32Array from array with out-of-range offset was caught
PASS Setting Uint32Array from fake array with invalid length was caught PASS Setting Uint32Array from fake array with invalid length was caught
PASS Setting Uint32Array from Uint32Array with out-of-range offset was caught 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 null buffer should not throw exception
PASS Construction of Float32Array with out-of-range values 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 Float32Array with negative out-of-range values threw exception
Testing subarray of Float32Array Testing subarray of Float32Array
......
...@@ -15,9 +15,9 @@ function testConstructionWithNullBuffer(type, name) { ...@@ -15,9 +15,9 @@ function testConstructionWithNullBuffer(type, name) {
var array; var array;
try { try {
array = new type(null, 0, 0); array = new type(null, 0, 0);
testFailed("Construction of " + name + " with null buffer should throw exception"); testPassed("Construction of " + name + " with null buffer should not throw exception");
} catch (e) { } catch (e) {
testPassed("Construction of " + name + " with null buffer threw exception"); testFailed("Construction of " + name + " with null buffer threw exception");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment