projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove variable re-definitions
[dygraphs.git]
/
auto_tests
/
misc
/
local.html
diff --git
a/auto_tests/misc/local.html
b/auto_tests/misc/local.html
index
e9feab4
..
e35d18d
100644
(file)
--- a/
auto_tests/misc/local.html
+++ b/
auto_tests/misc/local.html
@@
-15,6
+15,7
@@
<script type="text/javascript" src="../tests/Proxy.js"></script>
<script type="text/javascript" src="../tests/CanvasAssertions.js"></script>
<script type="text/javascript" src="../tests/DygraphOps.js"></script>
<script type="text/javascript" src="../tests/Proxy.js"></script>
<script type="text/javascript" src="../tests/CanvasAssertions.js"></script>
<script type="text/javascript" src="../tests/DygraphOps.js"></script>
+ <script type="text/javascript" src="../tests/PixelSampler.js"></script>
<script type="text/javascript" src="../tests/annotations.js"></script>
<script type="text/javascript" src="../tests/axis_labels.js"></script>
<script type="text/javascript" src="../tests/callback.js"></script>
<script type="text/javascript" src="../tests/annotations.js"></script>
<script type="text/javascript" src="../tests/axis_labels.js"></script>
<script type="text/javascript" src="../tests/callback.js"></script>
@@
-24,6
+25,7
@@
<script type="text/javascript" src="../tests/error_bars.js"></script>
<script type="text/javascript" src="../tests/formats.js"></script>
<script type="text/javascript" src="../tests/interaction_model.js"></script>
<script type="text/javascript" src="../tests/error_bars.js"></script>
<script type="text/javascript" src="../tests/formats.js"></script>
<script type="text/javascript" src="../tests/interaction_model.js"></script>
+ <script type="text/javascript" src="../tests/missing_points.js"></script>
<script type="text/javascript" src="../tests/multiple_axes.js"></script>
<script type="text/javascript" src="../tests/multi_csv.js"></script>
<script type="text/javascript" src="../tests/no_hours.js"></script>
<script type="text/javascript" src="../tests/multiple_axes.js"></script>
<script type="text/javascript" src="../tests/multi_csv.js"></script>
<script type="text/javascript" src="../tests/no_hours.js"></script>
@@
-41,6
+43,9
@@
-->
<script type="text/javascript" src="../tests/to_dom_coords.js"></script>
<script type="text/javascript" src="../tests/update_while_panning.js"></script>
-->
<script type="text/javascript" src="../tests/to_dom_coords.js"></script>
<script type="text/javascript" src="../tests/update_while_panning.js"></script>
+ <script type="text/javascript" src="../tests/stacked.js"></script>
+ <script type="text/javascript" src="../tests/per_series.js"></script>
+ <script type="text/javascript" src="../tests/parser.js"></script>
<script type="text/javascript" src="../tests/update_options.js"></script>
<script type="text/javascript" src="../tests/utils_test.js"></script>
<script type="text/javascript" src="../tests/update_options.js"></script>
<script type="text/javascript" src="../tests/utils_test.js"></script>
@@
-59,8
+64,8
@@
}
</style>
<script type="text/javascript">
}
</style>
<script type="text/javascript">
- var tc = null;
- var name = null;
+ var tc = null;
// Selected test case
+ var name = null;
var resultDiv = null;
var resultDiv = null;
@@
-123,15
+128,17
@@
}
}
resultsDiv = createResultsDiv();
}
}
resultsDiv = createResultsDiv();
- postResults(results);
+ var summary = { failed: 0, passed: 0 };
+ postResults(results, summary);
resultsDiv.appendChild(document.createElement("hr"));
resultsDiv.appendChild(document.createElement("hr"));
+ document.getElementById('summary').innerHTML = "(" + summary.failed + " failed, " + summary.passed + " passed)";
}
function createResultsDiv() {
var body = document.getElementsByTagName("body")[0];
div = document.createElement("div");
div.id='results';
}
function createResultsDiv() {
var body = document.getElementsByTagName("body")[0];
div = document.createElement("div");
div.id='results';
- div.innerHTML = "Test results: <a href='#' id='passed'>passed</a> <a href='#' id='failed'>failed</a> <a href='#' id='all'>all</a><br/>";
+ div.innerHTML = "Test results: <
span id='summary'></span> <
a href='#' id='passed'>passed</a> <a href='#' id='failed'>failed</a> <a href='#' id='all'>all</a><br/>";
body.insertBefore(div, body.firstChild);
var setByClassName = function(name, displayStyle) {
body.insertBefore(div, body.firstChild);
var setByClassName = function(name, displayStyle) {
@@
-166,7
+173,7
@@
return div;
}
return div;
}
- function postResults(results, title) {
+ function postResults(results,
summary,
title) {
if (typeof(results) == "boolean") {
var elem = document.createElement("div");
elem.setAttribute("class", results ? 'pass' : 'fail');
if (typeof(results) == "boolean") {
var elem = document.createElement("div");
elem.setAttribute("class", results ? 'pass' : 'fail');
@@
-174,15
+181,21
@@
var prefix = title ? (title + ": ") : "";
elem.innerHTML = prefix + '<span class=\'outcome\'>' + (results ? 'pass' : 'fail') + '</span>';
resultsDiv.appendChild(elem);
var prefix = title ? (title + ": ") : "";
elem.innerHTML = prefix + '<span class=\'outcome\'>' + (results ? 'pass' : 'fail') + '</span>';
resultsDiv.appendChild(elem);
+ if (results) {
+ summary.passed++;
+ } else {
+ summary.failed++;
+ }
} else { // hash
} else { // hash
+ var failed = 0;
var html = "";
for (var key in results) {
if (results.hasOwnProperty(key)) {
var elem = results[key];
if (typeof(elem) == "boolean" && title) {
var html = "";
for (var key in results) {
if (results.hasOwnProperty(key)) {
var elem = results[key];
if (typeof(elem) == "boolean" && title) {
- postResults(results[key], title + "." + key);
+ postResults(results[key],
summary,
title + "." + key);
} else {
} else {
- postResults(results[key], key);
+ postResults(results[key],
summary,
key);
}
}
}
}
}
}
@@
-227,7
+240,7
@@
if (selector != null) { // running a test
var createLink = function(parent, text, url) {
var li = createAttached("li", parent);
var a = createAttached("a", li);
var createLink = function(parent, text, url) {
var li = createAttached("li", parent);
var a = createAttached("a", li);
- a.inner
Text
= text;
+ a.inner
HTML
= text;
a.href = url;
}
if (tc == null) {
a.href = url;
}
if (tc == null) {