mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore(tests): allow usage of deprecated APIs in tests (#13659)
This commit is contained in:
committed by
Samuel Attard
parent
c2218cc414
commit
69f6bd921b
@@ -10,8 +10,8 @@
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
(function() {
|
||||
// Disable use of deprecated functions.
|
||||
process.throwDeprecation = true
|
||||
// Deprecated APIs are still supported and should be tested.
|
||||
process.throwDeprecation = false
|
||||
|
||||
const path = require('path')
|
||||
const electron = require('electron')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Disable use of deprecated functions.
|
||||
process.throwDeprecation = true
|
||||
// Deprecated APIs are still supported and should be tested.
|
||||
process.throwDeprecation = false
|
||||
|
||||
const electron = require('electron')
|
||||
const {app, BrowserWindow, crashReporter, dialog, ipcMain, protocol, webContents} = electron
|
||||
|
||||
Reference in New Issue
Block a user