Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
docs(schedule): add descriptions for webdriver flow executions
Browse files Browse the repository at this point in the history
  • Loading branch information
juliemr committed Mar 5, 2014
1 parent 7af550f commit e94fb03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jasminewd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function wrapInControlFlow(globalFn) {
return function(done) {
var thing = flow.execute(function() {
fn.call(jasmine.getEnv().currentSpec);
}).then(seal(done), function(e) {
}, 'asynchronous test function').then(seal(done), function(e) {
e.stack = driverError.stack + '\nAt async task:\n ' + e.stack;
done(e);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ Protractor.prototype.debugger = function() {
var flow = webdriver.promise.controlFlow();
flow.execute(function() {
debugger;
});
}, 'add breakpoint to control flow');
};

/**
Expand Down
8 changes: 4 additions & 4 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var Runner = function(config) {
nodedebug.on('exit', function() {
process.exit('1');
});
});
}, 'start the node debugger');
flow.timeout(1000, 'waiting for debugger to attach');
}

Expand All @@ -56,7 +56,7 @@ Runner.prototype.runJasmine_ = function(specs, done) {
require('../jasminewd');
webdriver.promise.controlFlow().execute(function() {
self.runTestPreparers_();
}).then(function() {
}, 'run test preparers').then(function() {
var jasmineNodeOpts = self.config_.jasmineNodeOpts;
var originalOnComplete = self.config_.onComplete;
jasmineNodeOpts.onComplete = function(runner, log) {
Expand Down Expand Up @@ -104,7 +104,7 @@ Runner.prototype.runMocha_ = function(specs, done) {

webdriver.promise.controlFlow().execute(function() {
self.runTestPreparers_();
}).then(function() {
}, 'run test preparers').then(function() {

specs.forEach(function(file) {
mocha.addFile(file);
Expand Down Expand Up @@ -172,7 +172,7 @@ Runner.prototype.runCucumber_ = function(specs, done) {

webdriver.promise.controlFlow().execute(function() {
self.runTestPreparers_();
}).then(function() {
}, 'run test preparers').then(function() {

cucumber.run(function(succeeded) {
if (self.config_.onComplete) {
Expand Down

0 comments on commit e94fb03

Please sign in to comment.