Fix inclusive vs. exclusive error in binary search.
[dygraphs.git] / auto_tests / misc / local.html
1 <!-- A local source file that allows dygraph developers to test locally. -->
2 <html>
3 <head>
4 <!-- Standard Dygraph scripts -->
5 <script type="text/javascript" src="../../dygraph-dev.js"></script>
6 <script type="text/javascript" src="../../extras/smooth-plotter.js"></script>
7
8 <!-- Scripts for library support -->
9 <script type="text/javascript" src="../lib/jquery-1.4.2.js"></script>
10 <script type="text/javascript" src="../lib/Asserts.js"></script>
11 <script type="text/javascript" src="fake-jstestdriver.js"></script>
12 <script type="text/javascript" src="../tests/Proxy.js"></script>
13 <script type="text/javascript" src="../tests/CanvasAssertions.js"></script>
14 <script type="text/javascript" src="../tests/DygraphOps.js"></script>
15 <script type="text/javascript" src="../tests/PixelSampler.js"></script>
16 <script type="text/javascript" src="../tests/Util.js"></script>
17 <script type="text/javascript" src="local.js"></script>
18
19 <!-- Scripts for automated tests -->
20 <script type="text/javascript" src="../tests/annotations.js"></script>
21 <script type="text/javascript" src="../tests/axis_labels.js"></script>
22 <script type="text/javascript" src="../tests/axis_labels-deprecated.js"></script>
23 <script type="text/javascript" src="../tests/callback.js"></script>
24 <script type="text/javascript" src="../tests/connect_separated_points.js"></script>
25 <script type="text/javascript" src="../tests/css.js"></script>
26 <script type="text/javascript" src="../tests/custom_bars.js"></script>
27 <script type="text/javascript" src="../tests/date_formats.js"></script>
28 <script type="text/javascript" src="../tests/date_ticker.js"></script>
29 <script type="text/javascript" src="../tests/dygraph-options-tests.js"></script>
30 <script type="text/javascript" src="../tests/error_bars.js"></script>
31 <script type="text/javascript" src="../tests/fill_step_plot.js"></script>
32 <script type="text/javascript" src="../tests/formats.js"></script>
33 <script type="text/javascript" src="../tests/grid_per_axis.js"></script>
34 <script type="text/javascript" src="../tests/interaction_model.js"></script>
35 <script type="text/javascript" src="../tests/missing_points.js"></script>
36 <script type="text/javascript" src="../tests/multi_csv.js"></script>
37 <script type="text/javascript" src="../tests/multiple_axes.js"></script>
38 <script type="text/javascript" src="../tests/no_hours.js"></script>
39 <script type="text/javascript" src="../tests/numeric_ticker.js"></script>
40 <script type="text/javascript" src="../tests/parser.js"></script>
41 <script type="text/javascript" src="../tests/pathological_cases.js"></script>
42 <script type="text/javascript" src="../tests/per_axis.js"></script>
43 <script type="text/javascript" src="../tests/per_series.js"></script>
44 <script type="text/javascript" src="../tests/plugins.js"></script>
45 <script type="text/javascript" src="../tests/range_selector.js"></script>
46 <script type="text/javascript" src="../tests/range_tests.js"></script>
47 <script type="text/javascript" src="../tests/rolling_average.js"></script>
48 <script type="text/javascript" src="../tests/sanity.js"></script>
49 <script type="text/javascript" src="../tests/scientific_notation.js"></script>
50 <script type="text/javascript" src="../tests/scrolling_div.js"></script>
51 <script type="text/javascript" src="../tests/selection.js"></script>
52 <script type="text/javascript" src="../tests/simple_drawing.js"></script>
53 <script type="text/javascript" src="../tests/step_plot_per_series.js"></script>
54 <script type="text/javascript" src="../tests/stacked.js"></script>
55 <script type="text/javascript" src="../tests/to_dom_coords.js"></script>
56 <script type="text/javascript" src="../tests/resize.js"></script>
57 <script type="text/javascript" src="../tests/plugins_legend.js"></script>
58 <script type="text/javascript" src="../tests/two_digit_years.js"></script>
59 <script type="text/javascript" src="../tests/hidpi.js"></script>
60 <script type="text/javascript" src="../tests/smooth_plotter.js"></script>
61 <script type="text/javascript" src="../tests/fast_canvas_proxy.js"></script>
62 <script type="text/javascript" src="../tests/update_options.js"></script>
63 <script type="text/javascript" src="../tests/update_while_panning.js"></script>
64 <script type="text/javascript" src="../tests/utils_test.js"></script>
65
66 <style type="text/css">
67 .pass .outcome {
68 color: green;
69 }
70
71 .fail .outcome {
72 color: red;
73 }
74
75 /* Broken: the active anchor isn't gray. Why not? */
76 #results .activeAnchor {
77 color: grey;
78 }
79
80 #results a {
81 text-decoration: none;
82 }
83
84 #results a:visited {
85 color: blue;
86 text-decoration: none;
87 }
88
89 #results a:hover {
90 color: blue;
91 text-decoration: underline;
92 }
93 </style>
94 </head>
95 <body>
96 <div id='graph'></div>
97 <div id="selector"></div>
98 <p>This file is really nothing more than all the tests coalesced into a single
99 HTML file. To run a test, use the selector above, or
100 open a Javascript console and execute, for instance,</p>
101 <code>testDrawSimpleRangePlusOne()</code>
102
103 <p>Alternatively you can use query args: <ul>
104 <li>testCase - for the name of the test case prototype
105 <li>testCaseName - for the name of the test case
106 <li>test - for the name of the test (use command=runTest)
107 <li>command - either runTest or runAllTests.
108 </ul>
109 Example: <code>local.html?testCase=ScrollingDivTestCase&test=testNestedDiv_Scrolled&command=runTest</code>
110 <p/>
111 </body>
112 <script type="text/javascript">
113 var tester = new DygraphsLocalTester();
114 // tester.overrideWarn(); // uncomment if you want warnings to be errors.
115 tester.processVariables();
116 addGlobalTestSymbols();
117 tester.run();
118 </script>
119 </html>