electron/spec
Jeremy Apthorp f50f8e3f3d chore: [gn] fix CSP warning in debugger API test (#13541)
There's an attempt to suppress the warning in `spec/static/main.js`, which
sets `process.env.ELECTRON_DISABLE_SECURITY_WARNINGS`. However, it sets the
variable too late in the boot process: by the time that line in main.js has
run, a child zygote has already been booted. `test.py` works around this by
setting that environment variable outside of the test process, to ensure that
it gets propagated to all children.

I've been running the GN tests directly with `./out/Default/electron
electron/spec`, rather than through the wrapper script, and the
`api-debugger-spec.js` tests were failing, because they depend on a particular
log message being the first one emitted, and the CSP warning was causing that
test to fail, since it wasn't being correctly suppressed.

Instead of writing another wrapper script, this just fixes the underlying thing
that the warning is complaining about, which I think is reasonable because the
test's pass/fail depends on this specific behaviour.
2018-07-06 15:01:33 -04:00
..
fixtures chore: [gn] fix CSP warning in debugger API test (#13541) 2018-07-06 15:01:33 -04:00
static Exposing process.env status (#12166) 2018-03-14 12:01:40 +09:00
api-app-spec.js FIXME: getAppMetrics fails on windows CI 2018-06-19 11:49:46 +10:00
api-auto-updater-spec.js spec: update auto-updater spec to expect (#13237) 2018-06-16 00:28:28 -07:00
api-browser-view-spec.js spec: update browser-view spec to expect (#13238) 2018-06-17 15:56:04 -07:00
api-browser-window-affinity-spec.js spec: update browser-window-affinity spec to expect (#13239) 2018-06-17 15:36:30 -07:00
api-browser-window-spec.js spec: disable the i18nString test 2018-07-06 09:07:56 +09:00
api-callbacks-registry-spec.js spec: update callback registry spec to expect (#13263) 2018-06-17 15:08:17 -07:00
api-clipboard-spec.js spec: convert clipboard spec to use expect (#13266) 2018-06-17 14:47:51 -07:00
api-crash-reporter-spec.js Enable a few tests 2018-06-19 11:49:46 +10:00
api-debugger-spec.js Merge branch 'master' into expect-debugger-spec 2018-06-19 11:22:25 -04:00
api-deprecations-spec.js fix: deprecate properties in app.getAppMetrics() (#13446) 2018-06-26 23:47:01 -07:00
api-desktop-capturer-spec.js Remove stray .only 2018-06-19 11:49:46 +10:00
api-dialog-spec.js spec: convert dialog spec to expect (#13271) 2018-06-18 07:56:03 -07:00
api-global-shortcut-spec.js spec: convert IAP and GC specs to expect (#13272) 2018-06-18 09:50:37 -07:00
api-in-app-purchase-spec.js spec: convert IAP and GC specs to expect (#13272) 2018-06-18 09:50:37 -07:00
api-ipc-main-spec.js spec: convert ipc specs to expect (#13273) 2018-06-19 10:21:50 -05:00
api-ipc-renderer-spec.js spec: convert ipc specs to expect (#13273) 2018-06-19 10:21:50 -05:00
api-menu-item-spec.js spec: convert menu specs to expect (#13485) 2018-06-30 00:25:28 -07:00
api-menu-spec.js spec: convert menu specs to expect (#13485) 2018-06-30 00:25:28 -07:00
api-native-image-spec.js Remove nativeImage deprecated methods (#11978) 2018-02-20 09:15:27 -06:00
api-net-log-spec.js feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
api-net-spec.js feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
api-notification-dbus-spec.js Linux named notifications (#12192) 2018-03-12 09:33:06 +09:00
api-notification-spec.js Add Notification tests 2018-02-10 03:19:47 -08:00
api-power-monitor-spec.js powerMontor crashes linux ia32, re-disable 2018-06-19 11:49:46 +10:00
api-power-save-blocker-spec.js
api-process-spec.js Add process.getHeapStatistics() (#13183) 2018-06-10 22:00:36 +10:00
api-protocol-spec.js reenable some specs 2018-01-02 16:37:08 +09:00
api-remote-spec.js perf: don't use JSON to send the result of ipcRenderer.sendSync. (#8953) 2018-06-13 17:38:31 +10:00
api-screen-spec.js remove screen.getMenuBarHeight spec 2018-03-05 20:10:34 -05:00
api-session-spec.js Re-enable cookie specs and add custom cookie name/url validation 2018-06-19 11:49:46 +10:00
api-shell-spec.js Explicitly skip tests that should be skipped 2017-11-20 14:43:23 +01:00
api-system-preferences-spec.js add loop to catch null values 2017-12-13 14:02:43 -05:00
api-touch-bar-spec.js
api-view-spec.js add tests for View and WebContentsView 2018-05-21 10:53:09 +09:00
api-web-contents-spec.js FIXME: Disable some of the focus related tests 2018-06-19 11:49:46 +10:00
api-web-contents-view-spec.js add tests for View and WebContentsView 2018-05-21 10:53:09 +09:00
api-web-frame-spec.js remove setZoomLevelLimits 2018-02-20 08:57:48 -05:00
api-web-request-spec.js 🔧 Spec: Fix style issues 2017-11-23 14:22:58 -08:00
asar-spec.js spec: fix asar spec due to change in node.js 2018-06-19 10:42:21 -07:00
chromium-spec.js fix the crash when loading site with jquery (#13475) 2018-06-29 09:42:04 +09:00
events-helpers.js spec: add helper functions for async/await tests 2018-06-19 13:27:43 +02:00
modules-spec.js re-enable native module tests 2018-06-19 11:49:46 +10:00
node-spec.js Enable a test 2018-06-19 11:49:46 +10:00
package-lock.json test: Upgrade spec dependencies (#13310) 2018-06-20 17:18:24 +10:00
package.json test: Upgrade spec dependencies (#13310) 2018-06-20 17:18:24 +10:00
security-warnings-spec.js update signature for setCertificateVerifyProc in session spec 2018-05-29 10:54:27 -04:00
webview-spec.js test: temporarily disable failing specs (#13470) 2018-06-27 14:15:24 -07:00
window-helpers.js spec: refactor helper closeWindow() function (#13337) 2018-06-22 00:43:15 +10:00