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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-constructor.html

Issue 1748163003: Add rendering context and rendering 2D context to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove CanvasRenderingContextBase Created 4 years, 9 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description("Tests that the constructor of the OffscreenCanvas can be called on the main thread");
5
6 var aCanvas = new OffscreenCanvas(50, 50);
7 shouldBe("aCanvas.width", "50");
8 shouldBe("aCanvas.height", "50");
9
10 aCanvas.width = 100;
11 aCanvas.height = 100;
12 shouldBe("aCanvas.width", "100");
13 shouldBe("aCanvas.height", "100");
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698