Skip to content

Commit

Permalink
Revert unnecessary changes to canvas image drawing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Apr 21, 2017
1 parent 533853f commit ea3dc71
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 33 deletions.
22 changes: 11 additions & 11 deletions tests/wpt/metadata/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -130814,27 +130814,27 @@
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_1.html": [
"461f306d3083248243d7e5a4aac376be59adefd3",
"4cf7e12dd343026fdca5c4ace01350611462c427",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_10.html": [
"970d92ab928086b48dce22c2a873a0e5adde1355",
"38bb230bfd728aa83b2fdc42399c636752c0566d",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_10_ref.html": [
"9a70c803aaf5bd8a843b18d6d16779575d4dc6f8",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_11.html": [
"9faf39bcfb3ed5f86b78fabcb8566386ca519b6e",
"1f2b7cc7812397f72027be9eac72c9c82d4b56ee",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_11_ref.html": [
"b51c787c97490eed29787cadf62b0c5e5cbd9180",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_12.html": [
"8f4e8952d6959d7ad3c32ca02a6b91eb29c9bc28",
"aa347c02404b76ced3e655ac1761c28992aa028c",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_12_ref.html": [
Expand Down Expand Up @@ -130870,55 +130870,55 @@
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_2.html": [
"310d7bf19699754d6248599820e17850f0a8de2c",
"0c897c0461b9d10b8a37d35c522f4e5a03bbc4e2",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_2_ref.html": [
"a95c84aace62371b4a58c381acaab51499cdeedb",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_3.html": [
"368a40dff341c6677a23c5ffeb4a69dc447360e6",
"d432916c8acf40cf690798c1f674ad2eda0119aa",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_3_ref.html": [
"59d699ac4347a4af4246c0333e14a91a201da15c",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_4.html": [
"a0aa4f32aeb8b0b4178b0efa1446455387f281eb",
"567cdc9438977c4d2e0eeccb939ec0665eb74465",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_4_ref.html": [
"6204815172949961351ea34906f99d05063bc78f",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_5.html": [
"7d92f1f10e7bc29564d7a8b8e49d42f552ad0782",
"c0c2b5bc706030695e1353bd82ab5ab5bc5907a8",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_5_ref.html": [
"5554083bf4b74facca2670cd28d1a57449931334",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_6.html": [
"c60e69eaf1e92c6e2cd53936e52683054fbddd32",
"46e38d00ab7281af843982fd78810ed2d038180a",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_6_ref.html": [
"359acc11d83341062450e86162d831a9fc1ae158",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_7.html": [
"d305b82f0329bbedd5e950287619e8a7dc926536",
"7ec5d8007e4b2f823abb41724f7462de82ce8fa1",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_7_ref.html": [
"53efd12eca32f7898ddeabdca9b2e61f952b296d",
"support"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_8.html": [
"00a95cb5ad9f256101ea65f296a201d7074ef9f5",
"d96f3c4b998ff31694f59ba4026d893c9d5b7114",
"reftest"
],
"2dcontext/drawing-images-to-the-canvas/drawimage_html_image_8_ref.html": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_1_ref.html>
<style>
Expand Down Expand Up @@ -27,6 +27,5 @@
// 2 arguments, the dest origin is 0,0
// The source canvas will copied to the 0,0 position of the destination canvas
destCtx.drawImage(sourceImg, 0, 0);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_10_ref.html>
<style>
Expand Down Expand Up @@ -31,6 +31,5 @@
// as if the destination was an infinite canvas
// whose rendering was clipped to the dimensions of the scratch bitmap.
destCtx.drawImage(sourceImg, 0, 0, 512, 512, 0, 0, 256, 256);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_11_ref.html>
<style>
Expand Down Expand Up @@ -29,6 +29,5 @@
// The source area is clipped to fit the source image
// and the destination are is clipped in the same proportion
destCtx.drawImage(sourceImg, 0, 0, 2048, 2048, 0, 0, 800, 800);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_12_ref.html>
<style>
Expand Down Expand Up @@ -29,6 +29,5 @@
// The source area is clipped to fit the source image
// and the destination area is clipped in the same proportion
destCtx.drawImage(sourceImg, -25, -25, 50, 50, 0, 0, 50, 50);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_2_ref.html>
<style>
Expand Down Expand Up @@ -28,6 +28,5 @@
// 2 arguments, the dest origin is not 0,0
// The source image will copied to the 25, 25 position of the destination canvas
destCtx.drawImage(sourceImg, 25, 25);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_3_ref.html>
<style>
Expand Down Expand Up @@ -28,6 +28,5 @@
// The source canvas will copied to the 50, 50 position of the destination canvas and
// on an area of 50x50 pixels
destCtx.drawImage(sourceImg, 50, 50, 50, 50);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_4_ref.html>
<style>
Expand Down Expand Up @@ -29,6 +29,5 @@
// The source canvas will copied to the 50,50 position of the destination canvas
// and it will be shrunk to a and area of 16x16
destCtx.drawImage(sourceImg, 50, 50, 16, 16);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_5_ref.html>
<style>
Expand Down Expand Up @@ -28,6 +28,5 @@
// over an area of 64x32 pixels
// The copied image will be distorted along the x axis
destCtx.drawImage(sourceImg, 50, 50, 64, 32);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_6_ref.html>
<style>
Expand Down Expand Up @@ -29,6 +29,5 @@
// An area of 32x32 pixels of the source image will be copied to
// an area of 32x32 pixels of the destination canvas
destCtx.drawImage(sourceImg, 0, 0, 32, 32, 0, 0, 32, 32);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_7_ref.html>
<style>
Expand Down Expand Up @@ -29,6 +29,5 @@
// An area of 32x32 pixels of the source image will be copied to
// an area of 32x32 pixels of the destination canvas in the position 32,32
destCtx.drawImage(sourceImg, 0, 0, 32, 32, 32, 32, 32, 32);
document.documentElement.classList.remove('reftest-wait');
}
</script>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html>
<meta charset="utf-8">
<link rel=match href=drawimage_html_image_8_ref.html>
<style>
Expand Down Expand Up @@ -29,6 +29,5 @@
// The source area is clipped to fit the source image
// and the destination are is clipped in the same proportion
destCtx.drawImage(sourceImg, 32, 32, 32, 32, 0, 0, 32, 32);
document.documentElement.classList.remove('reftest-wait');
}
</script>

0 comments on commit ea3dc71

Please sign in to comment.