Bug 1353000 - Reftest to check that shaping rotated text does not disrupt non-rotated text due to cache pollution. r=jrmuizel
authorJonathan Kew <jkew@mozilla.com>
Wed, 12 Apr 2017 14:55:16 +0100
changeset 355613 7fd87238aa41ab662f6fa2c069510da449ffcef0
parent 355612 fb34b24b4cd63f732bcb001dbda047dd62044f04
child 355614 fc8dfed5a5d245c7e2c5ae93daf41ce5710bf4eb
push id89710
push userjkew@mozilla.com
push dateFri, 28 Apr 2017 19:07:37 +0000
treeherdermozilla-inbound@7fd87238aa41 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1353000
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1353000 - Reftest to check that shaping rotated text does not disrupt non-rotated text due to cache pollution. r=jrmuizel
layout/reftests/canvas/1353000-1-ref.html
layout/reftests/canvas/1353000-1.html
layout/reftests/canvas/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/canvas/1353000-1-ref.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function draw(id, r, c) {
+  var txt = "TryToTaLLY-" + id + "__________" + r;
+  var ctx = document.getElementById(id).getContext('2d');
+  ctx.font = '15px Arial';
+  ctx.fillStyle = c;
+  if (r) {
+      ctx.save();
+      ctx.rotate(Math.PI / 4);
+      ctx.fillText(txt, 200, 0);
+      ctx.restore();
+  }
+  ctx.fillText(txt, 10, 20);
+}
+</script>
+<style>
+canvas { border: 1px solid silver; margin: 10px; }
+</style>
+</head>
+<body>
+<div style="float:left; transform: translate(300px, 150px) scale(3)">
+    <canvas id="c1" width="120" height="50"></canvas>
+</div>
+<script>
+draw("c1", false, "red");
+draw("c1", false, "green");
+</script>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/canvas/1353000-1.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function draw(id, r, c) {
+  var txt = "TryToTaLLY-" + id + "__________" + r;
+  var ctx = document.getElementById(id).getContext('2d');
+  ctx.font = '15px Arial';
+  ctx.fillStyle = c;
+  if (r) {
+      ctx.save();
+      ctx.rotate(Math.PI / 4);
+      ctx.fillText(txt, 200, 0);
+      ctx.restore();
+  }
+  ctx.fillText(txt, 10, 20);
+}
+</script>
+<style>
+canvas { border: 1px solid silver; margin: 10px; }
+</style>
+</head>
+<body>
+<div style="float:left; transform: translate(300px, 150px) scale(3)">
+    <canvas id="c1" width="120" height="50"></canvas>
+</div>
+<script>
+draw("c1", true, "red");
+draw("c1", false, "green");
+</script>
+</body>
--- a/layout/reftests/canvas/reftest.list
+++ b/layout/reftests/canvas/reftest.list
@@ -108,8 +108,9 @@ fuzzy-if(d2d,12,21) fuzzy-if(skiaContent
 == 1304353-text-global-alpha-1.html 1304353-text-global-alpha-1-ref.html
 fuzzy-if(winWidget,1,14) == 1304353-text-global-alpha-2.html 1304353-text-global-alpha-2-ref.html
 fuzzy-if(winWidget,94,1575) fuzzy-if(cocoaWidget,1,24) == 1304353-text-global-composite-op-1.html 1304353-text-global-composite-op-1-ref.html
 
 == text-indent-1a.html text-indent-1-ref.html
 == text-indent-1b.html text-indent-1-ref.html
 
 == 1347147-1.html 1347147-1-ref.html
+== 1353000-1.html 1353000-1-ref.html