carl/bosh - fixed runner.html (</head> was too early); cleanup of script files that no longer existed; use passed getter
This commit is contained in:
parent
1da0c1c890
commit
40577433aa
|
@ -35,7 +35,7 @@ jasmine.TrivialReporter.prototype.reportSuiteResults = function(suite) {
|
||||||
|
|
||||||
jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
|
jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
|
||||||
var specDiv = this.createDom('div', {
|
var specDiv = this.createDom('div', {
|
||||||
className: spec.getResults().passed() ? 'spec passed' : 'spec failed'
|
className: spec.getResults().passed ? 'spec passed' : 'spec failed'
|
||||||
}, spec.getFullName());
|
}, spec.getFullName());
|
||||||
|
|
||||||
var resultItems = spec.getResults().getItems();
|
var resultItems = spec.getResults().getItems();
|
||||||
|
|
|
@ -3,10 +3,6 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Jasmine Tests</title>
|
<title>Jasmine Tests</title>
|
||||||
|
|
||||||
<script type="text/javascript" src="lib/json2.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="../src/base.js"></script>
|
<script type="text/javascript" src="../src/base.js"></script>
|
||||||
<script type="text/javascript" src="../src/util.js"></script>
|
<script type="text/javascript" src="../src/util.js"></script>
|
||||||
<script type="text/javascript" src="../src/Env.js"></script>
|
<script type="text/javascript" src="../src/Env.js"></script>
|
||||||
|
|
113
spec/runner.html
113
spec/runner.html
|
@ -3,65 +3,62 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Jasmine Test Runner</title>
|
<title>Jasmine Test Runner</title>
|
||||||
|
<script type="text/javascript" src="../src/base.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/util.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/Env.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/ActionCollection.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/Reporter.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/Matchers.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/MultiReporter.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/NestedResults.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/PrettyPrinter.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/QueuedFunction.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/Reporters.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/Runner.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/Spec.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/Suite.js"></script>
|
||||||
|
<script type="text/javascript" src="../src/mock-timeout.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="../lib/TrivialReporter.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
jasmine.include('suites/EnvTest.js', true);
|
||||||
|
jasmine.include('suites/ExceptionsTest.js', true);
|
||||||
|
jasmine.include('suites/MatchersTest.js', true);
|
||||||
|
jasmine.include('suites/MultiReporterTest.js', true);
|
||||||
|
jasmine.include('suites/NestedResultsTest.js', true);
|
||||||
|
jasmine.include('suites/PrettyPrintTest.js', true);
|
||||||
|
jasmine.include('suites/ReporterTest.js', true);
|
||||||
|
jasmine.include('suites/RunnerTest.js', true);
|
||||||
|
jasmine.include('suites/SpecRunningTest.js', true);
|
||||||
|
jasmine.include('suites/SpyTest.js', true);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
.spec {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.passed {
|
||||||
|
background-color: lightgreen;
|
||||||
|
}
|
||||||
|
|
||||||
|
.failed {
|
||||||
|
background-color: pink;
|
||||||
|
}
|
||||||
|
|
||||||
|
.resultMessage {
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stackTrace {
|
||||||
|
white-space: pre;
|
||||||
|
font-size: .8em;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<script type="text/javascript" src="lib/json2.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="../src/base.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/util.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/Env.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/ActionCollection.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/Reporter.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/Matchers.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/MultiReporter.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/NestedResults.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/PrettyPrinter.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/QueuedFunction.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/Reporters.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/Runner.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/Spec.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/Suite.js"></script>
|
|
||||||
<script type="text/javascript" src="../src/mock-timeout.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="../lib/TrivialReporter.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
jasmine.include('suites/ExceptionsTest.js', true);
|
|
||||||
jasmine.include('suites/EnvTest.js', true);
|
|
||||||
jasmine.include('suites/JsonReporterTest.js', true);
|
|
||||||
jasmine.include('suites/MatchersTest.js', true);
|
|
||||||
jasmine.include('suites/MultiReporterTest.js', true);
|
|
||||||
jasmine.include('suites/NestedResultsTest.js', true);
|
|
||||||
jasmine.include('suites/PrettyPrintTest.js', true);
|
|
||||||
jasmine.include('suites/ReporterTest.js', true);
|
|
||||||
jasmine.include('suites/RunnerTest.js', true);
|
|
||||||
jasmine.include('suites/SpecRunningTest.js', true);
|
|
||||||
jasmine.include('suites/SpyTest.js', true);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style type="text/css">
|
|
||||||
.spec {
|
|
||||||
margin: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.passed {
|
|
||||||
background-color: lightgreen;
|
|
||||||
}
|
|
||||||
|
|
||||||
.failed {
|
|
||||||
background-color: pink;
|
|
||||||
}
|
|
||||||
|
|
||||||
.resultMessage {
|
|
||||||
white-space: pre;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stackTrace {
|
|
||||||
white-space: pre;
|
|
||||||
font-size: .8em;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue