Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Removed test/browser/style.css. Closes #385

TJ Holowaychuk107646f9e537
diff --git a/Makefile b/Makefile
index 4179ee3c..301e48df 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,6 @@ SUPPORT = $(wildcard support/*.js)
all: mocha.js mocha.css
-mocha.css: test/browser/style.css
- cp -f $< $@
-
mocha.js: $(SRC) $(SUPPORT)
@node support/compile $(SRC)
@cat \
diff --git a/test/browser/index.html b/test/browser/index.html
index cd2b7672..4960892e 100644
--- a/test/browser/index.html
+++ b/test/browser/index.html
@@ -2,7 +2,7 @@
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" href="style.css" />
+ <link rel="stylesheet" href="../../mocha.css" />
<script src="../../mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script>
diff --git a/test/browser/large.html b/test/browser/large.html
index 748bf90f..4bc8de6d 100644
--- a/test/browser/large.html
+++ b/test/browser/large.html
@@ -2,7 +2,7 @@
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" href="style.css" />
+ <link rel="stylesheet" href="../../mocha.css" />
<script src="../../mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script>
diff --git a/test/browser/opts.html b/test/browser/opts.html
index 2cddaee5..7798481a 100644
--- a/test/browser/opts.html
+++ b/test/browser/opts.html
@@ -2,7 +2,7 @@
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" href="style.css" />
+ <link rel="stylesheet" href="../../mocha.css" />
<script src="../../mocha.js"></script>
<script>
mocha.setup({
diff --git a/test/browser/style.css b/test/browser/style.css
deleted file mode 100644
index b49d91d5..00000000
--- a/test/browser/style.css
+++ /dev/null
@@ -1,137 +0,0 @@
-
-body {
- font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
- padding: 60px 50px;
-}
-
-#mocha h1, h2 {
- margin: 0;
-}
-
-#mocha h1 {
- margin-top: 15px;
- font-size: 1em;
- font-weight: 200;
-}
-
-#mocha .suite .suite h1 {
- margin-top: 0;
- font-size: .8em;
-}
-
-#mocha h2 {
- font-size: 12px;
- font-weight: normal;
- cursor: pointer;
-}
-
-#mocha .suite {
- margin-left: 15px;
-}
-
-#mocha .test {
- margin-left: 15px;
-}
-
-#mocha .test:hover h2::after {
- position: relative;
- top: 0;
- right: -10px;
- content: '(view source)';
- font-size: 12px;
- font-family: arial;
- color: #888;
-}
-
-#mocha .test.pending:hover h2::after {
- content: '(pending)';
- font-family: arial;
-}
-
-#mocha .test.pass::before {
- content: '✓';
- font-size: 12px;
- display: block;
- float: left;
- margin-right: 5px;
- color: #00c41c;
-}
-
-#mocha .test.pending {
- color: #0b97c4;
-}
-
-#mocha .test.pending::before {
- content: '◦';
- color: #0b97c4;
-}
-
-#mocha .test.fail {
- color: #c00;
-}
-
-#mocha .test.fail pre {
- color: black;
-}
-
-#mocha .test.fail::before {
- content: '✖';
- font-size: 12px;
- display: block;
- float: left;
- margin-right: 5px;
- color: #c00;
-}
-
-#mocha .test pre.error {
- color: #c00;
-}
-
-#mocha .test pre {
- display: inline-block;
- font: 12px/1.5 monaco, monospace;
- margin: 5px;
- padding: 15px;
- border: 1px solid #eee;
- border-bottom-color: #ddd;
- -webkit-border-radius: 3px;
- -webkit-box-shadow: 0 1px 3px #eee;
-}
-
-#error {
- color: #c00;
- font-size: 1.5 em;
- font-weight: 100;
- letter-spacing: 1px;
-}
-
-#stats {
- position: fixed;
- top: 15px;
- right: 10px;
- font-size: 12px;
- margin: 0;
- color: #888;
-}
-
-#stats .progress {
- float: right;
- padding-top: 0;
-}
-
-#stats em {
- color: black;
-}
-
-#stats li {
- display: inline-block;
- margin: 0 5px;
- list-style: none;
- padding-top: 11px;
-}
-
-code .comment { color: #ddd }
-code .init { color: #2F6FAD }
-code .string { color: #5890AD }
-code .keyword { color: #8A6343 }
-code .number { color: #2F6FAD }