bug 360293 - crash test by Vladimir Vukicevic.
authorBob Clary <bclary@bclary.com>
Fri, 24 Apr 2009 10:08:16 -0700
changeset 27761 b12e996f5d7a642e43e92f13e847206c02fc0807
parent 27760 757f02fc2849e49bd7558b33bca240272ad84615
child 27762 ee906e3cb0200373c2a2efee2c25674d6381a438
push id6720
push userbclary@mozilla.com
push dateFri, 24 Apr 2009 17:10:36 +0000
treeherdermozilla-central@a1e84240b5c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs360293
milestone1.9.2a1pre
bug 360293 - crash test by Vladimir Vukicevic.
content/canvas/crashtests/360293-1.html
content/canvas/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/content/canvas/crashtests/360293-1.html
@@ -0,0 +1,35 @@
+<html>
+
+
+<body>
+ Firefox: <a href="javascript:noCrash()">no crash</a> | <a href="javascript:crash()">crash</a><br/>
+ <canvas id="foo" width="200" height="200">
+ </canvas>
+ <script>
+   function d(lineWidth){
+    var c = document.getElementById("foo").getContext("2d")
+    c.clearRect(0,0,200,200)
+    c.lineWidth = lineWidth
+    c.beginPath()
+    c.arc(100,100,80, Math.PI, 2*Math.PI, 1)
+    c.stroke()
+    c.beginPath()
+    c.arc(50,50, 20, 0, 2*Math.PI, 1)
+    c.stroke()
+    c.beginPath()
+    c.arc(150,50, 20, 0, 2*Math.PI, 1)
+    c.stroke()
+   }
+   function noCrash() {
+     d(Math.random()*20+5)
+   }
+   function crash() {
+     d( '_' )
+   }
+
+   crash();
+ </script>
+
+</body>
+
+</html>
--- a/content/canvas/crashtests/crashtests.list
+++ b/content/canvas/crashtests/crashtests.list
@@ -1,1 +1,2 @@
+load 360293-1.html
 load 421715-1.html