Index: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.colour.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.colour.html b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.colour.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f86f8dbbe2af7ed4a1b44248f41bb317ddd97ce0 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.colour.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE html> |
+<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> |
+<title>OffscreenCanvas test: initial.colour</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script src="/common/canvas-tests.js"></script> |
+ |
+<h1>initial.colour</h1> |
+<p class="desc">Initial state is transparent black</p> |
+ |
+<p class="notes">Output should be transparent black (not transparent anything-else), but manual |
+verification can only confirm that it's transparent - it's not possible to make |
+the actual blackness visible. |
+ |
+<script> |
+var t = async_test("Initial state is transparent black"); |
+t.step(function() { |
+ |
+var offscreenCanvas = new OffscreenCanvas(100, 50); |
+var ctx = offscreenCanvas.getContext('2d'); |
+ |
+_assertPixel(offscreenCanvas, 20,20, 0,0,0,0, "20,20", "0,0,0,0"); |
+ |
+t.done(); |
+ |
+}); |
+</script> |