Skip to content

Commit

Permalink
Remove the <body> tags from WPT canvas layer tests, in accordance to …
Browse files Browse the repository at this point in the history
…recommended style.

"Note that, in order to follow the minimality guideline, the test omits the tags <html>, <head>, and <body>, as they can be inferred by the HTML parser."
https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/testing/writing_web_tests.md#javascript-tests

Change-Id: Iaf9624a723fcd46a9f687f2547eada148df6b03f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3705996
Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1014639}
  • Loading branch information
graveljp authored and chromium-wpt-export-bot committed Jun 15, 2022
1 parent 9c5cc7e commit ea1d49a
Show file tree
Hide file tree
Showing 30 changed files with 0 additions and 60 deletions.
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-alpha-expected.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for alpha. </p>
<script>
var canvas, ctx;
Expand All @@ -22,4 +21,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works when both alpha and filter are applied. </p>
<script>
var canvas, ctx;
Expand All @@ -23,4 +22,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works with global alpha, filter, and global composite operation. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -27,4 +26,3 @@
ctx.drawImage(canvas2,0,0);

</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-alpha-filter-globalcompositeoperation-expected.html">
<body>
<p class="desc"> Test to ensure beginlayer works with global alpha, filter, and global composite operation. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -27,4 +26,3 @@

ctx.endLayer();
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for filter, alpha and shadow. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -26,4 +25,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<link rel="match" href="layers-alpha-filter-shadow-expected.html">
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-18000">
<body>
<p class="desc"> Test to ensure beginlayer works for filter, alpha and shadow. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -29,4 +28,3 @@
ctx.endLayer();

</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-alpha-filter.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-alpha-filter-expected.html">
<body>
<p class="desc"> Test to ensure beginlayer works when both alpha and filter are applied. </p>
<script>
var canvas, ctx;
Expand All @@ -23,4 +22,3 @@

ctx.endLayer();
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for alpha and shadow. </p>
<script>
var canvas, ctx;
Expand All @@ -25,4 +24,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-alpha-shadow.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<link rel="match" href="layers-alpha-shadow-expected.html">
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-18000">
<body>
<p class="desc"> Test to ensure beginlayer works for alpha and shadow. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -28,4 +27,3 @@
ctx.endLayer();

</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-alpha.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-alpha-expected.html">
<body>
<p class="desc"> Test to ensure beginlayer works for alpha. </p>
<script>
var canvas, ctx;
Expand All @@ -24,4 +23,3 @@
ctx.endLayer();

</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> A test to make sure an unmatched endLayer is a no-op and has no effect on the code following it. </p>
<script>
var canvas, ctx;
Expand All @@ -23,4 +22,3 @@
ctx.endLayer();

</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-endlayer-noop.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-endlayer-noop-expected.html">
<body>
<p class="desc"> A test to make sure an unmatched endLayer is a no-op and has no effect on the code following it. </p>
<script>
var canvas, ctx;
Expand All @@ -26,4 +25,3 @@
ctx.endLayer();

</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-filter-expected.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for filter. </p>
<script>
var canvas, ctx;
Expand All @@ -22,4 +21,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for filter and global composition. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -27,4 +26,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-filter-globalcompositeoperation-expected.html">
<body>
<p class="desc"> Test to ensure beginlayer works for filter and global composition. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -27,4 +26,3 @@

ctx.endLayer();
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for filter and shadow. </p>
<script>
var canvas, ctx;
Expand All @@ -25,4 +24,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-filter-shadow.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-filter-shadow-expected.html">
<body>
<p class="desc"> Test to ensure beginlayer works for filter and shadow. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -27,4 +26,3 @@
ctx.endLayer();

</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-filter.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-filter-expected.html">
<body>
<p class="desc"> Test to ensure beginlayer works for filter. </p>
<script>
var canvas, ctx;
Expand All @@ -22,4 +21,3 @@

ctx.endLayer();
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for globalCompositeOperation. </p>
<script>
var canvas, ctx;
Expand All @@ -22,4 +21,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-globalcompositeoperation-expected.html">
<body>
<p class="desc"> Test to ensure beginlayer works for globalCompositeOperation. </p>
<script>
var canvas, ctx;
Expand All @@ -24,4 +23,3 @@
ctx.endLayer();

</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> A test to make sure a single endLayer with no beginLayer is a no-op. </p>
<script>
var canvas, ctx;
Expand All @@ -17,4 +16,3 @@
ctx.fillStyle = 'rgba(0,255,0,1)';
ctx.fillRect(70,70,75,50);
</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-loneendlayer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-loneendlayer-expected.html">
<body>
<p class="desc"> A test to make sure a single endLayer with no beginLayer is a no-op. </p>
<script>
var canvas, ctx;
Expand All @@ -20,4 +19,3 @@

ctx.endLayer();
</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-nested-expected.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<script>
var canvas, ctx;
canvas = document.createElement("canvas");
Expand Down Expand Up @@ -33,4 +32,3 @@
ctx2.drawImage(canvas3,0,0);
ctx.drawImage(canvas2,0,0);
</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-nested.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<link rel="match" href="layers-nested-expected.html">
<meta name=fuzzy content="maxDifference=0-2; totalPixels=0-14000">
<body>
<script>
var canvas, ctx;
canvas = document.createElement("canvas");
Expand Down Expand Up @@ -33,4 +32,3 @@
ctx.endLayer();
ctx.endLayer();
</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test that ensure layers restores style values upon endLayer. </p>
<script>
var canvas, ctx;
Expand All @@ -22,4 +21,3 @@
ctx.fillRect(70,70,75,50);

</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-restorestyle.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<link rel="match" href="layers-restorestyle-expected.html">
<meta name=fuzzy content="maxDifference=0-1; totalPixels=0-14000">
<body>
<p class="desc"> Test that ensure layers restores style values upon endLayer. </p>
<script>
var canvas, ctx;
Expand All @@ -24,4 +23,3 @@
ctx.fillRect(70,70,75,50);

</script>
</body>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> Test to ensure beginlayer works for filter, alpha and shadow, even with consecutive layers. </p>
<script>
var canvas;
Expand Down Expand Up @@ -32,4 +31,3 @@
ctx.drawImage(canvas2[i],i,i);
}
</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-several-complex.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<link rel="match" href="layers-several-complex-expected.html">
<meta name=fuzzy content="maxDifference=0-3; totalPixels=0-19000">
<body>
<p class="desc"> Test to ensure beginlayer works for filter, alpha and shadow, even with consecutive layers. </p>
<script>
var canvas, ctx;
Expand Down Expand Up @@ -32,4 +31,3 @@
}

</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-shadow-expected.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<body>
<p class="desc"> A test to make sure shadow works with layers. </p>
<script>
var canvas, ctx;
Expand All @@ -24,4 +23,3 @@

ctx.drawImage(canvas2,0,0);
</script>
</body>
2 changes: 0 additions & 2 deletions html/canvas/element/manual/layers/layers-shadow.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<link rel="match" href="layers-shadow-expected.html">
<body>
<p class="desc"> A test to make sure shadow works with layers. </p>
<script>

Expand Down Expand Up @@ -27,4 +26,3 @@
ctx.endLayer();

</script>
</body>

0 comments on commit ea1d49a

Please sign in to comment.