Skip to content

Commit 580d7c6

Browse files
committed
Improve the look and usability of browser tests
Uses bootstrap's CSS from a CDN.
1 parent 3eda9c6 commit 580d7c6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/webTestResults.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
<html>
1+
<!DOCTYPE html>
2+
<html>
23
<head>
34
<meta charset="utf-8">
45
<title>Mocha Tests</title>
56
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
67
<link rel="icon" href="./webhost/favicon-32x32.png"/>
8+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
79
</head>
810
<body>
911
<div id='setup'>
12+
<button id='runTestBtn' onclick='runTests()' type="button" class="btn btn-success btn-lg">Run Tests</button><br /><br /><br />
1013
<div>
11-
<button id='selectCompilerBtn' onclick='location.href="http://localhost:8888/tests/webTestResults.html?grep=compiler"'>Select Compiler Tests</button>
12-
<button id='selectFourslashBtn' onclick='location.href="http://localhost:8888/tests/webTestResults.html?grep=fourslash"'>Select Fourslash Tests</button>
14+
<button id='selectCompilerBtn' onclick='location.href="http://localhost:8888/tests/webTestResults.html?grep=compiler"' type="button" class="btn btn-warning">Select Compiler Tests</button>
15+
<button id='selectFourslashBtn' onclick='location.href="http://localhost:8888/tests/webTestResults.html?grep=fourslash"' type="button" class="btn btn-warning">Select Fourslash Tests</button>
1316
</div>
14-
<button id='runTestBtn' onclick='runTests()'>Run Tests</button>
1517
</div>
1618

1719
<div id="mocha"></div>

0 commit comments

Comments
 (0)