Index: third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html |
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html b/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ce6d637916cf2df1a51ecdd58ec438f75dce683 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-invalid-args.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/js-test.js"></script> |
+<script> |
+description("Tests that the OffScreenCanvas can handle invalid arguments"); |
+ |
+var width; |
+var height; |
+ |
+var setWidth = Math.pow(2, 31); |
Justin Novosad
2015/12/03 17:05:55
Explain that the overflow is an implementation-spe
xidachen
2015/12/03 18:41:40
Done.
|
+var setHeight = Math.pow(2, 31); |
+var canvas1 = new OffScreenCanvas(setWidth, setHeight); |
Justin Novosad
2015/12/03 17:05:54
You should also validate setting the size through
xidachen
2015/12/03 18:41:40
The case of setting the size through the attribute
|
+ |
+width = canvas1.width; |
+height = canvas1.height; |
+shouldBe("width", "setWidth-1"); |
+shouldBe("height", "setHeight-1"); |
+</script> |