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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html

Issue 1488763002: Start an empty interface OffScreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better overflow handle and more test cases Created 5 years 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-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..119a9f5548baddd7e0f0ce9821e85ba60c18cf3f
--- /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 aCanvas = new OffScreenCanvas(50, 50);
+shouldBe("aCanvas.width", "50");
+shouldBe("aCanvas.height", "50");
+
+aCanvas.width = 100;
+aCanvas.height = 100;
+shouldBe("aCanvas.width", "100");
+shouldBe("aCanvas.height", "100");
+</script>

Powered by Google App Engine
This is Rietveld 408576698