1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
<head>
<meta charset="UTF-8">
<script type="module" src="./runner.js"></script>
<style type="text/css">
body {
background: white;
color: black;
}
pre {
white-space: pre-wrap;
}
#results .success {
color: green;
}
#results .failure {
background: red;
color: white;
}
#results .error {
background: orange;
color: white;
}
ul#logs {
margin-block: 1em 0;
margin-inline: 0;
padding-block: 0;
padding-inline: 0;
}
ul#logs li {
border-block-start: 1px solid;
list-style: none;
margin-block: 0;
margin-inline: 0;
padding-block: 1em;
padding-inline: 1em;
}
ul#logs li.failure .description {
background: pink;
}
ul#logs li.failure .description::before {
content: "Failure: ";
}
ul#logs li.error .description {
background: orange;
}
ul#logs li.error .description::before {
content: "Error: ";
}
.diff {
background: white;
padding-block: 0.5em;
padding-inline: 0.5em;
}
.diff .line {
display: block;
}
.diff .deleted {
background: pink;
}
.diff .inserted {
background: lime;
}
</style>
</head>
<body>
<p>If there are failed tests, debug them with these steps:</p>
<ol>
<li>Go to definitions of failed tests. Assume that <code>testMoveAttachedTabBeforeHiddenTab</code> failed.</li>
<li>Set test functions' property <code>.runnable</code> to <code>true</code>, like: <code>testMoveAttachedTabBeforeHiddenTab.runnable = true;</code> then only those tests are ran and others are ignored.</li>
<li>Debug them until all tests become green.</li>
<li>Revert lines setting <code>.runnable</code> and run all tests again.</li>
<li>Back to the step 1 if there is any failed test.</li>
</ol>
<p><button id="stop">Stop running</button></p>
<hr>
<p id="results"></ul>
<ul id="logs"></ul>
</body>
</html>
|