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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <script> 3 <script>
4 description("Tests that the constructor of the OffscreenCanvas can be called on the main thread"); 4 description("Tests that the OffscreenCanvas can be called on the main thread");
5 5
6 var aCanvas = new OffscreenCanvas(50, 50); 6 var aCanvas = new OffscreenCanvas(50, 50);
7 shouldBe("aCanvas.width", "50"); 7 shouldBe("aCanvas.width", "50");
8 shouldBe("aCanvas.height", "50"); 8 shouldBe("aCanvas.height", "50");
9 9
10 aCanvas.width = 100; 10 aCanvas.width = 100;
11 aCanvas.height = 100; 11 aCanvas.height = 100;
12 shouldBe("aCanvas.width", "100"); 12 shouldBe("aCanvas.width", "100");
13 shouldBe("aCanvas.height", "100"); 13 shouldBe("aCanvas.height", "100");
14
15 shouldNotThrow("aCanvas.getContext('2d')");
Justin Novosad 2016/03/02 15:41:50 You should test the return value. Something like t
xlai (Olivia) 2016/03/03 22:50:06 Done.
14 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698