electron/spec/fixtures/pages
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
..
partition Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
permissions Add spec for midi without sysex permission 2017-01-19 09:05:59 +02:00
save_page spec: Remove annoying outputs from savePage test 2016-01-15 16:36:35 +08:00
service-worker Print detailed error for serviceWorker test (#12186) 2018-03-08 21:06:29 -05:00
storage add spec 2016-09-22 00:15:25 +05:30
a.html chore: [gn] fix CSP warning in debugger API test (#13541) 2018-07-06 15:01:33 -04:00
audio.html Fix the media events test 2018-06-19 11:49:45 +10:00
b.html protocol: fix registerStandardSchemes api 2016-05-08 01:36:34 +05:30
base-page-security.html feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
base-page.html add tests for webview devtools-* events 2016-01-01 04:49:29 -08:00
basic-auth.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
beforeunload-false.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
c.html Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
cache-storage.html finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test 2016-12-12 12:49:57 -08:00
close.html
content.html add api to webview 2015-12-21 17:13:23 +05:30
d.html Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
did-get-response-details.html Add resourceType arg to webContents did-get-response-details event. 2016-04-08 11:19:36 -07:00
dom-ready.html
e.html
external-string.html fix: do not expose Node's external strings (#13438) 2018-06-27 10:18:09 +10:00
filesystem.html add spec and docs 2016-08-24 06:53:14 +05:30
focus-web-contents.html Update blur parent window spec 2017-02-15 08:28:55 -08:00
fullscreen.html
history-replace.html Test that replacement history entries don't break forward navigation. 2016-09-16 17:08:54 -07:00
history.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
insecure-resources.html feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
ipc-message.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
jquery.html fix the crash when loading site with jquery (#13475) 2018-06-29 09:42:04 +09:00
key-events.html Add char/keypress event tests 2016-10-10 09:35:44 -07:00
media-id-reset.html add spec 2016-12-04 00:22:57 +05:30
native-module.html
onkeyup.html Assert key and code in keyup input event spec 2016-10-10 09:35:44 -07:00
onmouseup.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
pdf-in-iframe.html Fix missing eof missing from html test files 2017-11-13 21:22:36 +01:00
pdf-in-nested-iframe.html Fix missing eof missing from html test files 2017-11-13 21:22:36 +01:00
ping-pong.html spec: ipcRenderer.sendTo sends message to WebContents 2016-05-28 20:50:30 +09:00
ping.html spec: webview should work without script tag in page 2016-04-12 15:10:26 +09:00
post.html
process-exit.html Merge branch 'webcontent_invalid_loadurl_patch' of https://github.com/deepak1556/atom-shell into deepak1556-webcontent_invalid_loadurl_patch 2016-02-15 21:14:54 +08:00
referrer.html
resize.html Allow webview guests to be resized manually 2016-11-15 11:00:09 -08:00
set-global.html
shared_worker.html test: Node integration in web workers 2017-03-20 12:52:46 -07:00
target-name.html
theme-color.html Add tests for did-change-theme-color event 2015-12-22 23:05:03 -05:00
useragent.html
visibilitychange.html Add failing spec for webview visiblity changes 2016-05-25 09:12:52 -07:00
webframe-zoom.html add temporary zoom api spec 2017-02-18 01:34:32 +05:30
webview-allowpopups.html feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
webview-custom-zoom-level.html add zoom specs based on standard protocols 2017-02-18 01:41:39 +05:30
webview-devtools.html WebInspector has been split up 2017-02-06 10:34:29 -08:00
webview-did-attach-event.html Add did-attach-webview event 2017-10-07 22:52:20 +09:00
webview-did-navigate-in-page-with-hash.html add tests to insure window.location.hash changes & window.history.replaceState cause 'did-navigate-in-page' to fire 2016-01-01 18:51:47 -08:00
webview-did-navigate-in-page-with-history.html add tests to insure window.location.hash changes & window.history.replaceState cause 'did-navigate-in-page' to fire 2016-01-01 18:51:47 -08:00
webview-did-navigate-in-page.html add tests for will-navigate, did-navigate-to-different-page, did-navigate-in-page events in webview 2016-01-01 18:13:07 -08:00
webview-guest-resize.html Slightly rewrite <webview> tag tests (#13122) 2018-06-01 10:56:48 +02:00
webview-in-page-navigate.html add zoom specs based on standard protocols 2017-02-18 01:41:39 +05:30
webview-move-to-window.html Add a guestinstance attribute to webviews reflecting their current guest 2016-09-09 10:32:05 -07:00
webview-no-guest-resize.html Slightly rewrite <webview> tag tests (#13122) 2018-06-01 10:56:48 +02:00
webview-no-node-integration-on-window.html Add failing spec 2016-04-21 11:49:42 -07:00
webview-no-script.html spec: webview should work without script tag in page 2016-04-12 15:10:26 +09:00
webview-opener-no-node-integration.html Remove stray log 2016-04-01 16:52:28 -07:00
webview-opener-postMessage.html Add spec for window.open from <webview> 2016-06-09 12:02:01 -07:00
webview-origin-zoom-level.html add spec 2017-03-08 19:16:55 +05:30
webview-stripped-preload.html Add explicit spec for removing preload from webview 2017-05-17 13:47:00 -07:00
webview-visibilitychange.html Remove logging in parent page 2016-05-25 09:12:52 -07:00
webview-will-navigate.html add tests for will-navigate, did-navigate-to-different-page, did-navigate-in-page events in webview 2016-01-01 18:13:07 -08:00
webview-zoom-factor.html Add test for webview zoomFactor inheritance 2016-05-19 14:46:52 -07:00
will-navigate.html
window-no-javascript.html Add failing spec for inheriting Javascript web preference 2017-04-25 12:57:53 -07:00
window-open-hide.html
window-open-postMessage.html Remove use of now private guestId 2017-01-16 12:38:16 -08:00
window-open-size.html Read window size properly in window.open test 2015-12-02 11:50:44 -08:00
window-open.html Add failing spec for cycle in options 2017-01-06 09:58:40 -08:00
window-opener-location.html spec: Should check origin before accessing window.opener 2016-11-16 07:50:30 -08:00
window-opener-no-node-integration.html Remove semicolons 2016-04-01 16:52:55 -07:00
window-opener-no-web-view-tag.html Set appropriate defaults for webview options (#12271) 2018-03-15 13:56:46 +09:00
window-opener-no-webview-tag.html Add failing spec for webviewTag inheritance 2017-05-17 13:27:28 -07:00
window-opener-node.html Add clearer assertion of process being undefined 2016-04-01 16:40:33 -07:00
window-opener-postMessage.html
window-opener-targetOrigin.html Add more non-matching target origins 2017-05-01 08:45:38 -07:00
window-opener-web-view.html Set appropriate defaults for webview options (#12271) 2018-03-15 13:56:46 +09:00
window-opener-webview.html Add failing spec for webviewTag inheritance 2017-05-17 13:27:28 -07:00
window-opener.html Use require('electron') in Electron's code 2015-11-12 20:29:30 +08:00
worker.html test: Node integration in web workers 2017-03-20 12:52:46 -07:00
zoom-factor.html add zoom specs based on standard protocols 2017-02-18 01:41:39 +05:30