2018-03-31 22:45:35 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
|
|
<title>Test It Spec</title>
|
2018-04-02 08:29:54 +00:00
|
|
|
<script src="../src/test.it.browser.js"></script>
|
|
|
|
<script src="./index.spec.js"></script>
|
2018-03-31 22:45:35 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
2018-04-02 08:29:54 +00:00
|
|
|
test.run(function(r) {
|
|
|
|
document.body.style.backgroundColor = (
|
|
|
|
r.fail.length ? "#ff9999" : "#99ff99"
|
|
|
|
);
|
2018-03-31 22:45:35 +00:00
|
|
|
|
2018-04-02 08:29:54 +00:00
|
|
|
r.pass.forEach((p) => document.write(`<br>${p}`));
|
|
|
|
r.fail.forEach((f) => document.write(`<br><b>${f}</b>`));
|
2018-03-31 22:45:35 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|