electron/spec
Zhuo Lu ab24a1e36d feat: netLog API for dynamic logging control (#13068)
* Introduce `net.{start|stop}Logging()`

- Slight regression right now as Electron won't automatically start logging net-logs at launch, will soon be fixed
- To implement callback for async controls

* Add `net.isLogging` & optional callback param for `net.stopLogging()`

* Fix small regression on --log-net-log

--log-net-log should work again

* Error on empty file path

* Only start with valid file path

* Remove unused var

* Allow setting log file path before URLRequestContextGetter starts logging

* Add net log tests

* Remove redundant checks

* Use brightray::NetLog

* Clean up code

* Should automatically stop listening

* 🎨 Attempt to fix styles

* Only run non-null callback

* Dump file to tmpdir

* Simplify net log spec

Spawned Electron process on Linux CI can fail to launch

* Separate netLog module

* Remove net logging test from net spec

* Add tests for netLog

* Fix header guard

* Clean up code

* Add netLog.currentlyLoggingPath

* Callback with filepath

* Add test for case when only .stopLogging() is called

* Add docs

* Reintroduce error on invalid arg

* Update copyright

* Update error message

* Juggle file path string types
2018-06-19 11:45:58 +10:00
..
fixtures feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
static Exposing process.env status (#12166) 2018-03-14 12:01:40 +09:00
api-app-spec.js spec: update app spec to assert (#13155) 2018-06-14 09:44:27 -07: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 exit HTML fullscreen when window leaves fullscreen (#13090) 2018-06-18 16:48:20 +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 spec: better texts for the Crash Reporter tests (#13227) 2018-06-14 19:24:28 +10:00
api-debugger-spec.js Fix and update debugger UTF char test 2018-02-01 16:47:52 -08:00
api-deprecations-spec.js feat: warn if deprecated property is already set 2018-05-29 15:58:02 +02:00
api-desktop-capturer-spec.js Add "enable_desktop_capturer" build flag (#13133) 2018-06-13 11:15:34 -05: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 remove extraneous variables 2017-12-01 16:11:54 -05:00
api-ipc-renderer-spec.js remove extraneous variables 2017-12-01 16:11:54 -05:00
api-menu-item-spec.js improve Menu and MenuItem testing (#12015) 2018-02-23 07:53:59 -06:00
api-menu-spec.js Add menu item order control (#12362) 2018-05-05 09:37:29 -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 feat(powerMonitor): expose interface to query system idle state (#11807) 2018-03-14 14:42:08 +09:00
api-power-save-blocker-spec.js Add initial power save blocker spec 2016-08-09 15:05:56 -07:00
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 remove deprecated signature tests 2018-05-29 11:42:03 -04: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 update touch bar spec 2017-10-26 21:08:47 -04:00
api-view-spec.js add tests for View and WebContentsView 2018-05-21 10:53:09 +09:00
api-web-contents-spec.js Deprecate did-get-response-details and did-get-redirect-request (#12615) 2018-04-23 14:46:12 -05: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: Don’t use deprecated `new Buffer()` 2017-11-23 14:22:31 -08:00
chromium-spec.js Support for navigator.languages (#12419) 2018-04-02 12:47:00 +09:00
modules-spec.js Allow CI building on arm64 hardware 2018-03-08 09:53:47 -05:00
node-spec.js Enable node crypto spec 2018-03-20 10:13:16 +03:00
package.json spec: update app spec to assert (#13155) 2018-06-14 09:44:27 -07:00
security-warnings-spec.js update signature for setCertificateVerifyProc in session spec 2018-05-29 10:54:27 -04:00
webview-spec.js Slightly rewrite <webview> tag tests (#13122) 2018-06-01 10:56:48 +02:00
window-helpers.js Assert single window from closeWindow helper 2016-11-29 11:29:20 -08:00