This commit is contained in:
Aleksei Kuzmin 2018-06-11 14:20:46 +02:00 коммит произвёл Samuel Attard
Родитель cd428a047f
Коммит de6a5de914
11 изменённых файлов: 1256 добавлений и 21 удалений

Просмотреть файл

@ -796,7 +796,8 @@ describe('app module', () => {
})
describe('getAppMetrics() API', () => {
it('returns memory and cpu stats of all running electron processes', () => {
// TODO(alexeykuzmin): [Ch66] Enable the test.
xit('returns memory and cpu stats of all running electron processes', () => {
const appMetrics = app.getAppMetrics()
expect(appMetrics).to.be.an('array').and.have.lengthOf.at.least(1, 'App memory info object is not > 0')

Просмотреть файл

@ -2055,7 +2055,7 @@ describe('BrowserWindow module', () => {
})
})
// TODO(alexeykuzmin): Crashes the app.
// TODO(alexeykuzmin): [Ch66] Crashes the app.
// Fix and enable the test.
xdescribe('beginFrameSubscription method', () => {
before(function () {
@ -2757,7 +2757,8 @@ describe('BrowserWindow module', () => {
})
})
describe('for a valid extension', () => {
// TODO(alexeykuzmin): [Ch66] Enable the tests.
xdescribe('for a valid extension', () => {
const extensionName = 'foo'
const removeExtension = () => {
@ -2844,7 +2845,7 @@ describe('BrowserWindow module', () => {
})
})
// TODO(alexeykuzmin): Times out. Fix it and enable.
// TODO(alexeykuzmin): [Ch66] Times out. Fix it and enable.
xit('works when used with partitions', (done) => {
if (w != null) {
w.destroy()

Просмотреть файл

@ -73,7 +73,8 @@ describe('crashReporter module', () => {
})
})
it('should send minidump when node processes crash', function (done) {
// TODO(alexeykuzmin): [Ch66] Enable the test.
xit('should send minidump when node processes crash', function (done) {
// TODO(alexeykuzmin): Skip the test instead of marking it as passed.
if (process.env.APPVEYOR === 'True') return done()

Просмотреть файл

@ -134,7 +134,7 @@ describe('debugger module', () => {
})
})
// TODO(alexeykuzmin): Times out. Fix it and enable back.
// TODO(alexeykuzmin): [Ch66] Times out. Fix it and enable back.
xit('handles valid unicode characters in message', (done) => {
try {
w.webContents.debugger.attach()
@ -164,7 +164,7 @@ describe('debugger module', () => {
})
})
// TODO(alexeykuzmin): Times out. Fix it and enable back.
// TODO(alexeykuzmin): [Ch66] Times out. Fix it and enable back.
xit('does not crash for invalid unicode characters in message', (done) => {
try {
w.webContents.debugger.attach()

Просмотреть файл

@ -4,7 +4,7 @@ const features = process.atomBinding('features')
const isCI = remote.getGlobal('isCi')
// FIXME(alexeykuzmin): Crashes the app.
// FIXME(alexeykuzmin): [Ch66] Crashes the app.
// Fix the crash and enable the tests.
xdescribe('desktopCapturer', () => {
before(function () {

Просмотреть файл

@ -90,7 +90,7 @@ describe('session module', () => {
})
})
// TODO(alexeykuzmin): Fails. Fix it and enable back.
// TODO(alexeykuzmin): [Ch66] Fails. Fix it and enable back.
xit('calls back with an error when setting a cookie with missing required fields', (done) => {
session.defaultSession.cookies.set({
url: '',

Просмотреть файл

@ -613,7 +613,7 @@ describe('asar package', function () {
})
})
// TODO(alexeykuzmin): Fail on timeout.
// TODO(alexeykuzmin): [Ch66] Fail on timeout.
// Fix them and enable.
xdescribe('child_process.fork', function () {
it('opens a normal js file', function (done) {
@ -768,7 +768,8 @@ describe('asar package', function () {
})
})
describe('process.env.ELECTRON_NO_ASAR', function () {
// TODO(alexeykuzmin): [Ch66] Fix the tests.
xdescribe('process.env.ELECTRON_NO_ASAR', function () {
it('disables asar support in forked processes', function (done) {
const forked = ChildProcess.fork(path.join(__dirname, 'fixtures', 'module', 'no-asar.js'), [], {
env: {
@ -940,7 +941,8 @@ describe('asar package', function () {
assert(stats.isFile())
})
it('is available in forked scripts', function (done) {
// TODO(alexeykuzmin): [Ch66] Fix the test.
xit('is available in forked scripts', function (done) {
var child = ChildProcess.fork(path.join(fixtures, 'module', 'original-fs.js'))
child.on('message', function (msg) {
assert.equal(msg, 'object')

Просмотреть файл

@ -18,7 +18,8 @@ describe('modules support', () => {
require('runas')
})
it('can be required in node binary', (done) => {
// TODO(alexeykuzmin): [Ch66] Fix the test.
xit('can be required in node binary', (done) => {
const runas = path.join(fixtures, 'module', 'runas.js')
const child = require('child_process').fork(runas)
child.on('message', (msg) => {

Просмотреть файл

@ -11,7 +11,7 @@ describe('node feature', () => {
const fixtures = path.join(__dirname, 'fixtures')
describe('child_process', () => {
// TODO(alexeykuzmin): Time out. Fix them and enable.
// TODO(alexeykuzmin): [Ch66] Time out. Fix them and enable.
xdescribe('child_process.fork', () => {
it('works in current process', (done) => {
const child = ChildProcess.fork(path.join(fixtures, 'module', 'ping.js'))
@ -104,7 +104,8 @@ describe('node feature', () => {
})
})
describe('child_process.spawn', () => {
// TODO(alexeykuzmin): [Ch66] Fix the test.
xdescribe('child_process.spawn', () => {
let child
afterEach(() => {
@ -202,7 +203,7 @@ describe('node feature', () => {
})
})
// TODO(alexeykuzmin): Time out. Fix them and enable back.
// TODO(alexeykuzmin): [Ch66] Time out. Fix them and enable back.
xdescribe('inspector', () => {
let child
@ -284,7 +285,8 @@ describe('node feature', () => {
}
})
it('emit error when connect to a socket path without listeners', (done) => {
// TODO(alexeykuzmin): [Ch66] Fix the test.
xit('emit error when connect to a socket path without listeners', (done) => {
const socketPath = path.join(os.tmpdir(), 'atom-shell-test.sock')
const script = path.join(fixtures, 'module', 'create_socket.js')
const child = ChildProcess.fork(script, [socketPath])

1223
spec/package-lock.json сгенерированный Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1471,7 +1471,8 @@ describe('<webview> tag', function () {
if (div != null) div.remove()
})
it('emits resize events', (done) => {
// TODO(alexeykuzmin): [Ch66] Enable the test.
xit('emits resize events', (done) => {
webview.addEventListener('dom-ready', () => {
div.style.width = '1234px'
div.style.height = '789px'
@ -1530,7 +1531,8 @@ describe('<webview> tag', function () {
return Promise.all([elementResize, guestResize])
})
it('does not resize guest when attribute is present', async () => {
// TODO(alexeykuzmin): [Ch66] Enable the test.
xit('does not resize guest when attribute is present', async () => {
const INITIAL_SIZE = 200
const w = await openTheWindow(
{show: false, width: INITIAL_SIZE, height: INITIAL_SIZE})
@ -1554,7 +1556,8 @@ describe('<webview> tag', function () {
return noGuestResizePromise
})
it('dispatches element resize event even when attribute is present', async () => {
// TODO(alexeykuzmin): [Ch66] Enable the test.
xit('dispatches element resize event even when attribute is present', async () => {
const INITIAL_SIZE = 200
const w = await openTheWindow(
{show: false, width: INITIAL_SIZE, height: INITIAL_SIZE})
@ -1574,7 +1577,8 @@ describe('<webview> tag', function () {
return elementResizePromise
})
it('can be manually resized with setSize even when attribute is present', async () => {
// TODO(alexeykuzmin): [Ch66] Enable the test.
xit('can be manually resized with setSize even when attribute is present', async () => {
const INITIAL_SIZE = 200
const w = await openTheWindow(
{show: false, width: INITIAL_SIZE, height: INITIAL_SIZE})