autoformat more files

This commit is contained in:
Zeke Sikelianos 2016-03-25 13:03:49 -07:00 committed by Kevin Sawicki
parent 06b556c34c
commit f35f362272
47 changed files with 4458 additions and 4459 deletions

View file

@ -1,27 +1,27 @@
const assert = require('assert');
const deprecations = require('electron').deprecations;
const assert = require('assert')
const deprecations = require('electron').deprecations
describe('deprecations', function() {
beforeEach(function() {
deprecations.setHandler(null);
process.throwDeprecation = true;
});
describe('deprecations', function () {
beforeEach(function () {
deprecations.setHandler(null)
process.throwDeprecation = true
})
it('allows a deprecation handler function to be specified', function() {
var messages = [];
it('allows a deprecation handler function to be specified', function () {
var messages = []
deprecations.setHandler(function (message) {
messages.push(message);
});
messages.push(message)
})
require('electron').webFrame.registerUrlSchemeAsSecure('some-scheme');
require('electron').webFrame.registerUrlSchemeAsSecure('some-scheme')
assert.deepEqual(messages, ['registerUrlSchemeAsSecure is deprecated. Use registerURLSchemeAsSecure instead.']);
});
assert.deepEqual(messages, ['registerUrlSchemeAsSecure is deprecated. Use registerURLSchemeAsSecure instead.'])
})
it('throws an exception if no deprecation handler is specified', function() {
assert.throws(function() {
require('electron').webFrame.registerUrlSchemeAsPrivileged('some-scheme');
}, "registerUrlSchemeAsPrivileged is deprecated. Use registerURLSchemeAsPrivileged instead.");
});
});
it('throws an exception if no deprecation handler is specified', function () {
assert.throws(function () {
require('electron').webFrame.registerUrlSchemeAsPrivileged('some-scheme')
}, 'registerUrlSchemeAsPrivileged is deprecated. Use registerURLSchemeAsPrivileged instead.')
})
})