Skip to content

Commit

Permalink
Test v1.0.331
Browse files Browse the repository at this point in the history
  • Loading branch information
borracciaBlu committed Jul 4, 2024
1 parent 9a9c74b commit bb7fa6a
Show file tree
Hide file tree
Showing 2 changed files with 2,727 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/v1.0.331/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 bb7fa6a

Please sign in to comment.