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

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

Issue 2509193002: Correct the OffscreenCanvas.getContext API (Closed)
Patch Set: 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
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..b8f71b20ff283ca50695439b5d8e9e4f75a54bbe 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('3d'); });
Justin Novosad 2016/11/17 15:36:42 For readability, use a string that is more obvious
+
// Tests object type of getContext('2d').
var ctx = aCanvas.getContext('2d');
assert_true(ctx instanceof OffscreenCanvasRenderingContext2D);

Powered by Google App Engine
This is Rietveld 408576698