diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
commit | ceadffab6b357723981a429e11222daf6cd6dcfb (patch) | |
tree | 5603053048d6a460f79b22bdf165fb74d32d39b0 /testing/web-platform/tests/2dcontext/fill-and-stroke-styles | |
parent | 14fb2f966e9b54598c451e3cb35b4aa0480dafed (diff) | |
parent | ad5a13bd501e379517da1a944c104a11d951a3f5 (diff) | |
download | UXP-RC_20210225.tar UXP-RC_20210225.tar.gz UXP-RC_20210225.tar.lz UXP-RC_20210225.tar.xz UXP-RC_20210225.zip |
Merge branch 'master' into releaseRC_20210225
Diffstat (limited to 'testing/web-platform/tests/2dcontext/fill-and-stroke-styles')
314 files changed, 0 insertions, 7948 deletions
diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/.gitkeep b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/.gitkeep deleted file mode 100644 index e69de29bb..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/.gitkeep +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.default.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.default.html deleted file mode 100644 index a14475d7d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.default.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.default</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.default</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -_assertSame(ctx.fillStyle, '#000000', "ctx.fillStyle", "'#000000'"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.semitransparent.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.semitransparent.html deleted file mode 100644 index d8a1d4178..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.semitransparent.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.get.semitransparent</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.get.semitransparent</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = 'rgba(255,255,255,0.45)'; -assert_regexp_match(ctx.fillStyle, /^rgba\(255, 255, 255, 0\.4\d+\)$/); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.solid.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.solid.html deleted file mode 100644 index 8fc44b1c8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.solid.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.get.solid</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.get.solid</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#fa0'; -_assertSame(ctx.fillStyle, '#ffaa00', "ctx.fillStyle", "'#ffaa00'"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.transparent.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.transparent.html deleted file mode 100644 index 3775cf3f9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.get.transparent.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.get.transparent</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.get.transparent</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = 'rgba(0,0,0,0)'; -_assertSame(ctx.fillStyle, 'rgba(0, 0, 0, 0)', "ctx.fillStyle", "'rgba(0, 0, 0, 0)'"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.invalidstring.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.invalidstring.html deleted file mode 100644 index eaa50dd02..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.invalidstring.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.invalidstring</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.invalidstring</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#0f0'; -ctx.fillStyle = 'invalid'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.invalidtype.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.invalidtype.html deleted file mode 100644 index fb778cbfb..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.invalidtype.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.invalidtype</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.invalidtype</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#0f0'; -ctx.fillStyle = null; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.html deleted file mode 100644 index 3dbda598b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120 100.0% 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-2.html deleted file mode 100644 index 25e98dc79..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120 100.0% 50.0% / 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-2.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-3.html deleted file mode 100644 index de600d94b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120.0, 100.0%, 50.0%, 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-3.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-4.html deleted file mode 100644 index 52d917c6c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120.0, 100.0%, 50.0%, 20%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-4.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-5.html deleted file mode 100644 index 4f65b3dea..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-5</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-5.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120deg, 100.0%, 50.0%, 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-5.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-5.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-5.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-6.html deleted file mode 100644 index 19aa5974f..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-6</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-6.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120deg, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-6.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-6.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-6.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-7.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-7.html deleted file mode 100644 index d9b6a3c98..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-7.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-7</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-7</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-7.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(133.33333333grad, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-7.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-7.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-7.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-8.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-8.html deleted file mode 100644 index 24e2b5183..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-8.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-8</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-8</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-8.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(2.0943951024rad, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-8.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-8.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-8.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-9.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-9.html deleted file mode 100644 index 9da548f3e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-9.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsl-9</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsl-9</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsl-9.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(0.3333333333turn, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-9.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-9.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-9.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-1.html deleted file mode 100644 index 65881eeb1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120 100.0% 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-2.html deleted file mode 100644 index 91f5e3459..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120 100.0% 50.0% / 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-2.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-3.html deleted file mode 100644 index eb6c69526..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120.0, 100.0%, 50.0%, 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-3.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-4.html deleted file mode 100644 index ce5bdef7a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120.0, 100.0%, 50.0%, 20%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-4.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-5.html deleted file mode 100644 index 47b426daf..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-5</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-5.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120deg, 100.0%, 50.0%, 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-5.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-5.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-5.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-6.html deleted file mode 100644 index 6dc5e7aef..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-6</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-6.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120deg, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-6.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-6.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-6.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-7.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-7.html deleted file mode 100644 index a1069fea9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-7.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-7</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-7</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-7.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(133.33333333grad, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-7.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-7.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-7.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-8.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-8.html deleted file mode 100644 index 7d04b1ca5..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-8.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-8</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-8</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-8.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(2.0943951024rad, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-8.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-8.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-8.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-9.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-9.html deleted file mode 100644 index 0a10c6e61..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-9.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-hsla-9</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-hsla-9</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-hsla-9.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(0.3333333333turn, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-9.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-9.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsla-9.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-1.html deleted file mode 100644 index fd6376e1a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgb-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgb-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgb-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0, 255.0, 0)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-2.html deleted file mode 100644 index ec0f62344..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgb-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgb-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgb-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0, 255, 0, 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-2.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-3.html deleted file mode 100644 index 980abef36..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgb-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgb-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgb-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0, 255, 0, 20%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-3.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-4.html deleted file mode 100644 index a2543b566..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgb-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgb-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgb-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0 255 0)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-4.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-5.html deleted file mode 100644 index 6b310d763..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgb-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgb-5</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgb-5.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0 255 0 / 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-5.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-5.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-5.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-6.html deleted file mode 100644 index d38f7e0ac..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgb-6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgb-6</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgb-6.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0 255 0 / 20%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-6.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-6.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgb-6.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-1.html deleted file mode 100644 index 83dfb2f86..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgba-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgba-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgba-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0, 255.0, 0)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-2.html deleted file mode 100644 index 390d0bd0f..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgba-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgba-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgba-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0, 255, 0, 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-2.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-3.html deleted file mode 100644 index f0fd88ee6..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgba-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgba-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgba-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0, 255, 0, 20%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-3.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-4.html deleted file mode 100644 index bd3e8edb2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgba-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgba-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgba-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0 255 0)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-4.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-5.html deleted file mode 100644 index 0287ef693..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgba-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgba-5</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgba-5.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0 255 0 / 0.2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-5.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-5.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-5.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-6.html deleted file mode 100644 index 09042c877..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.css-color-4-rgba-6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.css-color-4-rgba-6</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.css-color-4-rgba-6.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0 255 0 / 20%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,51, "50,25", "0,255,0,51"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-6.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-6.png Binary files differdeleted file mode 100644 index c5661de82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-rgba-6.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.basic.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.basic.html deleted file mode 100644 index 271adfd8b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.basic.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.current.basic</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.current.basic</h1> -<p class="desc">currentColor is computed from the canvas element</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("currentColor is computed from the canvas element"); -_addTest(function(canvas, ctx) { - -canvas.setAttribute('style', 'color: #0f0'); -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'currentColor'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.changed.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.changed.html deleted file mode 100644 index 591b6d256..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.changed.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.current.changed</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.current.changed</h1> -<p class="desc">currentColor is computed when the attribute is set, not when it is painted</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("currentColor is computed when the attribute is set, not when it is painted"); -_addTest(function(canvas, ctx) { - -canvas.setAttribute('style', 'color: #0f0'); -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'currentColor'; -canvas.setAttribute('style', 'color: #f00'); -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.notrendered.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.notrendered.html deleted file mode 100644 index 3e8f007f9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.notrendered.html +++ /dev/null @@ -1,33 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.current.notrendered</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.current.basic</h1> -<p class="desc">currentColor is computed from the canvas element</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("currentColor is computed from the canvas element even when element is not rendered"); -_addTest(function(canvas, ctx) { - -canvas.setAttribute('style', 'color: #0f0;'); -canvas.style.display = 'none'; -canvas.offsetTop; -ctx.fillStyle = 'currentColor'; -canvas.style.display = 'inline'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.removed.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.removed.html deleted file mode 100644 index a46e9c975..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.removed.html +++ /dev/null @@ -1,43 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.current.removed</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.current.removed</h1> -<p class="desc">currentColor is solid black when the canvas element is not in a document</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.current.removed.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("currentColor is solid black when the canvas element is not in a document"); -_addTest(function(canvas, ctx) { - -// Try not to let it undetectably incorrectly pick up opaque-black -// from other parts of the document: -document.body.parentNode.setAttribute('style', 'color: #f00'); -document.body.setAttribute('style', 'color: #f00'); -canvas.setAttribute('style', 'color: #f00'); - -var canvas2 = document.createElement('canvas'); -var ctx2 = canvas2.getContext('2d'); -ctx2.fillStyle = '#f00'; -ctx2.fillStyle = 'currentColor'; -ctx2.fillRect(0, 0, 100, 50); -ctx.drawImage(canvas2, 0, 0); - -document.body.parentNode.removeAttribute('style'); -document.body.removeAttribute('style'); - -_assertPixel(canvas, 50,25, 0,0,0,255, "50,25", "0,0,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.removed.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.removed.png Binary files differdeleted file mode 100644 index d638d0338..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.current.removed.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex3.html deleted file mode 100644 index 635a59a72..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hex3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hex3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hex3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex3.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex4.html deleted file mode 100644 index 8462248e8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hex4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hex4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hex4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = '#0f0f'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex4.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex6.html deleted file mode 100644 index 37a420800..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hex6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hex6</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hex6.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = '#00fF00'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex6.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex6.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex6.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex8.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex8.html deleted file mode 100644 index 36ade5748..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex8.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hex8</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hex8</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hex8.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = '#00ff00ff'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex8.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex8.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hex8.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-1.html deleted file mode 100644 index 53b1f5d40..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120, 100%, 50%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-2.html deleted file mode 100644 index 39790e979..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl( -240 , 100% , 50% )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-2.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-3.html deleted file mode 100644 index 2befaab2e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(360120, 100%, 50%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-3.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-4.html deleted file mode 100644 index 9f8e7cac1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(-360240, 100%, 50%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-4.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-5.html deleted file mode 100644 index 881bc0492..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-5</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-5.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120.0, 100.0%, 50.0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-5.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-5.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-5.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-6.html deleted file mode 100644 index f2636336c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-6</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-6.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(+120, +100%, +50%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-6.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-6.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-6.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-1.html deleted file mode 100644 index a2fce10dc..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-clamp-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-clamp-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-clamp-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120, 200%, 50%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-2.html deleted file mode 100644 index 0a245a4df..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-clamp-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-clamp-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-clamp-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120, -200%, 49.9%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 127,127,127,255, "50,25", "127,127,127,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-2.png Binary files differdeleted file mode 100644 index 88fd82798..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-3.html deleted file mode 100644 index ed14332f8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-clamp-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-clamp-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-clamp-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120, 100%, 200%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 255,255,255,255, "50,25", "255,255,255,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-3.png Binary files differdeleted file mode 100644 index bf48767a8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-4.html deleted file mode 100644 index a27379c5e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsl-clamp-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsl-clamp-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsl-clamp-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsl(120, 100%, -200%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,0,0,255, "50,25", "0,0,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-4.png Binary files differdeleted file mode 100644 index d638d0338..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsl-clamp-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-1.html deleted file mode 100644 index 2e835a8b3..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla(120, 100%, 50%, 0.499)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,127, "50,25", "0,255,0,127"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-1.png Binary files differdeleted file mode 100644 index 2aa6265f0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-2.html deleted file mode 100644 index a7db6ac10..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla( 120.0 , 100.0% , 50.0% , 1 )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-2.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-1.html deleted file mode 100644 index 13652aab1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-clamp-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-clamp-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-clamp-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla(120, 200%, 50%, 1)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-2.html deleted file mode 100644 index 98f2505a5..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-clamp-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-clamp-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-clamp-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla(120, -200%, 49.9%, 1)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 127,127,127,255, "50,25", "127,127,127,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-2.png Binary files differdeleted file mode 100644 index 88fd82798..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-3.html deleted file mode 100644 index 0aa08807a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-clamp-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-clamp-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-clamp-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla(120, 100%, 200%, 1)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 255,255,255,255, "50,25", "255,255,255,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-3.png Binary files differdeleted file mode 100644 index bf48767a8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-4.html deleted file mode 100644 index ab5da396c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-clamp-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-clamp-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-clamp-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla(120, 100%, -200%, 1)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,0,0,255, "50,25", "0,0,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-4.png Binary files differdeleted file mode 100644 index d638d0338..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-5.html deleted file mode 100644 index a64f89303..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-clamp-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-clamp-5</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-clamp-5.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla(120, 100%, 50%, 2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-5.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-5.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-5.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-6.html deleted file mode 100644 index 60b464a62..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.hsla-clamp-6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.hsla-clamp-6</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.hsla-clamp-6.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'hsla(120, 100%, 0%, -2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-6.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-6.png Binary files differdeleted file mode 100644 index eeedd0ff0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-6.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.html4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.html4.html deleted file mode 100644 index 3dd7d37eb..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.html4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.html4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.html4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.html4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'limE'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.html4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.html4.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.html4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-1.html deleted file mode 100644 index 25bab97b0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsl-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsl-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0, 100%, 50% / 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-2.html deleted file mode 100644 index f4a47f5d8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsl-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsl-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0 100% 50%, 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-3.html deleted file mode 100644 index 490c66f36..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsl-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsl-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0, 100% 50%)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-4.html deleted file mode 100644 index a3ab91c16..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsl-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsl-4</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0 100% 50% /)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-5.html deleted file mode 100644 index a437cd99c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsl-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsl-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsl-5</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0, 100%, 50% /)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-1.html deleted file mode 100644 index 5f71de330..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsla-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsla-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsla(0, 100%, 50% / 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-2.html deleted file mode 100644 index 36c9fd1a6..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsla-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsla-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsla(0 100% 50%, 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-3.html deleted file mode 100644 index 049ad397e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-hsla-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsla-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-hsla-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsla(0, 100% 50%)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-1.html deleted file mode 100644 index 7a2534ceb..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgb-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgb-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(255, 0, 0 / 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-2.html deleted file mode 100644 index ca5a591ef..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgb-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgb-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(255 0 0, 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-3.html deleted file mode 100644 index e34ddfdf9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgb-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgb-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(255, 0 0)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-4.html deleted file mode 100644 index 682da31d2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgb-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgb-4</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(0 0 0 /)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-5.html deleted file mode 100644 index 75a11dc19..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgb-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgb-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgb-5</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(0, 0, 0 /)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-1.html deleted file mode 100644 index 778fa479c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgba-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgba-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(255, 0, 0 / 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-2.html deleted file mode 100644 index 14c83a569..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgba-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgba-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(255 0 0, 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-3.html deleted file mode 100644 index 9647877b2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.css-color-4-rgba-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-rgba-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.css-color-4-rgba-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(255, 0 0)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex1.html deleted file mode 100644 index 36a9489e1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#f'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex2.html deleted file mode 100644 index 5a1758fc5..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#f0'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex3.html deleted file mode 100644 index f1ada9f19..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#g00'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex4.html deleted file mode 100644 index 36e312d63..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex4</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#fg00'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex5.html deleted file mode 100644 index 19abea32a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex5</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#ff000'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex6.html deleted file mode 100644 index c600b9831..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex6</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#fg0000'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex7.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex7.html deleted file mode 100644 index cee88055e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex7.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex7</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex7</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#ff0000f'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex8.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex8.html deleted file mode 100644 index e835d2da0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hex8.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hex8</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hex8</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '#fg0000ff'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-1.html deleted file mode 100644 index 3acee1f39..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsl-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsl-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0%, 100%, 50%)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-2.html deleted file mode 100644 index c2c34f524..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsl-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsl-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(z, 100%, 50%)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-3.html deleted file mode 100644 index 616639a1e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsl-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsl-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0, 0, 50%)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-4.html deleted file mode 100644 index aaa2a8dc0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsl-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsl-4</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0, 100%, 0)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-5.html deleted file mode 100644 index 0e3f85148..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsl-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsl-5</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0, 100.%, 50%)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-6.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-6.html deleted file mode 100644 index 6343ab125..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsl-6.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsl-6</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsl-6</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsl(0, 100%, 50%,)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-1.html deleted file mode 100644 index dbddb0f55..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsla-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsla-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsla(0%, 100%, 50%, 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-2.html deleted file mode 100644 index 8a9643f88..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsla-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsla-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsla(0, 0, 50%, 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-3.html deleted file mode 100644 index 698a6cb9a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.hsla-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.hsla-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.hsla-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'hsla(0, 0, 50%, 1,)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-1.html deleted file mode 100644 index 45dcfca0c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.name-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.name-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'darkbrown'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-2.html deleted file mode 100644 index a3016b2a1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.name-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.name-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'firebrick1'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-3.html deleted file mode 100644 index 1d56151b6..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.name-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.name-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'red blue'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-4.html deleted file mode 100644 index e2619ffa8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.name-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.name-4</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '"red"'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-5.html deleted file mode 100644 index f515ff32e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.name-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.name-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.name-5</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = '"red'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-1.html deleted file mode 100644 index 66fb8e13d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgb-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgb-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(255.0, 0, 0,)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-2.html deleted file mode 100644 index 7f9457c82..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgb-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgb-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(100%, 0, 0)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-3.html deleted file mode 100644 index 2530569c2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgb-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgb-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgb-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgb(255, - 1, 0)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-1.html deleted file mode 100644 index 1dc343ad1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgba-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgba-1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(100%, 0, 0, 1)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-2.html deleted file mode 100644 index 5f5bb7941..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgba-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgba-2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(255, 0, 0, 1. 0)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-3.html deleted file mode 100644 index 67ed7f2a2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgba-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgba-3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(255, 0, 0, 1.)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-4.html deleted file mode 100644 index aea9725a2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgba-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgba-4</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(255, 0, 0, '; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-5.html deleted file mode 100644 index a149ed343..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.invalid.rgba-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.invalid.rgba-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.invalid.rgba-5</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#0f0'; -try { ctx.fillStyle = 'rgba(255, 0, 0, 1,)'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-1.html deleted file mode 100644 index 807a4961b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-clamp-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-clamp-1</h1> -<p class="desc"></p> - -<p class="notes">Assumes colours are clamped to [0,255]. -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-clamp-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(-1000, 1000, -1000)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-2.html deleted file mode 100644 index 46b3b6daa..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-clamp-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-clamp-2</h1> -<p class="desc"></p> - -<p class="notes">Assumes colours are clamped to [0,255]. -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-clamp-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(-200%, 200%, -200%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-2.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-3.html deleted file mode 100644 index 75dbe19c6..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-clamp-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-clamp-3</h1> -<p class="desc"></p> - -<p class="notes">Assumes colours are clamped to [0,255]. -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-clamp-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(-2147483649, 4294967298, -18446744073709551619)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-3.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-4.html deleted file mode 100644 index 4888816b6..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-clamp-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-clamp-4</h1> -<p class="desc"></p> - -<p class="notes">Assumes colours are clamped to [0,255]. -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-clamp-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(-1000000000000000000000000000000000000000, 1000000000000000000000000000000000000000, -1000000000000000000000000000000000000000)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-4.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-5.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-5.html deleted file mode 100644 index 3f7a94433..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-5.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-clamp-5</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-clamp-5</h1> -<p class="desc"></p> - -<p class="notes">Assumes colours are clamped to [0,255]. -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-clamp-5.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(-10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, -10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-5.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-5.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-clamp-5.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-eof.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-eof.html deleted file mode 100644 index 0d2833ceb..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-eof.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-eof</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-eof</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-eof.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0, 255, 0'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-eof.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-eof.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-eof.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-num.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-num.html deleted file mode 100644 index 85fc99280..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-num.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-num</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-num</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-num.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0,255,0)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-num.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-num.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-num.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-percent.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-percent.html deleted file mode 100644 index 295e72b0d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-percent.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgb-percent</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgb-percent</h1> -<p class="desc"></p> - -<p class="notes">CSS3 Color says "The integer value 255 corresponds to 100%". (In particular, it is not 254...) -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgb-percent.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgb(0% ,100% ,0%)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-percent.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-percent.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgb-percent.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-1.html deleted file mode 100644 index 0ec2ea0a1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-clamp-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-clamp-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-clamp-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0, 255, 0, -2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-1.png Binary files differdeleted file mode 100644 index eeedd0ff0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-2.html deleted file mode 100644 index fe3520157..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-clamp-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-clamp-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-clamp-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0, 255, 0, 2)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-2.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-clamp-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-eof.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-eof.html deleted file mode 100644 index d8856813d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-eof.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-eof</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-eof</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-eof.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0, 255, 0, 1'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-eof.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-eof.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-eof.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-1.html deleted file mode 100644 index 98dd9bf87..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-num-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-num-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-num-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba( 0 , 255 , 0 , .499 )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,127, "50,25", "0,255,0,127"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-1.png Binary files differdeleted file mode 100644 index 2aa6265f0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-2.html deleted file mode 100644 index 5cadec16c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-num-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-num-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-num-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba( 0 , 255 , 0 , 0.499 )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,127, "50,25", "0,255,0,127"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-2.png Binary files differdeleted file mode 100644 index 2aa6265f0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-num-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-percent.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-percent.html deleted file mode 100644 index 63f8c9ea9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-percent.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-percent</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-percent</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-percent.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba(0%,100%,0%,0.499)'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,127, "50,25", "0,255,0,127"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-percent.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-percent.png Binary files differdeleted file mode 100644 index 2aa6265f0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-percent.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-1.html deleted file mode 100644 index 0d08a4921..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-solid-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-solid-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-solid-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba( 0 , 255 , 0 , 1 )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-1.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-2.html deleted file mode 100644 index 2a9db38ed..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-solid-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-solid-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-solid-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba( 0 , 255 , 0 , 1.0 )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-2.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-3.html deleted file mode 100644 index 81bf257cd..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-3.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-solid-3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-solid-3</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-solid-3.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba( 0 , 255 , 0 , +1 )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-3.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-3.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-3.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-4.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-4.html deleted file mode 100644 index 82d450c01..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-4.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.rgba-solid-4</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.rgba-solid-4</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-solid-4.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'rgba( -0 , 255 , +0 , 1 )'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-4.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-4.png Binary files differdeleted file mode 100644 index 2733836c9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.rgba-solid-4.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-1.html deleted file mode 100644 index c49620f03..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.svg-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.svg-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.svg-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'gray'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 128,128,128,255, "50,25", "128,128,128,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-1.png Binary files differdeleted file mode 100644 index 5bc39cc69..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-2.html deleted file mode 100644 index 3a7e3d97e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.svg-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.svg-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.svg-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'grey'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 128,128,128,255, "50,25", "128,128,128,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-2.png Binary files differdeleted file mode 100644 index 5bc39cc69..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.svg-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.system.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.system.html deleted file mode 100644 index 9bb43c623..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.system.html +++ /dev/null @@ -1,30 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas 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> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.system</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'ThreeDDarkShadow'; -assert_regexp_match(ctx.fillStyle, /^#(?!(FF0000|ff0000|f00)$)/); // test that it's not red - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-1.html deleted file mode 100644 index 36cc80437..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-1.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.transparent-1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.transparent-1</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.transparent-1.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'transparent'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-1.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-1.png Binary files differdeleted file mode 100644 index eeedd0ff0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-1.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-2.html deleted file mode 100644 index 66e282598..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-2.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.fillStyle.parse.transparent-2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.fillStyle.parse.transparent-2</h1> -<p class="desc"></p> - -<p class="notes"> -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.transparent-2.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - - -ctx.fillStyle = '#f00'; -ctx.fillStyle = 'TrAnSpArEnT'; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-2.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-2.png Binary files differdeleted file mode 100644 index eeedd0ff0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.fillStyle.parse.transparent-2.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.empty.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.empty.html deleted file mode 100644 index e087f53c3..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.empty.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.empty</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.empty</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); -var g = ctx.createLinearGradient(0, 0, 0, 50); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.alpha.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.alpha.html deleted file mode 100644 index 7bf486da4..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.alpha.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.alpha</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.alpha</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.gradient.interpolate.alpha.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#ff0'; -ctx.fillRect(0, 0, 100, 50); -var g = ctx.createLinearGradient(0, 0, 100, 0); -g.addColorStop(0, 'rgba(0,0,255, 0)'); -g.addColorStop(1, 'rgba(0,0,255, 1)'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 25,25, 191,191,63,255, "25,25", "191,191,63,255", 3); -_assertPixelApprox(canvas, 50,25, 127,127,127,255, "50,25", "127,127,127,255", 3); -_assertPixelApprox(canvas, 75,25, 63,63,191,255, "75,25", "63,63,191,255", 3); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.alpha.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.alpha.png Binary files differdeleted file mode 100644 index 67f344359..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.alpha.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colour.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colour.html deleted file mode 100644 index a5fd632b5..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colour.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.colour</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.colour</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.gradient.interpolate.colour.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 100, 0); -g.addColorStop(0, '#ff0'); -g.addColorStop(1, '#00f'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 25,25, 191,191,63,255, "25,25", "191,191,63,255", 3); -_assertPixelApprox(canvas, 50,25, 127,127,127,255, "50,25", "127,127,127,255", 3); -_assertPixelApprox(canvas, 75,25, 63,63,191,255, "75,25", "63,63,191,255", 3); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colour.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colour.png Binary files differdeleted file mode 100644 index 67f344359..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colour.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colouralpha.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colouralpha.html deleted file mode 100644 index ad18881da..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colouralpha.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.colouralpha</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.colouralpha</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.gradient.interpolate.colouralpha.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 100, 0); -g.addColorStop(0, 'rgba(255,255,0, 0)'); -g.addColorStop(1, 'rgba(0,0,255, 1)'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 25,25, 190,190,65,65, "25,25", "190,190,65,65", 3); -_assertPixelApprox(canvas, 50,25, 126,126,128,128, "50,25", "126,126,128,128", 3); -_assertPixelApprox(canvas, 75,25, 62,62,192,192, "75,25", "62,62,192,192", 3); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colouralpha.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colouralpha.png Binary files differdeleted file mode 100644 index af6e50b7d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.colouralpha.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.multiple.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.multiple.html deleted file mode 100644 index b6b8de135..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.multiple.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.multiple</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.multiple</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.gradient.interpolate.multiple.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -canvas.width = 200; -var g = ctx.createLinearGradient(0, 0, 200, 0); -g.addColorStop(0, '#ff0'); -g.addColorStop(0.5, '#0ff'); -g.addColorStop(1, '#f0f'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 200, 50); -_assertPixelApprox(canvas, 50,25, 127,255,127,255, "50,25", "127,255,127,255", 3); -_assertPixelApprox(canvas, 100,25, 0,255,255,255, "100,25", "0,255,255,255", 3); -_assertPixelApprox(canvas, 150,25, 127,127,255,255, "150,25", "127,127,255,255", 3); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.multiple.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.multiple.png Binary files differdeleted file mode 100644 index 8f31ec369..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.multiple.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.outside.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.outside.html deleted file mode 100644 index 7577c95e3..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.outside.html +++ /dev/null @@ -1,38 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.outside</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.outside</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(25, 0, 75, 0); -g.addColorStop(0.4, '#0f0'); -g.addColorStop(0.6, '#0f0'); - -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 20,25, 0,255,0,255, "20,25", "0,255,0,255", 2); -_assertPixelApprox(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2); -_assertPixelApprox(canvas, 80,25, 0,255,0,255, "80,25", "0,255,0,255", 2); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap.html deleted file mode 100644 index ad2152f12..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap.html +++ /dev/null @@ -1,52 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.overlap</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.overlap</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.gradient.interpolate.overlap.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -canvas.width = 200; -var g = ctx.createLinearGradient(0, 0, 200, 0); -g.addColorStop(0, '#f00'); -g.addColorStop(0, '#ff0'); -g.addColorStop(0.25, '#00f'); -g.addColorStop(0.25, '#0f0'); -g.addColorStop(0.25, '#0f0'); -g.addColorStop(0.25, '#0f0'); -g.addColorStop(0.25, '#ff0'); -g.addColorStop(0.5, '#00f'); -g.addColorStop(0.5, '#0f0'); -g.addColorStop(0.75, '#00f'); -g.addColorStop(0.75, '#f00'); -g.addColorStop(0.75, '#ff0'); -g.addColorStop(0.5, '#0f0'); -g.addColorStop(0.5, '#0f0'); -g.addColorStop(0.5, '#ff0'); -g.addColorStop(1, '#00f'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 200, 50); -_assertPixelApprox(canvas, 49,25, 0,0,255,255, "49,25", "0,0,255,255", 16); -_assertPixelApprox(canvas, 51,25, 255,255,0,255, "51,25", "255,255,0,255", 16); -_assertPixelApprox(canvas, 99,25, 0,0,255,255, "99,25", "0,0,255,255", 16); -_assertPixelApprox(canvas, 101,25, 255,255,0,255, "101,25", "255,255,0,255", 16); -_assertPixelApprox(canvas, 149,25, 0,0,255,255, "149,25", "0,0,255,255", 16); -_assertPixelApprox(canvas, 151,25, 255,255,0,255, "151,25", "255,255,0,255", 16); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap.png Binary files differdeleted file mode 100644 index 7d4dad8de..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap2.html deleted file mode 100644 index 7f99c1f32..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap2.html +++ /dev/null @@ -1,42 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.overlap2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.overlap2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 100, 0); -var ps = [ 0, 1/10, 1/4, 1/3, 1/2, 3/4, 1 ]; -for (var p = 0; p < ps.length; ++p) -{ - g.addColorStop(ps[p], '#0f0'); - for (var i = 0; i < 15; ++i) - g.addColorStop(ps[p], '#f00'); - g.addColorStop(ps[p], '#0f0'); -} -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 30,25, 0,255,0,255, "30,25", "0,255,0,255"); -_assertPixel(canvas, 40,25, 0,255,0,255, "40,25", "0,255,0,255"); -_assertPixel(canvas, 60,25, 0,255,0,255, "60,25", "0,255,0,255"); -_assertPixel(canvas, 80,25, 0,255,0,255, "80,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.solid.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.solid.html deleted file mode 100644 index 46e53d326..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.solid.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.solid</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.solid</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 100, 0); -g.addColorStop(0, '#0f0'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.vertical.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.vertical.html deleted file mode 100644 index a4c3453cf..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.vertical.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.vertical</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.vertical</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.gradient.interpolate.vertical.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 0, 50); -g.addColorStop(0, '#ff0'); -g.addColorStop(1, '#00f'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 50,12, 191,191,63,255, "50,12", "191,191,63,255", 10); -_assertPixelApprox(canvas, 50,25, 127,127,127,255, "50,25", "127,127,127,255", 5); -_assertPixelApprox(canvas, 50,37, 63,63,191,255, "50,37", "63,63,191,255", 10); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.vertical.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.vertical.png Binary files differdeleted file mode 100644 index 1d895a18f..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.vertical.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.html deleted file mode 100644 index 92777bfef..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fill.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.zerosize.fill</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.zerosize.fill</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction) -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.rect(0, 0, 100, 50); -ctx.fill(); -_assertPixel(canvas, 40,20, 0,255,0,255, "40,20", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.html deleted file mode 100644 index 98efeda7c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillRect.html +++ /dev/null @@ -1,35 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.zerosize.fillRect</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.zerosize.fillRect</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction) -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixel(canvas, 40,20, 0,255,0,255, "40,20", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillText.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillText.html deleted file mode 100644 index 93397b976..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.fillText.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.zerosize.fillText</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.zerosize.fillText</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction) -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.font = '100px sans-serif'; -ctx.fillText("AA", 0, 50); -_assertGreen(ctx, 100, 50); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.html deleted file mode 100644 index 69e2de6f4..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.stroke.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.zerosize.stroke</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.zerosize.stroke</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction) -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.strokeStyle = g; -ctx.rect(20, 20, 60, 10); -ctx.stroke(); -_assertPixel(canvas, 19,19, 0,255,0,255, "19,19", "0,255,0,255"); -_assertPixel(canvas, 20,19, 0,255,0,255, "20,19", "0,255,0,255"); -_assertPixel(canvas, 21,19, 0,255,0,255, "21,19", "0,255,0,255"); -_assertPixel(canvas, 19,20, 0,255,0,255, "19,20", "0,255,0,255"); -_assertPixel(canvas, 20,20, 0,255,0,255, "20,20", "0,255,0,255"); -_assertPixel(canvas, 21,20, 0,255,0,255, "21,20", "0,255,0,255"); -_assertPixel(canvas, 19,21, 0,255,0,255, "19,21", "0,255,0,255"); -_assertPixel(canvas, 20,21, 0,255,0,255, "20,21", "0,255,0,255"); -_assertPixel(canvas, 21,21, 0,255,0,255, "21,21", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.html deleted file mode 100644 index 7eff74d80..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeRect.html +++ /dev/null @@ -1,43 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.zerosize.strokeRect</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.zerosize.strokeRect</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction) -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.strokeStyle = g; -ctx.strokeRect(20, 20, 60, 10); -_assertPixel(canvas, 19,19, 0,255,0,255, "19,19", "0,255,0,255"); -_assertPixel(canvas, 20,19, 0,255,0,255, "20,19", "0,255,0,255"); -_assertPixel(canvas, 21,19, 0,255,0,255, "21,19", "0,255,0,255"); -_assertPixel(canvas, 19,20, 0,255,0,255, "19,20", "0,255,0,255"); -_assertPixel(canvas, 20,20, 0,255,0,255, "20,20", "0,255,0,255"); -_assertPixel(canvas, 21,20, 0,255,0,255, "21,20", "0,255,0,255"); -_assertPixel(canvas, 19,21, 0,255,0,255, "19,21", "0,255,0,255"); -_assertPixel(canvas, 20,21, 0,255,0,255, "20,21", "0,255,0,255"); -_assertPixel(canvas, 21,21, 0,255,0,255, "21,21", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeText.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeText.html deleted file mode 100644 index d384cc01d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.zerosize.strokeText.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.interpolate.zerosize.strokeText</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.interpolate.zerosize.strokeText</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction) -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.strokeStyle = g; -ctx.font = '100px sans-serif'; -ctx.strokeText("AA", 0, 50); -_assertGreen(ctx, 100, 50); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.nonfinite.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.nonfinite.html deleted file mode 100644 index b60b30438..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.nonfinite.html +++ /dev/null @@ -1,49 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.linear.nonfinite</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.linear.nonfinite</h1> -<p class="desc">createLinearGradient() throws TypeError if arguments are not finite</p> - -<p class="notes">Defined in "Web IDL" (draft) -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test("createLinearGradient() throws TypeError if arguments are not finite"); -_addTest(function(canvas, ctx) { - -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0, 1, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(-Infinity, 0, 1, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(NaN, 0, 1, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity, 1, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, -Infinity, 1, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, NaN, 1, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, Infinity, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, -Infinity, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, NaN, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, 1, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, 1, -Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, 1, NaN); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, Infinity, 1, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, Infinity, Infinity, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, Infinity, 1, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0, Infinity, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(Infinity, 0, 1, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity, Infinity, 0); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, Infinity, 1, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createLinearGradient(0, 0, Infinity, Infinity); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.1.html deleted file mode 100644 index 3a4d24a39..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.1.html +++ /dev/null @@ -1,37 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.linear.transform.1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.linear.transform.1</h1> -<p class="desc">Linear gradient coordinates are relative to the coordinate space at the time of filling</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Linear gradient coordinates are relative to the coordinate space at the time of filling"); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 200, 0); -g.addColorStop(0, '#f00'); -g.addColorStop(0.25, '#0f0'); -g.addColorStop(0.75, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.translate(-50, 0); -ctx.fillRect(50, 0, 100, 50); -_assertPixel(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.2.html deleted file mode 100644 index 56957a0a2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.2.html +++ /dev/null @@ -1,38 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.linear.transform.2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.linear.transform.2</h1> -<p class="desc">Linear gradient coordinates are relative to the coordinate space at the time of filling</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Linear gradient coordinates are relative to the coordinate space at the time of filling"); -_addTest(function(canvas, ctx) { - -ctx.translate(100, 0); -var g = ctx.createLinearGradient(0, 0, 200, 0); -g.addColorStop(0, '#f00'); -g.addColorStop(0.25, '#0f0'); -g.addColorStop(0.75, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.translate(-150, 0); -ctx.fillRect(50, 0, 100, 50); -_assertPixel(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.3.html deleted file mode 100644 index 6cc2ead2f..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.linear.transform.3.html +++ /dev/null @@ -1,38 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.linear.transform.3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.linear.transform.3</h1> -<p class="desc">Linear gradient transforms do not experience broken caching effects</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Linear gradient transforms do not experience broken caching effects"); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 200, 0); -g.addColorStop(0, '#f00'); -g.addColorStop(0.25, '#0f0'); -g.addColorStop(0.75, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -ctx.translate(-50, 0); -ctx.fillRect(50, 0, 100, 50); -_assertPixel(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.compare.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.compare.html deleted file mode 100644 index 67089a073..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.compare.html +++ /dev/null @@ -1,31 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.compare</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.compare</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g1 = ctx.createLinearGradient(0, 0, 100, 0); -var g2 = ctx.createLinearGradient(0, 0, 100, 0); -_assertDifferent(g1, g2, "g1", "g2"); -ctx.fillStyle = g1; -_assertSame(ctx.fillStyle, g1, "ctx.fillStyle", "g1"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.crosscanvas.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.crosscanvas.html deleted file mode 100644 index 95144c6af..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.crosscanvas.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.crosscanvas</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.crosscanvas</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); -var g = document.createElement('canvas').getContext('2d').createLinearGradient(0, 0, 100, 0); -g.addColorStop(0, '#0f0'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.current.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.current.html deleted file mode 100644 index 35709cbd1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.current.html +++ /dev/null @@ -1,37 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.current</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.current</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="2d.gradient.object.current.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -canvas.setAttribute('style', 'color: #f00'); - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createLinearGradient(0, 0, 100, 0); -g.addColorStop(0, 'currentColor'); -g.addColorStop(1, 'currentColor'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 50,25, 0,0,0,255, "50,25", "0,0,0,255", 2); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.current.png b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.current.png Binary files differdeleted file mode 100644 index d638d0338..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.current.png +++ /dev/null diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.invalidcolour.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.invalidcolour.html deleted file mode 100644 index 7687d0b94..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.invalidcolour.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.invalidcolour</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.invalidcolour</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 100, 0); -assert_throws("SYNTAX_ERR", function() { g.addColorStop(0, ""); }); -assert_throws("SYNTAX_ERR", function() { g.addColorStop(0, 'null'); }); -assert_throws("SYNTAX_ERR", function() { g.addColorStop(0, 'undefined'); }); -assert_throws("SYNTAX_ERR", function() { g.addColorStop(0, null); }); -assert_throws("SYNTAX_ERR", function() { g.addColorStop(0, undefined); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html deleted file mode 100644 index 2dce28b66..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html +++ /dev/null @@ -1,32 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.invalidoffset</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.invalidoffset</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(0, 0, 100, 0); -assert_throws("INDEX_SIZE_ERR", function() { g.addColorStop(-1, '#000'); }); -assert_throws("INDEX_SIZE_ERR", function() { g.addColorStop(2, '#000'); }); -assert_throws(new TypeError(), function() { g.addColorStop(Infinity, '#000'); }); -assert_throws(new TypeError(), function() { g.addColorStop(-Infinity, '#000'); }); -assert_throws(new TypeError(), function() { g.addColorStop(NaN, '#000'); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.return.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.return.html deleted file mode 100644 index bcb4dc7af..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.return.html +++ /dev/null @@ -1,35 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.return</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.return</h1> -<p class="desc">createLinearGradient() and createRadialGradient() returns objects implementing CanvasGradient</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test("createLinearGradient() and createRadialGradient() returns objects implementing CanvasGradient"); -_addTest(function(canvas, ctx) { - -window.CanvasGradient.prototype.thisImplementsCanvasGradient = true; - -var g1 = ctx.createLinearGradient(0, 0, 100, 0); -_assertDifferent(g1.addColorStop, undefined, "g1.addColorStop", "undefined"); -_assertSame(g1.thisImplementsCanvasGradient, true, "g1.thisImplementsCanvasGradient", "true"); - -var g2 = ctx.createRadialGradient(0, 0, 10, 0, 0, 20); -_assertDifferent(g2.addColorStop, undefined, "g2.addColorStop", "undefined"); -_assertSame(g2.thisImplementsCanvasGradient, true, "g2.thisImplementsCanvasGradient", "true"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.type.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.type.html deleted file mode 100644 index 27c91312c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.type.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.type</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.type</h1> -<p class="desc">window.CanvasGradient exists and has the right properties</p> - -<p class="notes">Defined in "Web IDL" (draft) -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test("window.CanvasGradient exists and has the right properties"); -_addTest(function(canvas, ctx) { - -_assertDifferent(window.CanvasGradient, undefined, "window.CanvasGradient", "undefined"); -_assertDifferent(window.CanvasGradient.prototype.addColorStop, undefined, "window.CanvasGradient.prototype.addColorStop", "undefined"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.update.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.update.html deleted file mode 100644 index 8151c42f9..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.object.update.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.object.update</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.object.update</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var g = ctx.createLinearGradient(-100, 0, 200, 0); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -g.addColorStop(0.1, '#0f0'); -g.addColorStop(0.9, '#0f0'); -ctx.fillRect(0, 0, 100, 50); -_assertPixelApprox(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.behind.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.behind.html deleted file mode 100644 index 5bf367ea0..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.behind.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.behind</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.behind</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(120, 25, 10, 211, 25, 100); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.beside.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.beside.html deleted file mode 100644 index 6c7dbaa2a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.beside.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.beside</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.beside</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(0, 100, 40, 100, 100, 50); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.bottom.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.bottom.html deleted file mode 100644 index 362d23293..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.bottom.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.bottom</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.bottom</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(210, 25, 100, 230, 25, 101); -g.addColorStop(0, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.cylinder.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.cylinder.html deleted file mode 100644 index a2f189d83..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.cylinder.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.cylinder</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.cylinder</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(210, 25, 100, 230, 25, 100); -g.addColorStop(0, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.front.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.front.html deleted file mode 100644 index 3ed6190b2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.front.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.front</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.front</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(311, 25, 10, 210, 25, 100); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.shape1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.shape1.html deleted file mode 100644 index 992c06805..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.shape1.html +++ /dev/null @@ -1,53 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.shape1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.shape1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var tol = 1; // tolerance to avoid antialiasing artifacts - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -ctx.fillStyle = '#f00'; -ctx.beginPath(); -ctx.moveTo(30+tol, 40); -ctx.lineTo(110, -20+tol); -ctx.lineTo(110, 100-tol); -ctx.fill(); - -var g = ctx.createRadialGradient(30+10*5/2, 40, 10*3/2, 30+10*15/4, 40, 10*9/4); -g.addColorStop(0, '#0f0'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.shape2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.shape2.html deleted file mode 100644 index cf9bd6d42..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.shape2.html +++ /dev/null @@ -1,53 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.shape2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.shape2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var tol = 1; // tolerance to avoid antialiasing artifacts - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(30+10*5/2, 40, 10*3/2, 30+10*15/4, 40, 10*9/4); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -ctx.fillStyle = '#0f0'; -ctx.beginPath(); -ctx.moveTo(30-tol, 40); -ctx.lineTo(110, -20-tol); -ctx.lineTo(110, 100+tol); -ctx.fill(); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.top.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.top.html deleted file mode 100644 index fa60a0cfc..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.cone.top.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.cone.top</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.cone.top</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(230, 25, 100, 100, 25, 101); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.equal.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.equal.html deleted file mode 100644 index f96b9761c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.equal.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.equal</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.equal</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(50, 25, 20, 50, 25, 20); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside1.html deleted file mode 100644 index ab656ce27..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside1.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.inside1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.inside1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(50, 25, 100, 50, 25, 200); -g.addColorStop(0, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside2.html deleted file mode 100644 index 30f4c49b8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside2.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.inside2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.inside2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(50, 25, 200, 50, 25, 100); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside3.html deleted file mode 100644 index 56c12a5b8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.inside3.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.inside3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.inside3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(50, 25, 200, 50, 25, 100); -g.addColorStop(0, '#f00'); -g.addColorStop(0.993, '#f00'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.negative.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.negative.html deleted file mode 100644 index 29242165f..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.negative.html +++ /dev/null @@ -1,29 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.negative</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.negative</h1> -<p class="desc">createRadialGradient() throws INDEX_SIZE_ERR if either radius is negative</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test("createRadialGradient() throws INDEX_SIZE_ERR if either radius is negative"); -_addTest(function(canvas, ctx) { - -assert_throws("INDEX_SIZE_ERR", function() { ctx.createRadialGradient(0, 0, -0.1, 0, 0, 1); }); -assert_throws("INDEX_SIZE_ERR", function() { ctx.createRadialGradient(0, 0, 1, 0, 0, -0.1); }); -assert_throws("INDEX_SIZE_ERR", function() { ctx.createRadialGradient(0, 0, -0.1, 0, 0, -0.1); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.nonfinite.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.nonfinite.html deleted file mode 100644 index e12d5142a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.nonfinite.html +++ /dev/null @@ -1,101 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.nonfinite</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.nonfinite</h1> -<p class="desc">createRadialGradient() throws TypeError if arguments are not finite</p> - -<p class="notes">Defined in "Web IDL" (draft) -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test("createRadialGradient() throws TypeError if arguments are not finite"); -_addTest(function(canvas, ctx) { - -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(-Infinity, 0, 1, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(NaN, 0, 1, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, -Infinity, 1, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, NaN, 1, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, -Infinity, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, NaN, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, -Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, NaN, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, 0, -Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, 0, NaN, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, 0, 0, -Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, 0, 0, NaN); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, Infinity, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, Infinity, 1, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, Infinity, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(Infinity, 0, 1, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, 0, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, Infinity, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, Infinity, 1, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, Infinity, 0, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, 0, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, 0, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, Infinity, 0, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, Infinity, Infinity, 1); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, Infinity, Infinity, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, Infinity, 0, Infinity); }); -assert_throws(new TypeError(), function() { ctx.createRadialGradient(0, 0, 1, 0, Infinity, Infinity); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside1.html deleted file mode 100644 index e2c68d66b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside1.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.outside1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.outside1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(200, 25, 10, 200, 25, 20); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#0f0'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside2.html deleted file mode 100644 index 254db4574..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside2.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.outside2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.outside2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(200, 25, 20, 200, 25, 10); -g.addColorStop(0, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside3.html deleted file mode 100644 index 4324bc717..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.outside3.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.outside3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.outside3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(200, 25, 20, 200, 25, 10); -g.addColorStop(0, '#0f0'); -g.addColorStop(0.001, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch1.html deleted file mode 100644 index 5e42c4094..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch1.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.touch1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.touch1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(150, 25, 50, 200, 25, 100); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch2.html deleted file mode 100644 index 37dfd5ea8..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch2.html +++ /dev/null @@ -1,46 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.touch2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.touch2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(-80, 25, 70, 0, 25, 150); -g.addColorStop(0, '#f00'); -g.addColorStop(0.01, '#0f0'); -g.addColorStop(0.99, '#0f0'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch3.html deleted file mode 100644 index e401d19b4..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.touch3.html +++ /dev/null @@ -1,44 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.touch3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.touch3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var g = ctx.createRadialGradient(120, -15, 25, 140, -30, 50); -g.addColorStop(0, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.1.html deleted file mode 100644 index 92355825e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.1.html +++ /dev/null @@ -1,38 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.transform.1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.transform.1</h1> -<p class="desc">Radial gradient coordinates are relative to the coordinate space at the time of filling</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Radial gradient coordinates are relative to the coordinate space at the time of filling"); -_addTest(function(canvas, ctx) { - -var g = ctx.createRadialGradient(0, 0, 0, 0, 0, 11.2); -g.addColorStop(0, '#0f0'); -g.addColorStop(0.5, '#0f0'); -g.addColorStop(0.51, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.translate(50, 25); -ctx.scale(10, 10); -ctx.fillRect(-5, -2.5, 10, 5); -_assertPixel(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.2.html deleted file mode 100644 index ce7841f3b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.2.html +++ /dev/null @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.transform.2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.transform.2</h1> -<p class="desc">Radial gradient coordinates are relative to the coordinate space at the time of filling</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Radial gradient coordinates are relative to the coordinate space at the time of filling"); -_addTest(function(canvas, ctx) { - -ctx.translate(100, 0); -var g = ctx.createRadialGradient(0, 0, 0, 0, 0, 11.2); -g.addColorStop(0, '#0f0'); -g.addColorStop(0.5, '#0f0'); -g.addColorStop(0.51, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.translate(-50, 25); -ctx.scale(10, 10); -ctx.fillRect(-5, -2.5, 10, 5); -_assertPixel(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.3.html deleted file mode 100644 index ee9e6303b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.gradient.radial.transform.3.html +++ /dev/null @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.gradient.radial.transform.3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.gradient.radial.transform.3</h1> -<p class="desc">Radial gradient transforms do not experience broken caching effects</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Radial gradient transforms do not experience broken caching effects"); -_addTest(function(canvas, ctx) { - -var g = ctx.createRadialGradient(0, 0, 0, 0, 0, 11.2); -g.addColorStop(0, '#0f0'); -g.addColorStop(0.5, '#0f0'); -g.addColorStop(0.51, '#f00'); -g.addColorStop(1, '#f00'); -ctx.fillStyle = g; -ctx.fillRect(0, 0, 100, 50); -ctx.translate(50, 25); -ctx.scale(10, 10); -ctx.fillRect(-5, -2.5, 10, 5); -_assertPixel(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.animated.gif.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.animated.gif.html deleted file mode 100644 index c78ef377b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.animated.gif.html +++ /dev/null @@ -1,38 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.animated.gif</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.animated.gif</h1> -<p class="desc">createPattern() of an animated GIF draws the first frame</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("createPattern() of an animated GIF draws the first frame"); -_addTest(function(canvas, ctx) { - -deferTest(); -setTimeout(function () { - var pattern = ctx.createPattern(document.getElementById('anim-gr.gif'), 'repeat'); - ctx.fillStyle = pattern; - ctx.fillRect(0, 0, 50, 50); - setTimeout(t.step_func_done(function () { - ctx.fillRect(50, 0, 50, 50); - _assertPixelApprox(canvas, 25,25, 0,255,0,255, "25,25", "0,255,0,255", 2); - _assertPixelApprox(canvas, 75,25, 0,255,0,255, "75,25", "0,255,0,255", 2); - }), 250); -}, 250); - - -}); -</script> -<img src="/images/anim-gr.gif" id="anim-gr.gif" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.canvas.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.canvas.html deleted file mode 100644 index 3bdc679c5..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.canvas.html +++ /dev/null @@ -1,49 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.basic.canvas</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.basic.canvas</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var canvas2 = document.createElement('canvas'); -canvas2.width = 100; -canvas2.height = 50; -var ctx2 = canvas2.getContext('2d'); -ctx2.fillStyle = '#0f0'; -ctx2.fillRect(0, 0, 100, 50); - -var pattern = ctx.createPattern(canvas2, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.image.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.image.html deleted file mode 100644 index 9ae64e4f5..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.image.html +++ /dev/null @@ -1,38 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.basic.image</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.basic.image</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); -var img = document.getElementById('green.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.nocontext.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.nocontext.html deleted file mode 100644 index a24958702..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.nocontext.html +++ /dev/null @@ -1,41 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.basic.nocontext</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.basic.nocontext</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var canvas2 = document.createElement('canvas'); -canvas2.width = 100; -canvas2.height = 50; -var pattern = ctx.createPattern(canvas2, 'no-repeat'); - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#f00'; -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.type.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.type.html deleted file mode 100644 index 07ca39923..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.type.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.basic.type</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.basic.type</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -_assertDifferent(window.CanvasPattern, undefined, "window.CanvasPattern", "undefined"); - -window.CanvasPattern.prototype.thisImplementsCanvasPattern = true; - -var img = document.getElementById('green.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -_assert(pattern.thisImplementsCanvasPattern, "pattern.thisImplementsCanvasPattern"); - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.zerocanvas.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.zerocanvas.html deleted file mode 100644 index aa393b8f7..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.basic.zerocanvas.html +++ /dev/null @@ -1,43 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.basic.zerocanvas</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.basic.zerocanvas</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -canvas.width = 0; -canvas.height = 10; -_assertSame(canvas.width, 0, "canvas.width", "0"); -_assertSame(canvas.height, 10, "canvas.height", "10"); -assert_throws("INVALID_STATE_ERR", function() { ctx.createPattern(canvas, 'repeat'); }); - -canvas.width = 10; -canvas.height = 0; -_assertSame(canvas.width, 10, "canvas.width", "10"); -_assertSame(canvas.height, 0, "canvas.height", "0"); -assert_throws("INVALID_STATE_ERR", function() { ctx.createPattern(canvas, 'repeat'); }); - -canvas.width = 0; -canvas.height = 0; -_assertSame(canvas.width, 0, "canvas.width", "0"); -_assertSame(canvas.height, 0, "canvas.height", "0"); -assert_throws("INVALID_STATE_ERR", function() { ctx.createPattern(canvas, 'repeat'); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.crosscanvas.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.crosscanvas.html deleted file mode 100644 index dc80720bb..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.crosscanvas.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.crosscanvas</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.crosscanvas</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('green.png'); - -var pattern = document.createElement('canvas').getContext('2d').createPattern(img, 'no-repeat'); -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.broken.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.broken.html deleted file mode 100644 index 31c8e8f2a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.broken.html +++ /dev/null @@ -1,29 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.broken</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.broken</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('broken.png'); -assert_throws("INVALID_STATE_ERR", function() { ctx.createPattern(img, 'repeat'); }); - - -}); -</script> -<img src="/images/broken.png" id="broken.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.html deleted file mode 100644 index 23f453ac1..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.emptysrc.html +++ /dev/null @@ -1,30 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.incomplete.emptysrc</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.incomplete.emptysrc</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('red.png'); -img.src = ""; -_assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null"); - - -}); -</script> -<img src="/images/red.png" id="red.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.immediate.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.immediate.html deleted file mode 100644 index 176cf722a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.immediate.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.incomplete.immediate</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.incomplete.immediate</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = new Image(); -img.src = '../images/red.png'; -// This triggers the "update the image data" algorithm. -// The image will not go to the "completely available" state -// until a fetch task in the networking task source is processed, -// so the image must not be fully decodable yet: -_assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null"); - - -}); -</script> -<img src="/images/red.png" id="red.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.nosrc.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.nosrc.html deleted file mode 100644 index 88b8801b2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.nosrc.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.incomplete.nosrc</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.incomplete.nosrc</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = new Image(); -_assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.reload.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.reload.html deleted file mode 100644 index 095055c21..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.reload.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.incomplete.reload</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.incomplete.reload</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('yellow.png'); -img.src = '../images/red.png'; -// This triggers the "update the image data" algorithm, -// and resets the image to the "unavailable" state. -// The image will not go to the "completely available" state -// until a fetch task in the networking task source is processed, -// so the image must not be fully decodable yet: -_assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null"); - - -}); -</script> -<img src="/images/yellow.png" id="yellow.png" class="resource"> -<img src="/images/red.png" id="red.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.html deleted file mode 100644 index 514f0609c..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.incomplete.removedsrc.html +++ /dev/null @@ -1,30 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.incomplete.removedsrc</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.incomplete.removedsrc</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('red.png'); -img.removeAttribute('src'); -_assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null"); - - -}); -</script> -<img src="/images/red.png" id="red.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.null.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.null.html deleted file mode 100644 index 5b8c68817..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.null.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.null</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.null</h1> -<p class="desc"></p> - -<p class="notes">Defined in "Web IDL" (draft) -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws(new TypeError(), function() { ctx.createPattern(null, 'repeat'); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.string.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.string.html deleted file mode 100644 index 834d92187..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.string.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.string</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.string</h1> -<p class="desc"></p> - -<p class="notes">Defined in "Web IDL" (draft) -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws(new TypeError(), function() { ctx.createPattern('../images/red.png', 'repeat'); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.undefined.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.undefined.html deleted file mode 100644 index 24f650d97..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.image.undefined.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.image.undefined</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.image.undefined</h1> -<p class="desc"></p> - -<p class="notes">Defined in "Web IDL" (draft) -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws(new TypeError(), function() { ctx.createPattern(undefined, 'repeat'); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.canvas1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.canvas1.html deleted file mode 100644 index f60da5bac..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.canvas1.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.modify.canvas1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.modify.canvas1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var canvas2 = document.createElement('canvas'); -canvas2.width = 100; -canvas2.height = 50; -var ctx2 = canvas2.getContext('2d'); -ctx2.fillStyle = '#0f0'; -ctx2.fillRect(0, 0, 100, 50); - -var pattern = ctx.createPattern(canvas2, 'no-repeat'); - -ctx2.fillStyle = '#f00'; -ctx2.fillRect(0, 0, 100, 50); - -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.canvas2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.canvas2.html deleted file mode 100644 index db7a8b842..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.canvas2.html +++ /dev/null @@ -1,49 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.modify.canvas2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.modify.canvas2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var canvas2 = document.createElement('canvas'); -canvas2.width = 100; -canvas2.height = 50; -var ctx2 = canvas2.getContext('2d'); -ctx2.fillStyle = '#0f0'; -ctx2.fillRect(0, 0, 100, 50); - -var pattern = ctx.createPattern(canvas2, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -ctx2.fillStyle = '#f00'; -ctx2.fillRect(0, 0, 100, 50); - -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.image1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.image1.html deleted file mode 100644 index cfc8a965d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.image1.html +++ /dev/null @@ -1,41 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.modify.image1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.modify.image1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('green.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -deferTest(); -img.onload = t.step_func_done(function () -{ - ctx.fillStyle = pattern; - ctx.fillRect(0, 0, 100, 50); - - _assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); - _assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); - _assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); - _assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); -}); -img.src = '/images/red.png'; - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.image2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.image2.html deleted file mode 100644 index c7f2ee3bf..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.modify.image2.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.modify.image2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.modify.image2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('green.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#00f'; -ctx.fillRect(0, 0, 100, 50); -deferTest(); -img.onload = t.step_func_done(function () -{ - ctx.fillStyle = pattern; - ctx.fillRect(0, 0, 100, 50); - - _assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); - _assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); - _assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); - _assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); -}); -img.src = '/images/red.png'; - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.basic.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.basic.html deleted file mode 100644 index 431437e5b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.basic.html +++ /dev/null @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.norepeat.basic</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.norepeat.basic</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('green.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord1.html deleted file mode 100644 index a560fd8dc..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord1.html +++ /dev/null @@ -1,42 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.norepeat.coord1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.norepeat.coord1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 50, 50); -ctx.fillStyle = '#f00'; -ctx.fillRect(50, 0, 50, 50); - -var img = document.getElementById('green.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.translate(50, 0); -ctx.fillRect(-50, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord2.html deleted file mode 100644 index 9ae289872..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord2.html +++ /dev/null @@ -1,43 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.norepeat.coord2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.norepeat.coord2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('green.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 50, 50); - -ctx.fillStyle = '#f00'; -ctx.fillRect(50, 0, 50, 50); - -ctx.fillStyle = pattern; -ctx.translate(50, 0); -ctx.fillRect(-50, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green.png" id="green.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord3.html deleted file mode 100644 index 9c1b5ae6d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord3.html +++ /dev/null @@ -1,43 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.norepeat.coord3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.norepeat.coord3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('red.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.translate(50, 25); -ctx.fillRect(-50, -25, 100, 50); - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 50, 25); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/red.png" id="red.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.outside.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.outside.html deleted file mode 100644 index 3dce7a686..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.norepeat.outside.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.norepeat.outside</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.norepeat.outside</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('red.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -ctx.fillStyle = pattern; -ctx.fillRect(0, -50, 100, 50); -ctx.fillRect(-100, 0, 100, 50); -ctx.fillRect(0, 50, 100, 50); -ctx.fillRect(100, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/red.png" id="red.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.orientation.canvas.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.orientation.canvas.html deleted file mode 100644 index 70966e00a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.orientation.canvas.html +++ /dev/null @@ -1,48 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.orientation.canvas</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.orientation.canvas</h1> -<p class="desc">Canvas patterns do not get flipped when painted</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Canvas patterns do not get flipped when painted"); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var canvas2 = document.createElement('canvas'); -canvas2.width = 100; -canvas2.height = 50; -var ctx2 = canvas2.getContext('2d'); -ctx2.fillStyle = '#f00'; -ctx2.fillRect(0, 0, 100, 25); -ctx2.fillStyle = '#0f0'; -ctx2.fillRect(0, 25, 100, 25); - -var pattern = ctx.createPattern(canvas2, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 25); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.orientation.image.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.orientation.image.html deleted file mode 100644 index 7d109c55a..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.orientation.image.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.orientation.image</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.orientation.image</h1> -<p class="desc">Image patterns do not get flipped when painted</p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test("Image patterns do not get flipped when painted"); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('rrgg-256x256.png'); -var pattern = ctx.createPattern(img, 'no-repeat'); -ctx.fillStyle = pattern; -ctx.save(); -ctx.translate(0, -103); -ctx.fillRect(0, 103, 100, 50); -ctx.restore(); - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 25); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/rrgg-256x256.png" id="rrgg-256x256.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.basic.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.basic.html deleted file mode 100644 index 501fe67e4..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.basic.html +++ /dev/null @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeat.basic</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeat.basic</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('green-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green-16x16.png" id="green-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord1.html deleted file mode 100644 index 4aa75d155..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord1.html +++ /dev/null @@ -1,40 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeat.coord1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeat.coord1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('rgrg-256x256.png'); -var pattern = ctx.createPattern(img, 'repeat'); -ctx.fillStyle = pattern; -ctx.translate(-128, -78); -ctx.fillRect(128, 78, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/rgrg-256x256.png" id="rgrg-256x256.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord2.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord2.html deleted file mode 100644 index 0fe8b6a56..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord2.html +++ /dev/null @@ -1,36 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeat.coord2</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeat.coord2</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('ggrr-256x256.png'); -var pattern = ctx.createPattern(img, 'repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/ggrr-256x256.png" id="ggrr-256x256.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord3.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord3.html deleted file mode 100644 index b361c91f2..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.coord3.html +++ /dev/null @@ -1,39 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeat.coord3</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeat.coord3</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -var img = document.getElementById('rgrg-256x256.png'); -var pattern = ctx.createPattern(img, 'repeat'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -ctx.translate(-128, -78); -ctx.fillRect(128, 78, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/rgrg-256x256.png" id="rgrg-256x256.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.outside.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.outside.html deleted file mode 100644 index 68d2fe84e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeat.outside.html +++ /dev/null @@ -1,40 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeat.outside</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeat.outside</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('green-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat'); -ctx.fillStyle = pattern; -ctx.translate(50, 25); -ctx.fillRect(-50, -25, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green-16x16.png" id="green-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.basic.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.basic.html deleted file mode 100644 index 3cec292a4..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.basic.html +++ /dev/null @@ -1,41 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeatx.basic</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeatx.basic</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 16); - -var img = document.getElementById('green-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat-x'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green-16x16.png" id="green-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.coord1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.coord1.html deleted file mode 100644 index 1e864a729..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.coord1.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeatx.coord1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeatx.coord1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('red-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat-x'); -ctx.fillStyle = pattern; -ctx.translate(0, 16); -ctx.fillRect(0, -16, 100, 50); - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 16); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,25, 0,255,0,255, "1,25", "0,255,0,255"); -_assertPixel(canvas, 98,25, 0,255,0,255, "98,25", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/red-16x16.png" id="red-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.outside.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.outside.html deleted file mode 100644 index 074c4afa4..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeatx.outside.html +++ /dev/null @@ -1,42 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeatx.outside</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeatx.outside</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('red-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat-x'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 16); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/red-16x16.png" id="red-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.basic.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.basic.html deleted file mode 100644 index 0da99d28d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.basic.html +++ /dev/null @@ -1,41 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeaty.basic</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeaty.basic</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 16, 50); - -var img = document.getElementById('green-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat-y'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green-16x16.png" id="green-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.coord1.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.coord1.html deleted file mode 100644 index 2f42a4e2d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.coord1.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeaty.coord1</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeaty.coord1</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('red-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat-y'); -ctx.fillStyle = pattern; -ctx.translate(48, 0); -ctx.fillRect(-48, 0, 100, 50); - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 16, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 50,1, 0,255,0,255, "50,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 50,48, 0,255,0,255, "50,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/red-16x16.png" id="red-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.outside.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.outside.html deleted file mode 100644 index 9ec618a9d..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.paint.repeaty.outside.html +++ /dev/null @@ -1,42 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.paint.repeaty.outside</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.paint.repeaty.outside</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 100, 50); - -var img = document.getElementById('red-16x16.png'); -var pattern = ctx.createPattern(img, 'repeat-y'); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 100, 50); - -ctx.fillStyle = '#0f0'; -ctx.fillRect(0, 0, 16, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/red-16x16.png" id="red-16x16.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.case.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.case.html deleted file mode 100644 index 5a4bf344b..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.case.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.repeat.case</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.repeat.case</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws("SYNTAX_ERR", function() { ctx.createPattern(canvas, "Repeat"); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.empty.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.empty.html deleted file mode 100644 index a71908721..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.empty.html +++ /dev/null @@ -1,38 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.repeat.empty</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.repeat.empty</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> -<p class="output expectedtext">Expected output:<p><img src="/images/green-100x50.png" class="output expected" id="expected" alt=""> -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -ctx.fillStyle = '#f00'; -ctx.fillRect(0, 0, 100, 50); -var img = document.getElementById('green-1x1.png'); -var pattern = ctx.createPattern(img, ""); -ctx.fillStyle = pattern; -ctx.fillRect(0, 0, 200, 50); - -_assertPixel(canvas, 1,1, 0,255,0,255, "1,1", "0,255,0,255"); -_assertPixel(canvas, 98,1, 0,255,0,255, "98,1", "0,255,0,255"); -_assertPixel(canvas, 1,48, 0,255,0,255, "1,48", "0,255,0,255"); -_assertPixel(canvas, 98,48, 0,255,0,255, "98,48", "0,255,0,255"); - - -}); -</script> -<img src="/images/green-1x1.png" id="green-1x1.png" class="resource"> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.null.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.null.html deleted file mode 100644 index 25caf6c2e..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.null.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.repeat.null</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.repeat.null</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -_assert(ctx.createPattern(canvas, null) != null, "ctx.createPattern(canvas, null) != null"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.nullsuffix.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.nullsuffix.html deleted file mode 100644 index 371304204..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.nullsuffix.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.repeat.nullsuffix</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.repeat.nullsuffix</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws("SYNTAX_ERR", function() { ctx.createPattern(canvas, "repeat\0"); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.undefined.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.undefined.html deleted file mode 100644 index 74cd84b33..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.undefined.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.repeat.undefined</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.repeat.undefined</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws("SYNTAX_ERR", function() { ctx.createPattern(canvas, undefined); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.unrecognised.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.unrecognised.html deleted file mode 100644 index ff4d50a73..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.unrecognised.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.repeat.unrecognised</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.repeat.unrecognised</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws("SYNTAX_ERR", function() { ctx.createPattern(canvas, "invalid"); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.unrecognisednull.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.unrecognisednull.html deleted file mode 100644 index 57df03be6..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.pattern.repeat.unrecognisednull.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.pattern.repeat.unrecognisednull</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.pattern.repeat.unrecognisednull</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -assert_throws("SYNTAX_ERR", function() { ctx.createPattern(canvas, "null"); }); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.strokeStyle.default.html b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.strokeStyle.default.html deleted file mode 100644 index 6e07d6086..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/2d.strokeStyle.default.html +++ /dev/null @@ -1,27 +0,0 @@ -<!DOCTYPE html> -<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. --> -<title>Canvas test: 2d.strokeStyle.default</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<script src="/common/canvas-tests.js"></script> -<link rel="stylesheet" href="/common/canvas-tests.css"> -<body class="show_output"> - -<h1>2d.strokeStyle.default</h1> -<p class="desc"></p> - - -<p class="output">Actual output:</p> -<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> - -<ul id="d"></ul> -<script> -var t = async_test(""); -_addTest(function(canvas, ctx) { - -_assertSame(ctx.strokeStyle, '#000000', "ctx.strokeStyle", "'#000000'"); - - -}); -</script> - diff --git a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htm b/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htm deleted file mode 100644 index 5b77c98de..000000000 --- a/testing/web-platform/tests/2dcontext/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htm +++ /dev/null @@ -1,59 +0,0 @@ -<!doctype HTML> -<html> - <head> - <title>HTML5 Canvas Test: createlinearGradient() with two points same</title> - <script src="/resources/testharness.js"></script> - <script src="/resources/testharnessreport.js"></script> - <link rel="author" title="Microsoft" href="http://www.microsoft.com" /> - <link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-createlineargradient" /> - <meta name="assert" content="If the two points in a linear gradient have identical x,y coordinates, the canvas must paint nothing." /> - <script type="text/javascript"> - async_test(function(t) { - window.addEventListener("load", t.step_func_done(function runTest() { - var canvas = document.getElementById("canvas1"); - var ctx = canvas.getContext("2d"); - var width = canvas.width; - var height = canvas.height; - - // Start by drawing a left to right, green-to-blue linear gradient. - var lingrad = ctx.createLinearGradient(0, 50, 100, 50); - lingrad.addColorStop(0, "rgba(0, 255, 0, 1.0)"); - lingrad.addColorStop(1, "rgba(0, 0, 255, 1.0)"); - ctx.fillStyle = lingrad; - ctx.fillRect(0, 0, 100, 50); - - // Get the current state of the canvas - var initial = ctx.getImageData(0, 0, width, height); - - // Nothing must be drawn if the two points in the linear gradient are the same. - lingrad = ctx.createLinearGradient(100, 100, 100, 100); - lingrad.addColorStop(0, "rgba(255, 0, 0, 1.0)"); - lingrad.addColorStop(1, "rgba(255, 0, 0, 1.0)"); - ctx.fillStyle = lingrad; - ctx.fillRect(0, 0, 300, 150); - - // Check that nothing is drawn. - var after = ctx.getImageData(0, 0, width, height); - - // Asserts - assert_equals(initial.width, after.width, "widths are equal"); - assert_equals(initial.height, after.height, "heights are equal"); - assert_array_equals(initial.data, after.data, "data are equal"); - - for (var i = 0; i < after.data.length; i += 4) { - var r = after.data[i]; - var g = after.data[i+1]; - var b = after.data[i+2]; - var a = after.data[i+3]; - assert_false(r == 0xFF && g == 0 && b == 0 && a == 0xFF, "no red"); - } - })); - }, "linear gradient from point to self draws nothing"); - </script> - </head> - <body> - <p>Description: If the two points in a linear gradient have identical x,y coordinates, the canvas must paint nothing.</p> - <p>Test passes if there is one left-to-right, green-to-blue linear gradient seen on the page and no red is seen on the page.</p> - <canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> - </body> -</html> |