Index: third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html |
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html b/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..198b5cee2e2a2c8b1922a9c0c344c48798f4e29f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/js-test.js"></script> |
+<script> |
+description("Tests that the constructor of the OffScreenCanvas can be called on the main thread"); |
+ |
+var width; |
+var height; |
+var aCanvas = new OffScreenCanvas(50, 50); |
+ |
+width = aCanvas.width; |
+height = aCanvas.height; |
+shouldBe("width", "50"); |
+shouldBe("height", "50"); |
+</script> |