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

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

Issue 6469012: Merge 77433 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « LayoutTests/fast/canvas/webgl/data-view-test.html ('k') | Source/WebCore/html/canvas/DataView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/webgl/data-view-test-expected.txt
===================================================================
--- LayoutTests/fast/canvas/webgl/data-view-test-expected.txt (revision 78119)
+++ LayoutTests/fast/canvas/webgl/data-view-test-expected.txt (working copy)
@@ -147,7 +147,7 @@
PASS view.getFloat64(7, false) is -NaN
PASS view.getFloat64(10, false) is -NaN
-Test for get methods that might read beyound range
+Test for get methods that might read beyond range
PASS view.getInt8(0) is 0
PASS view.getInt8(8) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
PASS view.getInt8(15) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
@@ -271,6 +271,30 @@
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 Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getInt8(-2) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint8(-1) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint8(-2) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getInt16(-1) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getInt16(-2) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getInt16(-3) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint16(-1) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint16(-2) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint16(-3) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getInt32(-1) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getInt32(-3) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getInt32(-5) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint32(-1) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint32(-3) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getUint32(-5) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getFloat32(-1) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getFloat32(-3) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getFloat32(-5) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getFloat64(-1) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getFloat64(-5) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.getFloat64(-9) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+
Test for wrong arguments passed to get methods
PASS view.getInt8() threw exception SyntaxError: Not enough arguments.
PASS view.getUint8() threw exception SyntaxError: Not enough arguments.
@@ -737,7 +761,31 @@
PASS view.setFloat64(10, -NaN, false) is undefined.
PASS view.getFloat64(10, false) is -NaN
-Test for wrong arguments passed to get methods
+Test for set methods that write to negative index
+PASS view.setInt8(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setInt8(-2, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint8(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint8(-2, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setInt16(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setInt16(-2, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setInt16(-3, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint16(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint16(-2, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint16(-3, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setInt32(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setInt32(-3, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setInt32(-5, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint32(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint32(-3, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setUint32(-5, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setFloat32(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setFloat32(-3, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setFloat32(-5, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setFloat64(-1, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setFloat64(-5, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+PASS view.setFloat64(-9, 0) threw exception Error: INDEX_SIZE_ERR: DOM Exception 1.
+
+Test for wrong arguments passed to set methods
PASS view.setInt8() threw exception SyntaxError: Not enough arguments.
PASS view.setUint8() threw exception SyntaxError: Not enough arguments.
PASS view.setInt16() threw exception SyntaxError: Not enough arguments.
« no previous file with comments | « LayoutTests/fast/canvas/webgl/data-view-test.html ('k') | Source/WebCore/html/canvas/DataView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698