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

Commit e94fb03

Browse files
committed
docs(schedule): add descriptions for webdriver flow executions
1 parent 7af550f commit e94fb03

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: jasminewd/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function wrapInControlFlow(globalFn) {
3434
return function(done) {
3535
var thing = flow.execute(function() {
3636
fn.call(jasmine.getEnv().currentSpec);
37-
}).then(seal(done), function(e) {
37+
}, 'asynchronous test function').then(seal(done), function(e) {
3838
e.stack = driverError.stack + '\nAt async task:\n ' + e.stack;
3939
done(e);
4040
});

Diff for: lib/protractor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ Protractor.prototype.debugger = function() {
930930
var flow = webdriver.promise.controlFlow();
931931
flow.execute(function() {
932932
debugger;
933-
});
933+
}, 'add breakpoint to control flow');
934934
};
935935

936936
/**

Diff for: lib/runner.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var Runner = function(config) {
3434
nodedebug.on('exit', function() {
3535
process.exit('1');
3636
});
37-
});
37+
}, 'start the node debugger');
3838
flow.timeout(1000, 'waiting for debugger to attach');
3939
}
4040

@@ -56,7 +56,7 @@ Runner.prototype.runJasmine_ = function(specs, done) {
5656
require('../jasminewd');
5757
webdriver.promise.controlFlow().execute(function() {
5858
self.runTestPreparers_();
59-
}).then(function() {
59+
}, 'run test preparers').then(function() {
6060
var jasmineNodeOpts = self.config_.jasmineNodeOpts;
6161
var originalOnComplete = self.config_.onComplete;
6262
jasmineNodeOpts.onComplete = function(runner, log) {
@@ -104,7 +104,7 @@ Runner.prototype.runMocha_ = function(specs, done) {
104104

105105
webdriver.promise.controlFlow().execute(function() {
106106
self.runTestPreparers_();
107-
}).then(function() {
107+
}, 'run test preparers').then(function() {
108108

109109
specs.forEach(function(file) {
110110
mocha.addFile(file);
@@ -172,7 +172,7 @@ Runner.prototype.runCucumber_ = function(specs, done) {
172172

173173
webdriver.promise.controlFlow().execute(function() {
174174
self.runTestPreparers_();
175-
}).then(function() {
175+
}, 'run test preparers').then(function() {
176176

177177
cucumber.run(function(succeeded) {
178178
if (self.config_.onComplete) {

0 commit comments

Comments
 (0)