| Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-canvas-element/security.pattern.canvas.timing.sub.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-canvas-element/security.pattern.canvas.timing.sub.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-canvas-element/security.pattern.canvas.timing.sub.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5f20edc857f8663bf37ddc8850ee5b1ea6c4ba83
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-canvas-element/security.pattern.canvas.timing.sub.html
|
| @@ -0,0 +1,40 @@
|
| +<!DOCTYPE html>
|
| +<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
|
| +<title>Canvas test: security.pattern.canvas.timing.sub</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>security.pattern.canvas.timing.sub</h1>
|
| +<p class="desc">Pattern safety depends on whether the source was origin-clean, not on whether it still is clean</p>
|
| +
|
| +<p class="notes">Disagrees with spec on "is" vs "was"
|
| +<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("Pattern safety depends on whether the source was origin-clean, not on whether it still is clean");
|
| +_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 p = ctx.createPattern(canvas2, 'repeat');
|
| +ctx2.drawImage(document.getElementById('yellow.png'), 0, 0); // make canvas2 origin-unclean
|
| +ctx.fillStyle = p;
|
| +ctx.fillRect(0, 0, 100, 50);
|
| +canvas.toDataURL();
|
| +ctx.getImageData(0, 0, 1, 1);
|
| +_assert(true, "true"); // okay if there was no exception
|
| +
|
| +
|
| +});
|
| +</script>
|
| +<img src="http://{{domains[www2]}}:{{ports[http][0]}}/images/yellow.png" id="yellow.png" class="resource">
|
| +
|
|
|