Chromium Code Reviews| 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..0d04c83472e00ebdcebb1e6ac3511eb0ede3f43c |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html |
| @@ -0,0 +1,16 @@ |
| +<!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"); |
| + |
| +finishJSTest(); |
|
Justin Novosad
2015/12/03 05:07:59
get rid of this line.
xidachen
2015/12/03 14:16:16
Done.
|
| +</script> |