Keep custom test logic in one place
This commit is contained in:
@@ -51,18 +51,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
window.showDiff = false;
|
||||
if (window.location.search.indexOf('showdiff') >= 0) {
|
||||
// show a difference image if '?showdiff' is in the URL
|
||||
window.showDiff = true;
|
||||
}
|
||||
|
||||
window.showMap = false;
|
||||
if (window.location.search.indexOf('generate') >= 0) {
|
||||
// show the canvas of the test map if '?generate' is in the URL
|
||||
window.showMap = true;
|
||||
}
|
||||
|
||||
if (window.console && console.log) {
|
||||
// write stacks to the console for failed tests
|
||||
runner.on('fail', function(test, err) {
|
||||
|
||||
Reference in New Issue
Block a user