Commit | Line | Data |
---|---|---|
7165f97b | 1 | <!-- A local source file that allows dygraph developers to test locally. --> |
644eff8b RK |
2 | <html> |
3 | <head> | |
7165f97b RK |
4 | <!-- Standard Dygraph scripts --> |
5 | <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> | |
6 | <!--[if IE]> | |
7 | <script type="text/javascript" src="../../excanvas.js"></script> | |
8 | <![endif]--> | |
8d3d15af | 9 | <script type="text/javascript" src="../../dygraph-dev.js"></script> |
7165f97b | 10 | |
6c8003d8 | 11 | <!-- Scripts for library support --> |
7165f97b RK |
12 | <script type="text/javascript" src="../lib/jquery-1.4.2.js"></script> |
13 | <script type="text/javascript" src="../lib/Asserts.js"></script> | |
14 | <script type="text/javascript" src="fake-jstestdriver.js"></script> | |
15 | <script type="text/javascript" src="../tests/Proxy.js"></script> | |
16 | <script type="text/javascript" src="../tests/CanvasAssertions.js"></script> | |
72a74f04 | 17 | <script type="text/javascript" src="../tests/DygraphOps.js"></script> |
9f636500 | 18 | <script type="text/javascript" src="../tests/PixelSampler.js"></script> |
fa607ffb | 19 | <script type="text/javascript" src="../tests/Util.js"></script> |
243eecfb | 20 | <script type="text/javascript" src="local.js"></script> |
6c8003d8 RK |
21 | |
22 | <!-- Scripts for automated tests --> | |
6a4587ac | 23 | <script type="text/javascript" src="../tests/annotations.js"></script> |
6d6c60b6 | 24 | <script type="text/javascript" src="../tests/axis_labels.js"></script> |
3d3001cf | 25 | <script type="text/javascript" src="../tests/axis_labels-deprecated.js"></script> |
6a4587ac | 26 | <script type="text/javascript" src="../tests/callback.js"></script> |
d413f791 | 27 | <script type="text/javascript" src="../tests/connect_separated_points.js"></script> |
6a4587ac RK |
28 | <script type="text/javascript" src="../tests/css.js"></script> |
29 | <script type="text/javascript" src="../tests/custom_bars.js"></script> | |
30 | <script type="text/javascript" src="../tests/date_formats.js"></script> | |
cd872296 | 31 | <script type="text/javascript" src="../tests/dygraph-options-tests.js"></script> |
6a4587ac RK |
32 | <script type="text/javascript" src="../tests/error_bars.js"></script> |
33 | <script type="text/javascript" src="../tests/formats.js"></script> | |
4a0567da | 34 | <script type="text/javascript" src="../tests/grid_per_axis.js"></script> |
9c831431 | 35 | <script type="text/javascript" src="../tests/interaction_model.js"></script> |
cea0fb70 | 36 | <script type="text/javascript" src="../tests/missing_points.js"></script> |
6a4587ac | 37 | <script type="text/javascript" src="../tests/multi_csv.js"></script> |
71e72c82 | 38 | <script type="text/javascript" src="../tests/multiple_axes.js"></script> |
08c74b2d | 39 | <script type="text/javascript" src="../tests/multiple_axes-old.js"></script> |
6a4587ac | 40 | <script type="text/javascript" src="../tests/no_hours.js"></script> |
6c8003d8 | 41 | <script type="text/javascript" src="../tests/parser.js"></script> |
6a4587ac | 42 | <script type="text/javascript" src="../tests/pathological_cases.js"></script> |
7f6a7190 | 43 | <script type="text/javascript" src="../tests/per_axis.js"></script> |
f112135d | 44 | <script type="text/javascript" src="../tests/per_series.js"></script> |
63623c70 | 45 | <script type="text/javascript" src="../tests/plugins.js"></script> |
6c8003d8 | 46 | <script type="text/javascript" src="../tests/range_selector.js"></script> |
6a4587ac RK |
47 | <script type="text/javascript" src="../tests/range_tests.js"></script> |
48 | <script type="text/javascript" src="../tests/rolling_average.js"></script> | |
49 | <script type="text/javascript" src="../tests/sanity.js"></script> | |
6a4587ac RK |
50 | <script type="text/javascript" src="../tests/scientific_notation.js"></script> |
51 | <script type="text/javascript" src="../tests/scrolling_div.js"></script> | |
6c8003d8 | 52 | <script type="text/javascript" src="../tests/selection.js"></script> |
6a4587ac | 53 | <script type="text/javascript" src="../tests/simple_drawing.js"></script> |
5546c2e3 | 54 | <script type="text/javascript" src="../tests/step_plot_per_series.js"></script> |
6c8003d8 | 55 | <script type="text/javascript" src="../tests/stacked.js"></script> |
0842b24b | 56 | <!-- |
48e614ac | 57 | <script type="text/javascript" src="../tests/tickers.js"></script> |
0842b24b | 58 | --> |
6a4587ac | 59 | <script type="text/javascript" src="../tests/to_dom_coords.js"></script> |
24f7710b | 60 | <script type="text/javascript" src="../tests/resize.js"></script> |
9ca829f2 | 61 | <script type="text/javascript" src="../tests/update_options.js"></script> |
6c8003d8 | 62 | <script type="text/javascript" src="../tests/update_while_panning.js"></script> |
48e614ac | 63 | <script type="text/javascript" src="../tests/utils_test.js"></script> |
87bbdb4d | 64 | |
5cfed8c5 RK |
65 | <style type="text/css"> |
66 | .pass .outcome { | |
67 | color: green; | |
68 | } | |
69 | ||
70 | .fail .outcome { | |
71 | color: red; | |
72 | } | |
87bbdb4d | 73 | |
02b1c284 RK |
74 | /* Broken: the active anchor isn't gray. Why not? */ |
75 | #results .activeAnchor { | |
76 | color: grey; | |
77 | } | |
78 | ||
79 | #results a { | |
80 | text-decoration: none; | |
81 | } | |
82 | ||
83 | #results a:visited { | |
84 | color: blue; | |
5cfed8c5 RK |
85 | text-decoration: none; |
86 | } | |
b99970f8 | 87 | |
02b1c284 RK |
88 | #results a:hover { |
89 | color: blue; | |
90 | text-decoration: underline; | |
b99970f8 | 91 | } |
5cfed8c5 | 92 | </style> |
644eff8b RK |
93 | </head> |
94 | <body> | |
95 | <div id='graph'></div> | |
33933283 | 96 | <div id="selector"></div> |
3914c8e1 | 97 | <p>This file is really nothing more than all the tests coalesced into a single |
33933283 RK |
98 | HTML file. To run a test, use the selector above, or |
99 | open a Javascript console and execute, for instance,</p> | |
3914c8e1 | 100 | <code>testDrawSimpleRangePlusOne()</code> |
6788e30b RK |
101 | |
102 | <p>Alternatively you can use query args: <ul> | |
33933283 RK |
103 | <li>testCase - for the name of the test case prototype |
104 | <li>testCaseName - for the name of the test case | |
6788e30b RK |
105 | <li>test - for the name of the test (use command=runTest) |
106 | <li>command - either runTest or runAllTests. | |
107 | </ul> | |
108 | Example: <code>local.html?testCase=ScrollingDivTestCase&test=testNestedDiv_Scrolled&command=runTest</code> | |
357f7a8a | 109 | <p/> |
644eff8b | 110 | </body> |
243eecfb | 111 | <script type="text/javascript"> |
11c21001 RK |
112 | var tester = new DygraphsLocalTester(); |
113 | // tester.overrideWarn(); // uncomment if you want warnings to be errors. | |
114 | tester.processVariables(); | |
243eecfb | 115 | addGlobalTestSymbols(); |
11c21001 | 116 | tester.run(); |
6788e30b | 117 | </script> |
644eff8b | 118 | </html> |