Skip to content

Commit

Permalink
Test v1.0.291
Browse files Browse the repository at this point in the history
  • Loading branch information
borracciaBlu committed Oct 24, 2023
1 parent b6d69cb commit 70d4a39
Show file tree
Hide file tree
Showing 2 changed files with 2,686 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/v1.0.291/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://unpkg.com/mocha@3.5.3/mocha.css" rel="stylesheet">
</head>
<body>
<div id="mocha"></div>
<script src="https://unpkg.com/mocha@3.5.3/mocha.js"></script>
<script>
function appendTest() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "test-browser.js?" + Date.now();
document.body.appendChild(script);
}

mocha.setup('bdd');

window.TESTS_COMPLETE = false;
window.TESTS_PASSED = 0;
window.TESTS_FAILED = 0;
appendTest();

window.onload = function () {
var runner = mocha.run();

runner.on('test end', function (test) {
if (test.state === 'passed') window.TESTS_PASSED++;
else window.TESTS_FAILED++;
});

runner.on('end', function () {
window.TESTS_COMPLETE = true;
});
};
</script>
</body>
</html>
Loading

0 comments on commit 70d4a39

Please sign in to comment.