Permit focused running with Queue-based runner
This commit is contained in:
parent
0a3358f249
commit
2a4241323d
@ -3,7 +3,7 @@
|
|||||||
<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/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>
|
||||||
@ -41,15 +41,21 @@
|
|||||||
|
|
||||||
<link href="../lib/jasmine.css" rel="stylesheet"/>
|
<link href="../lib/jasmine.css" rel="stylesheet"/>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
|
||||||
var jasmineEnv = jasmine.getEnv();
|
var jasmineEnv = jasmine.getEnv();
|
||||||
jasmineEnv.addReporter(new jasmine.TrivialReporter());
|
var trivialReporter = new jasmine.TrivialReporter();
|
||||||
jasmineEnv.execute();
|
jasmineEnv.addReporter(trivialReporter);
|
||||||
|
jasmineEnv.specFilter = function(spec) {
|
||||||
|
return trivialReporter.specFilter(spec);
|
||||||
|
};
|
||||||
|
window.onload = function() {
|
||||||
|
jasmineEnv.execute();
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -14,7 +14,6 @@ jasmine.Spec = function(env, suite, description) {
|
|||||||
spec.description = description;
|
spec.description = description;
|
||||||
spec.queue = new jasmine.Queue(env);
|
spec.queue = new jasmine.Queue(env);
|
||||||
|
|
||||||
spec.finished = false;
|
|
||||||
spec.afterCallbacks = [];
|
spec.afterCallbacks = [];
|
||||||
spec.spies_ = [];
|
spec.spies_ = [];
|
||||||
|
|
||||||
@ -117,8 +116,7 @@ jasmine.Spec.prototype.execute = function(onComplete) {
|
|||||||
var spec = this;
|
var spec = this;
|
||||||
if (!spec.env.specFilter(spec)) {
|
if (!spec.env.specFilter(spec)) {
|
||||||
spec.results.skipped = true;
|
spec.results.skipped = true;
|
||||||
spec.finishCallback();
|
spec.finish(onComplete);
|
||||||
spec.finished = true;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user