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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-constructor.html b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html
similarity index 71%
rename from third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-constructor.html
rename to third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html
index 0b61a343b9b2769503d9d612bf8acfb39005d8a4..98781e0ebe6043b724fe14ad89e109da413dd639 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-constructor.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext2D.html
@@ -1,7 +1,7 @@
<!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");
+description("Tests that the OffscreenCanvas can be called on the main thread");
var aCanvas = new OffscreenCanvas(50, 50);
shouldBe("aCanvas.width", "50");
@@ -11,4 +11,6 @@ aCanvas.width = 100;
aCanvas.height = 100;
shouldBe("aCanvas.width", "100");
shouldBe("aCanvas.height", "100");
+
+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.
</script>

Powered by Google App Engine
This is Rietveld 408576698