forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert files with only CRLF line endings to pure LF
WebIDL/tests/submissions/W3C/valid/idl/documentation-dos.widl was left as CRLF because the name makes it look intentional. 3 files with mixed line endings remain: cors/resources/cors-headers.asis html/semantics/embedded-content-0/the-canvas-element/size.attributes.parse.whitespace.html old-tests/submission/Opera/media/track/webvtt/parsing/support/newlines.vtt To verify that this commit makes no other changes: $ git diff --name-only HEAD^ | xargs unix2dos $ git diff HEAD^ # should show nothing
- Loading branch information
Showing
1,429 changed files
with
56,460 additions
and
56,460 deletions.
There are no files selected for viewing
22 changes: 11 additions & 11 deletions
22
2dcontext/building-paths/canvas_complexshapes_arcto_001-ref.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: arcTo() adds to subpath if same point</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
</head> | ||
<body> | ||
<p>Description: If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line.</p> | ||
<div><img src="/images/canvas-line.png" alt="line" /></div> | ||
</body> | ||
</html> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: arcTo() adds to subpath if same point</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
</head> | ||
<body> | ||
<p>Description: If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line.</p> | ||
<div><img src="/images/canvas-line.png" alt="line" /></div> | ||
</body> | ||
</html> |
50 changes: 25 additions & 25 deletions
50
2dcontext/building-paths/canvas_complexshapes_arcto_001.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: arcTo() adds to subpath if same point</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-arcto" /> | ||
<meta name="assert" content="If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
ctx.moveTo(0, 50); | ||
|
||
// Since (x1, y1) and (x2, y2) are the same point, (x1, y1) must be added to the subpath, thus creating a line. | ||
ctx.arcTo(100, 50, 100, 50, 10); | ||
ctx.stroke(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Description: If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line.</p> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
</html> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: arcTo() adds to subpath if same point</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-arcto" /> | ||
<meta name="assert" content="If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
ctx.moveTo(0, 50); | ||
|
||
// Since (x1, y1) and (x2, y2) are the same point, (x1, y1) must be added to the subpath, thus creating a line. | ||
ctx.arcTo(100, 50, 100, 50, 10); | ||
ctx.stroke(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Description: If x1,y1 and x2,y2 are the same point, then arcTo must add x1,y1 to the subpath, and connect that point to x0,y0 with a straight line.</p> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
</html> |
22 changes: 11 additions & 11 deletions
22
2dcontext/building-paths/canvas_complexshapes_beziercurveto_001-ref.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: bezierCurveTo() must ensure subpaths</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
</head> | ||
<body> | ||
<p>Description: bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y).</p> | ||
<div><img src='/images/smiley.png' alt='smiley' /></div> | ||
</body> | ||
</html> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: bezierCurveTo() must ensure subpaths</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
</head> | ||
<body> | ||
<p>Description: bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y).</p> | ||
<div><img src='/images/smiley.png' alt='smiley' /></div> | ||
</body> | ||
</html> |
68 changes: 34 additions & 34 deletions
68
2dcontext/building-paths/canvas_complexshapes_beziercurveto_001.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: bezierCurveTo() must ensure subpaths</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-beziercurveto" /> | ||
<meta name="assert" content="bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y)." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// Since the canvas has no subpaths, a virtual moveTo must be performed to (65,25) before creating the bezier. | ||
ctx.bezierCurveTo(65, 25, 65, 25, 65, 65); | ||
ctx.stroke(); | ||
ctx.beginPath(); | ||
|
||
// Since the canvas has no subpaths, a virtual moveTo must be performed to (35,25) before creating the bezier. | ||
ctx.bezierCurveTo(35, 25, 35, 25, 35, 65); | ||
ctx.stroke(); | ||
ctx.beginPath(); | ||
|
||
// Since the canvas has no subpaths, a virtual moveTo must be performed to (0,75) before creating the bezier. | ||
ctx.bezierCurveTo(0, 75, 50, 150, 100, 75); | ||
ctx.stroke(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Description: bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y).</p> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
</html> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: bezierCurveTo() must ensure subpaths</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-beziercurveto" /> | ||
<meta name="assert" content="bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y)." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// Since the canvas has no subpaths, a virtual moveTo must be performed to (65,25) before creating the bezier. | ||
ctx.bezierCurveTo(65, 25, 65, 25, 65, 65); | ||
ctx.stroke(); | ||
ctx.beginPath(); | ||
|
||
// Since the canvas has no subpaths, a virtual moveTo must be performed to (35,25) before creating the bezier. | ||
ctx.bezierCurveTo(35, 25, 35, 25, 35, 65); | ||
ctx.stroke(); | ||
ctx.beginPath(); | ||
|
||
// Since the canvas has no subpaths, a virtual moveTo must be performed to (0,75) before creating the bezier. | ||
ctx.bezierCurveTo(0, 75, 50, 150, 100, 75); | ||
ctx.stroke(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Description: bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) must ensure there is a subpath for the point (cp1x,cp1y) if the context has no subpaths, then it must connect the last point in the subpath to the point (x,y).</p> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
</html> |
22 changes: 11 additions & 11 deletions
22
2dcontext/compositing/canvas_compositing_globalcompositeoperation_001-ref.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: globalCompositeOperation "destination-over"</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
</head> | ||
<body> | ||
<p>Description: If the globalCompositeOperation is set to "destination-over", display the destination image wherever the destination image is opaque.</p> | ||
<div><img alt='black rectangle' src="/images/black-rectangle.png"></div> | ||
</body> | ||
</html> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: globalCompositeOperation "destination-over"</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
</head> | ||
<body> | ||
<p>Description: If the globalCompositeOperation is set to "destination-over", display the destination image wherever the destination image is opaque.</p> | ||
<div><img alt='black rectangle' src="/images/black-rectangle.png"></div> | ||
</body> | ||
</html> |
62 changes: 31 additions & 31 deletions
62
2dcontext/compositing/canvas_compositing_globalcompositeoperation_001.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: globalCompositeOperation "destination-over"</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-globalcompositeoperation" /> | ||
<meta name="assert" content="If the globalCompositeOperation is set to 'destination-over', display the destination image wherever the destination image is opaque." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// Source image. | ||
ctx.fillStyle = "rgba(0, 0, 0, 1.0)"; | ||
ctx.fillRect(0, 0, 100, 50); | ||
|
||
// Assign the globalCompositeOperation. | ||
ctx.globalCompositeOperation = "destination-over"; | ||
|
||
// Destination image. | ||
ctx.fillStyle = "rgba(255, 0, 0, 1.0)"; | ||
ctx.fillRect(0, 0, 100, 50); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Description: If the globalCompositeOperation is set to "destination-over", display the destination image wherever the destination image is opaque.</p> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
</html> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: globalCompositeOperation "destination-over"</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-globalcompositeoperation" /> | ||
<meta name="assert" content="If the globalCompositeOperation is set to 'destination-over', display the destination image wherever the destination image is opaque." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// Source image. | ||
ctx.fillStyle = "rgba(0, 0, 0, 1.0)"; | ||
ctx.fillRect(0, 0, 100, 50); | ||
|
||
// Assign the globalCompositeOperation. | ||
ctx.globalCompositeOperation = "destination-over"; | ||
|
||
// Destination image. | ||
ctx.fillStyle = "rgba(255, 0, 0, 1.0)"; | ||
ctx.fillRect(0, 0, 100, 50); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<p>Description: If the globalCompositeOperation is set to "destination-over", display the destination image wherever the destination image is opaque.</p> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
</html> |
62 changes: 31 additions & 31 deletions
62
2dcontext/drawing-paths-to-the-canvas/canvas_complexshapes_ispointInpath_001.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: isPointInPath() unaffected by the current transformation matrix</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-ispointinpath" /> | ||
<meta name="assert" content="isPointInPath must check the point (x, y) as coordinates unaffected by the current transformation matrix." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// Create a path that is transformed by a translation transformation matrix. | ||
ctx.translate(100, 50); | ||
ctx.rect(0, 0, 100, 50); | ||
|
||
// Ensure that the coordinates passed to isPointInPath are unaffected by the current transformation matrix. | ||
if (ctx.isPointInPath(125, 75) && !ctx.isPointInPath(25, 25)) | ||
{ | ||
document.getElementById("testresult").firstChild.data = "PASS"; | ||
} | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest();"> | ||
<p>Description: isPointInPath must check the point (x, y) as coordinates unaffected by the current transformation matrix.</p> | ||
<p>Test passes if the word "PASS" appears below.</p> | ||
<div id="testresult">FAIL</div> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: isPointInPath() unaffected by the current transformation matrix</title> | ||
<link rel="author" title="Microsoft" href="http://www.microsoft.com" /> | ||
<link rel="help" href="http://www.w3.org/TR/2dcontext/#dom-context-2d-ispointinpath" /> | ||
<meta name="assert" content="isPointInPath must check the point (x, y) as coordinates unaffected by the current transformation matrix." /> | ||
<script type="text/javascript"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// Create a path that is transformed by a translation transformation matrix. | ||
ctx.translate(100, 50); | ||
ctx.rect(0, 0, 100, 50); | ||
|
||
// Ensure that the coordinates passed to isPointInPath are unaffected by the current transformation matrix. | ||
if (ctx.isPointInPath(125, 75) && !ctx.isPointInPath(25, 25)) | ||
{ | ||
document.getElementById("testresult").firstChild.data = "PASS"; | ||
} | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest();"> | ||
<p>Description: isPointInPath must check the point (x, y) as coordinates unaffected by the current transformation matrix.</p> | ||
<p>Test passes if the word "PASS" appears below.</p> | ||
<div id="testresult">FAIL</div> | ||
<canvas id="canvas1" width="300" height="150">Browser does not support HTML5 Canvas.</canvas> | ||
</body> | ||
</html> |
68 changes: 34 additions & 34 deletions
68
2dcontext/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: createlinearGradient() with two points same</title> | ||
<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"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// 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); | ||
|
||
// 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); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<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> | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>HTML5 Canvas Test: createlinearGradient() with two points same</title> | ||
<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"> | ||
function runTest() | ||
{ | ||
var canvas = document.getElementById("canvas1"); | ||
var ctx = canvas.getContext("2d"); | ||
|
||
// 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); | ||
|
||
// 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); | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
<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> |
Oops, something went wrong.