Fix bug 428, add test which catches exception. What an annoying little bug.
[dygraphs.git] / tests / daylight-savings.html
CommitLineData
54425b14 1<!DOCTYPE html>
d1bce5a0
DV
2<html>
3 <head>
10494b48 4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
d1bce5a0
DV
5 <title>Daylight Savings</title>
6 <!--[if IE]>
7 <script type="text/javascript" src="../excanvas.js"></script>
8 <![endif]-->
7e5ddc94
DV
9 <!--
10 For production (minified) code, use:
11 <script type="text/javascript" src="dygraph-combined.js"></script>
12 -->
13 <script type="text/javascript" src="../dygraph-dev.js"></script>
14
d1bce5a0
DV
15 </head>
16 <body>
17 <h2>DST</h2>
18 <p>This tests that tick marks don't break when the axis crosses into
19 daylight savings time.</p>
20
21 <div id="demodiv"></div>
22
35a3b119
DV
23 <p>The tick marks should all be on day boundaries or nice hours (6, 12, 18),
24 rather than on odd time boundaries like 5, 11, 17 and 23.</p>
25
d1bce5a0
DV
26 <script type="text/javascript">
27 g = new Dygraph(
28 document.getElementById("demodiv"),
29"Date/Time,Purchases\n" +
30"2010-11-05 00:00:00,167082\n" +
31"2010-11-06 00:00:00,168571\n" +
32"2010-11-07 00:00:00,177796\n" +
33"2010-11-08 00:00:00,165587\n" +
35a3b119
DV
34"2010-11-09 00:00:00,164380\n",
35 { width: 1024 }
d1bce5a0
DV
36 );
37 </script>
38</body>
39</html>