Commit 4aff4a89 authored by Yi Xu's avatar Yi Xu Committed by Commit Bot

Move canvas-api/unclosed-canvas.* to wpt

Bug: 1071659

Change-Id: Ife29376566fc1c6cadabef2f8a9040bbd208842f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209522Reviewed-by: default avatarAaron Krajeski <aaronhk@chromium.org>
Commit-Queue: Yi Xu <yiyix@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770843}
parent fb0d03d4
......@@ -404,8 +404,6 @@ fast/canvas/color-space/imageData-colorSpace.html
fast/canvas/feimage-with-foreignobject-taint-canvas-2.html
fast/canvas/imagebitmap/transferFromImageBitmap-drawImage.html
fast/canvas/script-inside-canvas-fallback.html
fast/canvas-api/unclosed-canvas-1.html
fast/canvas-api/unclosed-canvas-2.html
fast/constructors/blob-sparse-array-assertion-failure.html
fast/constructors/constructor-as-function-crash.html
fast/cpu/hardware-concurrency.html
......
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element.
The canvas is never closed, and the rest of the body ends up inside it.</p>
</body>
</html>
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
<link rel="match" href="unclosed-canvas-1-expected.htm">
<meta name="assert" content="Test what if canvas tag is unclosed in tag p" />
<script type="text/javascript"></script>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element.
The canvas is never closed, and the rest of the body ends up inside it. </p>
<canvas>This text should NOT be visible if JavaScript is enabled.
</body>
</html>
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
</head>
<body>
<div><canvas></canvas></div>
<p>This text should be visible, even though it's preceded by an unclosed canvas tag,
because of the &lt;/div&gt; that closes an element opened before the canvas.
There's nothing special about div; we get the same results with other types of
elements.
</p>
</body>
</html>
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
<link rel="match" href="unclosed-canvas-2-expected.htm">
<meta name="assert" content="Test what if canvas tag is unclosed in tag div" />
<script type="text/javascript"></script>
</head>
<body>
<div><canvas></div>
<p>This text should be visible, even though it's preceded by an unclosed canvas tag,
because of the &lt;/div&gt; that closes an element opened before the canvas.
There's nothing special about div; we get the same results with other types of elements.</p>
</body>
</html>
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element
and the &lt;/div&gt; that's also inside the canvas element does not close an open
element. The canvas is never closed, and the rest of the body ends up inside it.
There's nothing special about div; we get the same results with other types of
elements.</p>
</body>
</html>
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
<link rel="match" href="unclosed-canvas-3-expected.htm">
<meta name="assert" content="Test what if canvas tag is unclosed in unclosed div" />
<script type="text/javascript"></script>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element
and the &lt;/div&gt; that's also inside the canvas element does not close an open element.
The canvas is never closed, and the rest of the body ends up inside it.
There's nothing special about div; we get the same results with other types of elements.</p>
<canvas></div>This text should NOT be visible if JavaScript is enabled.
</body>
</html>
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element
and the &lt;/div&gt; that's also inside the canvas element does not close an open
element. The canvas is never closed, and the rest of the body ends up inside it.
There's nothing special about div; we get the same results with other types of
elements. The fact that the canvas tag uses XML self-closing syntax has no effect.
</p>
</body>
</html>
<!doctype HTML>
<html>
<head>
<title>unclosed canvas tag in body</title>
<link rel="match" href="unclosed-canvas-4-expected.htm">
<meta name="assert" content="Test what if canvas tag is unclosed in body" />
<script type="text/javascript"></script>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element
and the &lt;/div&gt; that's also inside the canvas element does not close an open element.
The canvas is never closed, and the rest of the body ends up inside it.
There's nothing special about div; we get the same results with other types of elements.
The fact that the canvas tag uses XML self-closing syntax has no effect.</p>
<canvas/></div>This text should NOT be visible if JavaScript is enabled.
</body>
</html>
There should be no text below this, because the text is inside a canvas element. The canvas is never closed, and the rest of the body ends up inside it.
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element.
The canvas is never closed, and the rest of the body ends up inside it.</p>
<canvas>This text should NOT be visible if JavaScript is enabled.
</body>
This text should be visible, even though it's preceded by an unclosed canvas tag, because of the </div> that closes an element opened before the canvas. There's nothing special about div; we get the same results with other types of elements.
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<div><canvas></div>
This text should be visible, even though it's preceded by an unclosed canvas tag,
because of the &lt;/div&gt; that closes an element opened before the canvas.
There's nothing special about div; we get the same results with other types of elements.
</body>
There should be no text below this, because the text is inside a canvas element and the </div> that's also inside the canvas element does not close an open element. The canvas is never closed, and the rest of the body ends up inside it. There's nothing special about div; we get the same results with other types of elements.
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element
and the &lt;/div&gt; that's also inside the canvas element does not close an open element.
The canvas is never closed, and the rest of the body ends up inside it.
There's nothing special about div; we get the same results with other types of elements.</p>
<canvas></div>This text should NOT be visible if JavaScript is enabled.
</body>
There should be no text below this, because the text is inside a canvas element and the </div> that's also inside the canvas element does not close an open element. The canvas is never closed, and the rest of the body ends up inside it. There's nothing special about div; we get the same results with other types of elements. The fact that the canvas tag uses XML self-closing syntax has no effect.
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<p>There should be no text below this, because the text is inside a canvas element
and the &lt;/div&gt; that's also inside the canvas element does not close an open element.
The canvas is never closed, and the rest of the body ends up inside it.
There's nothing special about div; we get the same results with other types of elements.
The fact that the canvas tag uses XML self-closing syntax has no effect.</p>
<canvas/></div>This text should NOT be visible if JavaScript is enabled.
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment