Explicitly skip tests that should be skipped

This commit is contained in:
Aleksei Kuzmin 2017-11-16 00:05:46 +03:00
parent 42d7d51b75
commit cf749a8e18
19 changed files with 675 additions and 262 deletions

View file

@ -26,8 +26,13 @@ describe('chromium feature', () => {
afterEach(() => closeWindow(w).then(() => { w = null }))
describe('heap snapshot', () => {
it('does not crash', () => {
if (process.env.TRAVIS === 'true') return
it('does not crash', function () {
if (process.env.TRAVIS === 'true') {
// FIXME(alexeykuzmin): Skip the test.
// this.skip()
return
}
process.atomBinding('v8_util').takeHeapSnapshot()
})
})
@ -165,7 +170,11 @@ describe('chromium feature', () => {
})
describe('window.open', () => {
if (process.env.TRAVIS === 'true' && process.platform === 'darwin') return
before(function () {
if (process.env.TRAVIS === 'true' && process.platform === 'darwin') {
this.skip()
}
})
it('returns a BrowserWindowProxy object', () => {
const b = window.open('about:blank', '', 'show=no')
@ -666,10 +675,18 @@ describe('chromium feature', () => {
})
describe('webgl', () => {
if (isCI && process.platform === 'win32') return
before(function () {
if (isCI && process.platform === 'win32') {
this.skip()
}
})
it('can be get as context in canvas', () => {
if (process.platform === 'linux') return
if (process.platform === 'linux') {
// FIXME(alexeykuzmin): Skip the test.
// this.skip()
return
}
const webgl = document.createElement('canvas').getContext('webgl')
assert.notEqual(webgl, null)