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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext.html

Issue 2509193002: Correct the OffscreenCanvas.getContext API (Closed)
Patch Set: support webgl2 Created 4 years, 1 month 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 | third_party/WebKit/Source/modules/ModulesInitializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext.html b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext.html
index 872cb626f43f43e1470237ea25bfc9a8abc7143c..25e16655d90f36e2f2728ee57323e715c5ceb177 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext.html
@@ -17,6 +17,8 @@ test(function() {
aCanvas.width = 0; // Zero dimension is allowed.
assert_equals(aCanvas.width, 0);
+ assert_throws(new TypeError(), function() { aCanvas.getContext('bogus'); });
+
// Tests object type of getContext('2d').
var ctx = aCanvas.getContext('2d');
assert_true(ctx instanceof OffscreenCanvasRenderingContext2D);
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/ModulesInitializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698