mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
list all tests in index.html
This commit is contained in:
parent
056953f2c1
commit
518dd702a2
@ -22,6 +22,13 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
var server = app.listen(port);
|
var server = app.listen(port);
|
||||||
|
|
||||||
|
app.use('/index.html', function(req, res){
|
||||||
|
res.send("<ul>" + tests.map(function(test) {
|
||||||
|
return "<li><a href='" + test + "'>" + test + "</a></li>";
|
||||||
|
}).join("") + "</ul>");
|
||||||
|
});
|
||||||
|
|
||||||
app.use('/', express.static(__dirname + "/../"));
|
app.use('/', express.static(__dirname + "/../"));
|
||||||
|
|
||||||
function mapStat(item) {
|
function mapStat(item) {
|
||||||
@ -301,25 +308,14 @@
|
|||||||
|
|
||||||
var tests = [],
|
var tests = [],
|
||||||
outputImages = false,
|
outputImages = false,
|
||||||
results = {};
|
results = {},
|
||||||
|
testStream = getTests("tests/cases");
|
||||||
|
|
||||||
exports.tests = function() {
|
testStream.onValue(function(test) {
|
||||||
var testStream = getTests("tests/cases");
|
tests.push(test);
|
||||||
|
});
|
||||||
testStream.onValue(function(test) {
|
|
||||||
tests.push(test);
|
|
||||||
});
|
|
||||||
|
|
||||||
testStream.onEnd(runWebDriver);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
if (outputImages) {
|
|
||||||
resultStream.flatMap(createImages).onValue(function(test){
|
|
||||||
console.log(test.data.testCase, "screenshots created");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
exports.tests = function() {
|
||||||
|
testStream.onEnd(runWebDriver);
|
||||||
|
};
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user