add "don't overflow the borders" test
authorDan Vanderkam <danvdk@gmail.com>
Sat, 29 Aug 2009 23:19:48 +0000 (23:19 +0000)
committerDan Vanderkam <danvdk@gmail.com>
Sat, 29 Aug 2009 23:19:48 +0000 (23:19 +0000)
tests/border.html [new file with mode: 0644]

diff --git a/tests/border.html b/tests/border.html
new file mode 100644 (file)
index 0000000..8fba03d
--- /dev/null
@@ -0,0 +1,24 @@
+<html>
+  <head>
+    <title>gadget border</title>
+    <!--[if IE]>
+    <script type="text/javascript" src="excanvas.js"></script>
+    <![endif]-->
+    <script type="text/javascript" src="../dygraph-combined.js"></script>
+    <script type="text/javascript" src="../dygraph.js"></script>
+    <script type="text/javascript" src="data.js"></script>
+    <style type="text/css">
+    #bordered {
+      border: 1px solid black;
+    }
+    </style>
+  </head>
+  <body>
+    <p>Hopefully this stays in its border:</p>
+    <div id="bordered" style="width:600px; height:300px;"></div>
+    <script type="text/javascript">
+    new DateGraph(document.getElementById('bordered'),
+                  data, null, {});
+    </script>
+  </body>
+</html>