jasminewd2
Advanced tools
Comparing version 0.0.2 to 0.0.3
17
index.js
@@ -78,4 +78,3 @@ /** | ||
// deferred object for signaling completion of asychronous function within globalFn | ||
var asyncFnDone = webdriver.promise.defer(), | ||
originalFail = jasmine.getEnv().fail; | ||
var asyncFnDone = webdriver.promise.defer(); | ||
@@ -90,5 +89,6 @@ if (fn.length === 0) { | ||
// reject async done promise | ||
jasmine.getEnv().fail = asyncFnDone.fulfill.fail = function(userError) { | ||
asyncFnDone.fulfill.fail = function(userError) { | ||
asyncFnDone.reject(new Error(userError)); | ||
}; | ||
} | ||
@@ -98,9 +98,7 @@ | ||
fn.call(jasmine.getEnv(), asyncFnDone.fulfill); | ||
}); | ||
}, 'Run ' + fnName + ' in control flow'); | ||
webdriver.promise.all([asyncFnDone, flowFinished]).then(function() { | ||
jasmine.getEnv().fail = originalFail; | ||
seal(done)(); | ||
}, function(e) { | ||
jasmine.getEnv().fail = originalFail; | ||
e.stack = e.stack + '\n==== async task ====\n' + driverError.stack; | ||
@@ -177,3 +175,3 @@ done.fail(e); | ||
}); | ||
}); | ||
}, 'Expect ' + name); | ||
@@ -265,8 +263,3 @@ function compare(actual, expected) { | ||
console.warn('A Jasmine spec timed out. Resetting the WebDriver Control Flow.'); | ||
console.warn('The last active task was: '); | ||
console.warn( | ||
(flow.activeFrame_ && flow.activeFrame_.getPendingTask() ? | ||
flow.activeFrame_.getPendingTask().toString() : | ||
'unknown')); | ||
flow.reset(); | ||
})); |
@@ -17,3 +17,3 @@ { | ||
"jasmine": "2.1.1", | ||
"selenium-webdriver": "2.43.4" | ||
"selenium-webdriver": "2.45.1" | ||
}, | ||
@@ -30,3 +30,3 @@ "repository": { | ||
"license": "MIT", | ||
"version": "0.0.2" | ||
"version": "0.0.3" | ||
} |
@@ -6,3 +6,7 @@ jasminewd [![Build Status](https://travis-ci.org/angular/jasminewd.png?branch=master)](https://travis-ci.org/angular/jasminewd) | ||
**Important:** There are two active branches of jasminewd. | ||
- [master](https://github.com/angular/jasminewd/tree/master) is an adapter for Jasmine 1.3, and uses the package minijasminenode. It is published to npm as `jasminewd`. | ||
- [jasminewd2](https://github.com/angular/jasminewd/tree/jasminewd2) is an adapter for Jasmine 2.x, and uses the package jasmine. It is published to npm as `jasminewd2`. | ||
Features | ||
@@ -9,0 +13,0 @@ -------- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13940
61
229
1