Index: third_party/WebKit/LayoutTests/fast/canvas/resources/OffScreenCanvas-constructor-in-worker.js |
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html b/third_party/WebKit/LayoutTests/fast/canvas/resources/OffScreenCanvas-constructor-in-worker.js |
similarity index 54% |
copy from third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html |
copy to third_party/WebKit/LayoutTests/fast/canvas/resources/OffScreenCanvas-constructor-in-worker.js |
index 119a9f5548baddd7e0f0ce9821e85ba60c18cf3f..0463049d0f76ba21915f3b042dfe58688f376d76 100644 |
--- a/third_party/WebKit/LayoutTests/fast/canvas/OffScreenCanvas-constructor.html |
+++ b/third_party/WebKit/LayoutTests/fast/canvas/resources/OffScreenCanvas-constructor-in-worker.js |
@@ -1,7 +1,6 @@ |
-<!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"); |
+importScripts('../../../resources/js-test.js'); |
Justin Novosad
2016/01/06 15:29:40
Factoring-out the js into a separate file is old-s
|
+ |
+description("Tests that the OffScreenCanvas can be constructed on a worker thread."); |
var aCanvas = new OffScreenCanvas(50, 50); |
shouldBe("aCanvas.width", "50"); |
@@ -11,4 +10,5 @@ aCanvas.width = 100; |
aCanvas.height = 100; |
shouldBe("aCanvas.width", "100"); |
shouldBe("aCanvas.height", "100"); |
-</script> |
+ |
+finishJSTest(); |