| Index: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.fillStyle.parse.system.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.fillStyle.parse.system.html b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.fillStyle.parse.system.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ce35a742499d1ddca35a3a730b4b01563f34b3ea
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/fill-and-stroke-styles/2d.fillStyle.parse.system.html
|
| @@ -0,0 +1,27 @@
|
| +<!DOCTYPE html>
|
| +<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
|
| +<title>OffscreenCanvas test: 2d.fillStyle.parse.system</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script src="/common/canvas-tests.js"></script>
|
| +
|
| +<h1>2d.fillStyle.parse.system</h1>
|
| +<p class="desc"></p>
|
| +
|
| +
|
| +<script>
|
| +var t = async_test("");
|
| +t.step(function() {
|
| +
|
| +var offscreenCanvas = new OffscreenCanvas(100, 50);
|
| +var ctx = offscreenCanvas.getContext('2d');
|
| +
|
| +
|
| +ctx.fillStyle = '#f00';
|
| +ctx.fillStyle = 'ThreeDDarkShadow';
|
| +assert_regexp_match(ctx.fillStyle, /^#(?!(FF0000|ff0000|f00)$)/); // test that it's not red
|
| +
|
| +t.done();
|
| +
|
| +});
|
| +</script>
|
|
|