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> |