Suppress the tests that need to call window.open on Travis CI
This commit is contained in:
parent
5ec2e8d7e5
commit
861a79dd6a
1 changed files with 8 additions and 0 deletions
|
@ -321,6 +321,10 @@ describe('<webview> tag', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('allowpopups attribute', function () {
|
describe('allowpopups attribute', function () {
|
||||||
|
if (process.env.TRAVIS === 'true' && process.platform === 'darwin') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
it('can not open new window when not set', function (done) {
|
it('can not open new window when not set', function (done) {
|
||||||
var listener = function (e) {
|
var listener = function (e) {
|
||||||
assert.equal(e.message, 'null')
|
assert.equal(e.message, 'null')
|
||||||
|
@ -346,6 +350,10 @@ describe('<webview> tag', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('new-window event', function () {
|
describe('new-window event', function () {
|
||||||
|
if (process.env.TRAVIS === 'true' && process.platform === 'darwin') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
it('emits when window.open is called', function (done) {
|
it('emits when window.open is called', function (done) {
|
||||||
webview.addEventListener('new-window', function (e) {
|
webview.addEventListener('new-window', function (e) {
|
||||||
assert.equal(e.url, 'http://host/')
|
assert.equal(e.url, 'http://host/')
|
||||||
|
|
Loading…
Reference in a new issue