Fix bug 428, add test which catches exception. What an annoying little bug.
[dygraphs.git] / tests / missing-data.html
index 7edaf0f..fd0bfbd 100644 (file)
@@ -1,13 +1,17 @@
+<!DOCTYPE html>
 <html>
   <head>
+    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
     <title>missing data</title>
     <!--[if IE]>
-    <script type="text/javascript" src="excanvas.js"></script>
+    <script type="text/javascript" src="../excanvas.js"></script>
     <![endif]-->
-    <script type="text/javascript" src="../dygraph-combined.js"></script>
-    <script type="text/javascript" src="../dygraph-canvas.js"></script>
-    <script type="text/javascript" src="../plotkit_v091/PlotKit/Layout.js"></script>
-    <script type="text/javascript" src="../dygraph.js"></script>
+    <!--
+    For production (minified) code, use:
+    <script type="text/javascript" src="dygraph-combined.js"></script>
+    -->
+    <script type="text/javascript" src="../dygraph-dev.js"></script>
+
   </head>
   <body>
     <table>
@@ -21,7 +25,7 @@
     </table>
 
     <script type="text/javascript">
-    new Dygraph(
+    g = new Dygraph(
       document.getElementById("graph"),
       "Date,GapSeries1,GapSeries2\n" +
       "2009/12/01,10,10\n" +
@@ -33,7 +37,7 @@
       "2009/12/07,12,16\n"
     );
 
-    new Dygraph(
+    g2 = new Dygraph(
       document.getElementById("graph2"),
       [
         [ new Date("2009/12/01"), 10, 10],
         [ new Date("2009/12/06"), 18, 15],
         [ new Date("2009/12/07"), 12, 16]
       ],
-      { labels: ["Date","GapSeries1","GapSeries2"] }
+      {
+        labels: ["Date","GapSeries1","GapSeries2"],
+        showRoller: true
+      }
     );
 
-    new Dygraph(
+    g3 = new Dygraph(
       document.getElementById("graph3"),
       [
         [1, [10, 2], [20, 3]],
@@ -56,7 +63,7 @@
         [4, [null, 2], [20, 3]],
         [5, [null, 2], [null, 3]],
         [6, [ 9, 2], [20, 3]],
-        [7, [10, 2], [20, 3]],
+        [7, [10, 2], [20, 3]]
       ],
       {
         errorBars: true,
@@ -64,7 +71,7 @@
       }
     );
 
-    new Dygraph(
+    g4 = new Dygraph(
       document.getElementById("graph4"),
       [
         [1, [10, 2], [20, 3]],
@@ -73,7 +80,7 @@
         [4, [null, 2], [20, 3]],
         [5, [null, 2], [null, 3]],
         [6, [ 9, 2], [20, 3]],
-        [7, [10, 2], [20, 3]],
+        [7, [10, 2], [20, 3]]
       ],
       {
         errorBars: true,