add dst test
authorDan Vanderkam <danvk@google.com>
Tue, 21 Dec 2010 19:03:12 +0000 (14:03 -0500)
committerDan Vanderkam <danvk@google.com>
Tue, 21 Dec 2010 19:03:12 +0000 (14:03 -0500)
tests/daylight-savings.html [new file with mode: 0644]

diff --git a/tests/daylight-savings.html b/tests/daylight-savings.html
new file mode 100644 (file)
index 0000000..365a8b7
--- /dev/null
@@ -0,0 +1,31 @@
+<html>
+  <head>
+    <title>Daylight Savings</title>
+    <!--[if IE]>
+    <script type="text/javascript" src="../excanvas.js"></script>
+    <![endif]-->
+    <script type="text/javascript" src="../strftime/strftime-min.js"></script>
+    <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
+    <script type="text/javascript" src="../dygraph-canvas.js"></script>
+    <script type="text/javascript" src="../dygraph.js"></script>
+  </head>
+  <body>
+    <h2>DST</h2>
+    <p>This tests that tick marks don't break when the axis crosses into
+    daylight savings time.</p>
+
+    <div id="demodiv"></div>
+
+    <script type="text/javascript">
+      g = new Dygraph(
+              document.getElementById("demodiv"),
+"Date/Time,Purchases\n" +
+"2010-11-05 00:00:00,167082\n" +
+"2010-11-06 00:00:00,168571\n" +
+"2010-11-07 00:00:00,177796\n" +
+"2010-11-08 00:00:00,165587\n" +
+"2010-11-09 00:00:00,164380\n"
+          );
+    </script>
+</body>
+</html>