projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #674 from danvk/module
[dygraphs.git]
/
tests
/
dashed-canvas.html
diff --git
a/tests/dashed-canvas.html
b/tests/dashed-canvas.html
index
dc472fa
..
c80b3fc
100644
(file)
--- a/
tests/dashed-canvas.html
+++ b/
tests/dashed-canvas.html
@@
-1,7
+1,4
@@
<html>
<html>
-<head>
- <script src="../dashed-canvas.js"></script>
-</head>
<body>
<p>You should see solid black and blue lines with a dashed red line in between
them:</p>
<body>
<p>You should see solid black and blue lines with a dashed red line in between
them:</p>
@@
-25,7
+22,8
@@
ctx.lineTo(580, 200);
ctx.stroke();
// Draw a dashed line segment.
ctx.stroke();
// Draw a dashed line segment.
-ctx.installPattern([10, 10]);
+// ctx.installPattern([10, 10]);
+ctx.setLineDash([10, 10]);
ctx.strokeStyle = 'red';
ctx.beginPath();
ctx.moveTo(100, 50);
ctx.strokeStyle = 'red';
ctx.beginPath();
ctx.moveTo(100, 50);
@@
-42,7
+40,8
@@
ctx2.moveTo(100, 50);
ctx2.lineTo(600, 50);
ctx2.stroke();
ctx2.lineTo(600, 50);
ctx2.stroke();
-ctx.uninstallPattern();
+// ctx.uninstallPattern();
+ctx.setLineDash([]);
// Now that we've uninstalled the pattern, should be normal again.
ctx.strokeStyle = 'blue';
// Now that we've uninstalled the pattern, should be normal again.
ctx.strokeStyle = 'blue';