Suppress the tests that need to call window.open on Travis CI

This commit is contained in:
Cheng Zhao 2016-05-15 09:41:02 +09:00
parent 5ec2e8d7e5
commit 861a79dd6a

View file

@ -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/')