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); |