mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Suppress the tests that need to call window.open on Travis CI
This commit is contained in:
@@ -321,6 +321,10 @@ describe('<webview> tag', 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) {
|
||||
var listener = function (e) {
|
||||
assert.equal(e.message, 'null')
|
||||
@@ -346,6 +350,10 @@ describe('<webview> tag', function () {
|
||||
})
|
||||
|
||||
describe('new-window event', function () {
|
||||
if (process.env.TRAVIS === 'true' && process.platform === 'darwin') {
|
||||
return
|
||||
}
|
||||
|
||||
it('emits when window.open is called', function (done) {
|
||||
webview.addEventListener('new-window', function (e) {
|
||||
assert.equal(e.url, 'http://host/')
|
||||
|
||||
Reference in New Issue
Block a user