Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:busterjs/buster
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohansen committed Jul 5, 2012
2 parents 7f452d1 + fa5c39d commit 062aad2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 7 additions & 4 deletions lib/buster/capture-server-wiring.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
(function (B) {
function wireTestRunner(emitter) {
var runner = B.testRunner.create();
var reporter = B.reporters.jsonProxy.create(emitter);
reporter.listen(runner);
var wiring = B.wire.testRunner(runner);

var wiring = B.wire.testRunner(function () {
var runner = B.testRunner.create();
var reporter = B.reporters.jsonProxy.create(emitter);
reporter.listen(runner);
return runner;
});
B.run = wiring.run;

emitter.on("tests:run", function (msg) {
Expand Down
8 changes: 6 additions & 2 deletions script/phantom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var system = require('system'),
captureUrl = 'http://localhost:1111/capture/';
captureUrl = 'http://localhost:1111/capture';
if (system.args.length==2) {
captureUrl = system.args[1];
}
Expand All @@ -9,8 +9,12 @@ phantom.silent = false;
var page = new WebPage();

page.open(captureUrl, function(status) {
if(!phantom.silent){
if(!phantom.silent) {
console.log(status);
if (status !== 'success') {
console.log('phantomjs failed to connect');
phantom.exit(1);
}

page.onConsoleMessage = function (msg, line, id) {
var fileName = id.split('/');
Expand Down

0 comments on commit 062aad2

Please sign in to comment.