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

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

Issue 6596048: Merge 78738 (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 | « no previous file | LayoutTests/fast/canvas/webgl/data-view-test-expected.txt » ('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.html
===================================================================
--- LayoutTests/fast/canvas/webgl/data-view-test.html (revision 79898)
+++ LayoutTests/fast/canvas/webgl/data-view-test.html (working copy)
@@ -234,6 +234,17 @@
arayBuffer = (new Uint8Array([1, 2])).buffer;
debug("");
+ debug("Test for constructor not called as a function");
+ var expr = "DataView(new ArrayBuffer)";
+ // Use try/catch instead of calling shouldThrow to avoid different exception message being reported from different platform.
+ try {
+ eval(expr);
+ testFailed(expr + " does not throw exception");
+ } catch (e) {
+ testPassed(expr + " threw exception");
+ }
+
+ debug("");
debug("Test for constructor taking 1 argument");
shouldBeDefined("view = new DataView(arayBuffer)");
shouldBe("view.byteOffset", "0");
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/webgl/data-view-test-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698