firefox-profile
Advanced tools
Comparing version 0.3.8 to 0.3.9
@@ -142,3 +142,2 @@ /** | ||
}); | ||
process.addListener('SIGINT', process.exit); | ||
} | ||
@@ -145,0 +144,0 @@ |
{ | ||
"name": "firefox-profile", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "firefox profile for selenium WebDriverJs, admc/wd or any other node selenium driver that supports capabilities", | ||
@@ -51,2 +51,5 @@ "main": "lib/firefox_profile", | ||
"url": "https://github.com/XrXr" | ||
}, { | ||
"name": "Christoph Dorn", | ||
"url": "http://www.christophdorn.com/" | ||
}], | ||
@@ -53,0 +56,0 @@ "devDependencies": { |
@@ -13,2 +13,3 @@ /*jshint camelcase:false*/ | ||
beforeEach(function() { | ||
// default basic profile | ||
fp = new FirefoxProfile(); | ||
@@ -23,3 +24,3 @@ }); | ||
afterEach(function(done) { | ||
// will remove the onexit() call (that deletes the dir folder) | ||
// will remove the onexit() calls (that deletes the dir folder) | ||
// prevents warning: | ||
@@ -36,3 +37,3 @@ // possible EventEmitter memory leak detected. | ||
it('with string parameter, lock files should not be copied over', function() { | ||
it('with string parameter, lock files should not be copied over', function(done) { | ||
var fp = new FirefoxProfile(testProfiles.emptyProfile.path); | ||
@@ -45,5 +46,6 @@ expect(fp.profileDir.slice(-5)).to.be.equal('-copy'); | ||
expect(fs.existsSync(path.join(fp.profileDir, 'empty.file'))).to.be.true; | ||
fp.deleteDir(done); | ||
}); | ||
it('should copy the profile into destinationDirectory if specified', function() { | ||
it('should copy the profile into destinationDirectory if specified', function(done) { | ||
var fp = new FirefoxProfile({ profileDirectory: testProfiles.emptyProfile.path, | ||
@@ -58,2 +60,4 @@ destinationDirectory: testProfiles.dest | ||
expect(fs.existsSync(path.join(fp.profileDir, 'empty.file'))).to.be.true; | ||
// to clean events | ||
fp.deleteDir(done); | ||
}); | ||
@@ -93,3 +97,4 @@ | ||
expect(fs.existsSync(path.join(fp.profileDir, 'empty.file'))).to.be.true; | ||
done(); | ||
// to clean events | ||
fp.deleteDir(done); | ||
}); | ||
@@ -112,2 +117,3 @@ }); | ||
expect(fs.existsSync(path.join(fp.profileDir, 'empty.file'))).to.be.true; | ||
// to clean events | ||
fp.deleteDir(done); | ||
@@ -136,3 +142,4 @@ }); | ||
expect(fs.existsSync(path.join(fp.profileDir, 'empty.file'))).to.be.true; | ||
done(); | ||
// to clean events | ||
fp.deleteDir(done); | ||
}); | ||
@@ -139,0 +146,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
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
9077180
1399