shelley vohr
ca34978e73
add app.setLocale() ( #11469 )
...
* infrastructure for setLocale via klang
* add documentation for setLocale
* add test for setLocale
* fix spec
* add spec and update docs
* fix carriage feeds on windows
* SetLocale() sets LC_ALL on Linux
* in SetLocale() on Linux, use g_setenv()
* fix tyop: '#ifdef OSX_POSIX'
* make the linter happy
* improvements from review
2018-02-08 08:26:37 -06:00
shelley vohr
5240352326
Remove extra menu separators ( #11827 )
...
* add function to remove leading/trailing separators
* change const name for clarity
* add spec to check filtered separators
* clean method and add edge case spec per review
2018-02-05 11:55:12 -06:00
shelley vohr
e6a5990b95
Merge pull request #11774 from nitsakh/fix-invalid-utf
...
Handle invalid utf8 characters for debugger
2018-02-05 12:44:41 -05:00
Thiago de Arruda
df6328e5d7
Add some tests for powerMonitor "shutdown" event
2018-02-05 15:21:31 +09:00
Felix Rieseberg
d586ef2f39
feature: Hot security tips ( #11810 )
...
* 🔧 Add security issue detection (and logs)
* 🔧 Check for it on load
* 👷 Add some tests
* 👷 Make the linter happy
* 🔧 Allow them to be enabled by force
* 📝 Make message slightly prettier
* 🔧 Fix a typo in the code comment
* 🔧 Classic mistake
* 🚀 Optimize things a bit more
* 👷 Add tests, fix tests
* 📝 Document things
* 🔧 Make linter happy
* 🔧 One more piece of cleanup
2018-02-03 07:50:12 -07:00
Nitish Sakhawalkar
62d2a3472f
Fix test BrowserWindow.addTabbedWindow() ( #11795 )
...
* Fix test BrowserWindow.addTabbedWindow()
* Address review comments
2018-02-02 19:31:02 -07:00
Nitish Sakhawalkar
e411b49f4e
Fix and update debugger UTF char test
2018-02-01 16:47:52 -08:00
Shelley Vohr
3d032c2b57
forgot to remove .only from spec
2018-01-27 12:38:55 -05:00
Shelley Vohr
3679a9c37a
fix event callback placement in spec
2018-01-27 12:36:51 -05:00
Shelley Vohr
e345342e36
add first pass at menu event specs
2018-01-27 11:23:46 -05:00
OJ Kwon
690a9e9483
test(webframe): add basic test case
2018-01-26 10:57:52 -08:00
Aleš Pergl
c49cb29ddf
Disallow launching unknown apps via browser client.
...
CVE-2018-1000006
2018-01-22 16:49:30 -06:00
Nitish Sakhawalkar
ea2056b513
Replace arrow function
2018-01-17 15:27:11 +09:00
Nitish Sakhawalkar
7aefc73ffd
Fix lint
2018-01-17 15:27:11 +09:00
Nitish Sakhawalkar
28f1abcb05
Change macos app termination process
2018-01-17 15:27:11 +09:00
Cheng Zhao
bd271cffb9
Throw when inAppPurchase is used on unsupported platforms
2018-01-10 18:53:55 +09:00
Cheng Zhao
ac6f895f64
Turn InAppPurchase into an EventEmitter
2018-01-10 16:37:05 +09:00
Cheng Zhao
bdeb979d41
spec: Simple tests for inAppPurchase module
2018-01-10 15:21:53 +09:00
deepak1556
fd297722a8
Note about incorrect usage of blink::SchemeRegistry methods
2018-01-02 16:37:10 +09:00
deepak1556
1912fbb073
reenable some specs
2018-01-02 16:37:08 +09:00
deepak1556
88e53b1b5e
REVIEW: destroy process singleton on sequence where IO is allowed
2018-01-02 16:37:07 +09:00
deepak1556
c3154d86e0
FIXME: disable some specs
2018-01-02 16:37:07 +09:00
deepak1556
b4e6516ad8
fix dcheck failure with invalid UTF8 string conversion for base::Value
2018-01-02 16:37:05 +09:00
Cheng Zhao
46330ac2a9
Remove the closed event of Menu
...
The callback of Menu.popup does more things, and there is actually no
request for the closed event.
2018-01-01 17:22:07 +09:00
Cheng Zhao
73d78d345a
Make callback work for old-style Menu.popup call
...
While the old-style Menu.popup has been deprecated, it is still being
used widely in apps and even in Electron itself.
2018-01-01 17:17:01 +09:00
Cheng Zhao
2ec3b8ce76
spec: callback for Menu.popup
2018-01-01 16:56:22 +09:00
Cheng Zhao
2e3d940749
Fix "test.py -g Menu" not working
2018-01-01 15:46:39 +09:00
Felix Rieseberg
5f4b62b6c8
feat: Allow testing of single spec modules ( #11409 )
...
* 🔧 ES6 for the spec
* 👷 Allow testing of single modules
* ❤️ Implement feedback
* 📝 Add a testing doc
* 📝 Link to it
* 📝 Cleanup
2017-12-28 06:18:33 -05:00
Cheng Zhao
75ac7d9ff2
spec: Add test for crypto operation
2017-12-27 20:37:04 +09:00
Heilig Benedek
5bf16c2495
remove async:true from menu tests
2017-12-20 15:41:12 +09:00
Heilig Benedek
ef7357dedc
update tests for menu closed event and call cancel on closePopup
2017-12-20 15:40:07 +09:00
Heilig Benedek
14b65467d8
add test for menu closed event
2017-12-20 15:40:07 +09:00
Charles Kerr
a8b76e1a80
Merge pull request #11418 from electron/add-reg-defaults
...
[WIP] add back systemPreferences.registerDefaults()
2017-12-13 15:48:20 -06:00
Shelley Vohr
3fc844c15a
add loop to catch null values
2017-12-13 14:02:43 -05:00
Felix Rieseberg
317422f431
👷 Close popup in aftereach
2017-12-12 12:23:02 -08:00
Felix Rieseberg
c4ec8b4545
🔧 Feedback
2017-12-12 11:25:01 -08:00
Felix Rieseberg
76df41b5d0
👷 Properly test x vs y
2017-12-12 11:25:01 -08:00
Felix Rieseberg
ace558f54a
👷 Hence, better testing
2017-12-12 11:25:01 -08:00
Felix Rieseberg
5a658fa5f6
👷 Add a spec
2017-12-12 11:25:01 -08:00
Shelley Vohr
6252ce466c
remove failing badDefault
2017-12-12 13:39:38 -05:00
Shelley Vohr
8b447b9291
fixing error in registerDefaults
2017-12-12 13:08:09 -05:00
Charles Kerr
5720a8e7d5
Merge pull request #11415 from electron/revert-11385-async-menu
...
Revert "fix: Fix `menu.popup()` bugs"
2017-12-12 08:56:12 -06:00
Alexey Kuzmin
1c8eb03574
Revert "fix: Fix menu.popup()
bugs"
2017-12-12 13:59:34 +03:00
Alexey Kuzmin
1caa04c0bf
Revert "Add systemPreferences.registerDefaults()"
2017-12-12 13:59:15 +03:00
Charles Kerr
e73fe100d5
Merge pull request #11385 from electron/async-menu
...
fix: Fix `menu.popup()` bugs
2017-12-11 18:02:33 -06:00
Shelley Vohr
a8e67e7f61
fixes from review
2017-12-11 18:20:12 -05:00
Felix Rieseberg
89b90be6a2
🔧 Feedback
2017-12-11 14:43:35 -08:00
Felix Rieseberg
f7ebfff8ae
👷 Properly test x vs y
2017-12-11 14:05:07 -08:00
Felix Rieseberg
dfd7598d48
👷 Hence, better testing
2017-12-11 14:03:04 -08:00
Shelley Vohr
84bab48627
improve error handling
2017-12-11 13:11:03 -05:00
Shelley Vohr
765f223fef
update docs and spec
2017-12-11 13:06:23 -05:00
Shelley Vohr
c5aeda1fdd
fixes from code review
2017-12-11 00:20:26 -05:00
Shelley Vohr
8a24733ee6
add fail spec and only run mac ci
2017-12-10 12:52:03 -05:00
Shelley Vohr
becabdfff2
add test for registerDefaults
2017-12-10 11:26:07 -05:00
Felix Rieseberg
725f6c97d6
👷 Add a spec
2017-12-08 14:52:21 -08:00
Shelley Vohr
276f758560
remove deprecated method call
2017-12-07 14:26:57 -05:00
Charles Kerr
5fa29fcf58
Merge pull request #11329 from electron/remove-classes-key
...
fix: Properly cleanup in `removeAsDefaultProtocolClient`
2017-12-06 17:31:50 -06:00
Felix Rieseberg
bd4c7a114a
👷 Fix the last broken test
2017-12-05 17:07:22 -08:00
Felix Rieseberg
bf043c92af
👷 Ugh, whitespace
2017-12-05 13:20:34 -08:00
Felix Rieseberg
e6cbb2f3aa
👷 Cleanup on Windows only
2017-12-05 12:14:19 -08:00
Felix Rieseberg
d519bfc5fb
👷 Linter fascism
2017-12-05 11:38:19 -08:00
Felix Rieseberg
997f3f31d2
👷 Cleanup after the test
2017-12-05 11:31:40 -08:00
Felix Rieseberg
e77751aab5
👷 Test registry interaction
2017-12-05 11:28:39 -08:00
Felix Rieseberg
60634cac42
📦 Install winreg
2017-12-05 11:28:19 -08:00
Thiago de Arruda
dfd98e3428
Add linux powerMonitor tests using python-dbusmock
2017-12-05 08:33:36 -03:00
Cheng Zhao
cb3a9c69ab
Add a SessionPreferences to manage session related data
...
By design the BrowserClient should not be aware of the api:: classes.
2017-12-05 15:59:15 +09:00
Samuel Attard
eaa4b71c24
Remove .only
2017-12-05 11:35:54 +09:00
Samuel Attard
009459bd38
Standard JS
2017-12-05 11:35:54 +09:00
Samuel Attard
3b80ee0655
Move global preload implementation to be session based
2017-12-05 11:35:53 +09:00
Samuel Attard
0ddd078aaf
Add ability to set global preload scripts
2017-12-05 11:35:27 +09:00
Cheng Zhao
d598aa1a67
Merge pull request #11300 from electron/external-devtools
...
Add API to set arbitrary WebContents as devtools
2017-12-05 10:35:49 +09:00
Charles Kerr
3e056eec9e
Merge pull request #11297 from electron/remove-travis
...
Remove Travis references
2017-12-04 10:56:53 -06:00
Ales Pergl
ecdbe79e29
Make the asar-video test run faster
...
I cut the video to 3 seconds and removed the audio track, which makes the test
finish a lot sooner. Also the asar file is 160 kB instead of 1 MB.
2017-12-02 11:30:57 +01:00
Shelley Vohr
45de1e6a7c
remove extraneous variables
2017-12-01 16:11:54 -05:00
Shelley Vohr
af6489576a
remove onlys
2017-12-01 16:01:03 -05:00
Shelley Vohr
00e8713eac
split ipc tests into three files
2017-12-01 15:57:41 -05:00
John Kleinschmidt
d182bacd00
Ignore/remove package-lock files
2017-12-01 12:55:55 -05:00
Cheng Zhao
ea9771702b
spec: setDevToolsWebContents
2017-12-01 10:35:23 +09:00
John Kleinschmidt
0ef8f58090
Remove Travis references
2017-11-30 15:39:32 -05:00
Zeke Sikelianos
aab35073ee
Merge pull request #11255 from electron/fix-11245
...
Enable nativeImage module addRepresentation() tests
2017-11-30 10:48:11 -08:00
Zeke Sikelianos
c1728720a7
Merge pull request #11256 from electron/fix-11244
...
Enable "<webview> tag found-in-page event emits when a request is made"
2017-11-30 10:48:00 -08:00
shelley vohr
2bc8b33c2a
Merge pull request #11291 from electron/fix-failing-spec
...
spec: Fix the failing coffee-script test
2017-11-30 13:43:58 -05:00
John Kleinschmidt
2d75eea82a
Merge pull request #11254 from electron/fix-11246
...
Enable crashReporter module tests
2017-11-30 12:55:49 -05:00
Aleksei Kuzmin
b9ed7380aa
Explicitly set alpha type of bitmaps with JPEG data to opaque
...
Actually fixes #11245 .
2017-11-30 17:56:32 +01:00
Aleksei Kuzmin
c0c983d28d
Light refactoring of the nativeImage module tests
2017-11-30 17:50:51 +01:00
Cheng Zhao
04872bb001
spec: Fix the failing coffee-script test
...
The latest version has some regression causing our test to fail.
2017-11-30 21:10:22 +09:00
Aleksei Kuzmin
275815002f
Inscrease timeout for crashReporter tests
...
Fixes #11246 .
2017-11-29 12:27:06 +01:00
Cheng Zhao
c0e9dbcc00
Merge pull request #11144 from dittos/mas-login-helper-again
...
Re-land MAS login helper (w/ regression fix)
2017-11-27 17:02:57 +09:00
Cheng Zhao
1c0ea0286e
Merge pull request #11235 from electron/standard-10
...
infra: Upgrade to StandardJS 10
2017-11-27 15:42:52 +09:00
deepak1556
084292f3ab
fix: focus the webview as a temp workaround
2017-11-25 20:18:01 +05:30
Aleksei Kuzmin
3e9f9429d1
Enable "<webview> tag found-in-page event emits when a request is made"
...
Fixes #11244 .
2017-11-25 13:21:26 +01:00
Aleksei Kuzmin
91e4193622
Enable nativeImage module addRepresentation() tests
...
Fixes #11245 .
2017-11-25 12:58:33 +01:00
shelley vohr
c18afc924b
Merge pull request #10213 from electron/upgrade-to-chromium-61
...
[WIP] Upgrade to Chromium 61
2017-11-24 10:17:52 +01:00
Aleksei Kuzmin
efd949ea83
Disable a couple of crashReporter tests
2017-11-24 10:58:53 +09:00
Aleksei Kuzmin
d61564bfb1
Disable "<webview> tag > found-in-page event > emits when a request is made" test
2017-11-24 10:58:53 +09:00
Aleksei Kuzmin
c73ba5802e
Disable "nativeImage module > addRepresentation()" tests
2017-11-24 10:58:53 +09:00
deepak1556
0b88873e77
add basic inspector module test
2017-11-24 10:58:53 +09:00
Ales Pergl
82394cc06d
Use an existing host name so that it resolves quickly and tests don't time out.
2017-11-24 10:58:53 +09:00
deepak1556
2fa0b3d33e
Enable client certificate tests
2017-11-24 10:58:53 +09:00
Birunthan Mohanathas
4e859b4718
Remove "async" option from menu.popup()
...
All menus are async now. See "Cleanup MenuRunner API"
https://codereview.chromium.org/2790773002
2017-11-24 10:58:17 +09:00
Felix Rieseberg
9f0df695ca
🔧 Spec: Fix style issues
2017-11-23 14:22:58 -08:00
Felix Rieseberg
0278e380de
🔧 Spec: Don’t use deprecated new Buffer()
2017-11-23 14:22:31 -08:00
Heilig Benedek
62594780e0
run the new test only on windows
2017-11-23 21:25:26 +01:00
Heilig Benedek
710ca230f3
update tests to reflect new behaviour
2017-11-23 21:25:25 +01:00
Charles Kerr
9c217fc6c7
Merge pull request #11224 from electron/browser-view-window
...
feature: Add `BrowserWindow.fromBrowserView()`
2017-11-23 14:41:36 +01:00
Felix Rieseberg
690e8cf75b
👷 Add specs
2017-11-22 17:06:14 -08:00
Felix Rieseberg
b7bc4eb586
👷 Let’s test the undefined case, too
2017-11-22 14:38:08 -08:00
Felix Rieseberg
14db204315
👷 Add a spec
2017-11-22 14:37:46 -08:00
shelley vohr
c7e40a2a64
Merge pull request #11133 from electron/skip-tests-that-should-be-skipped
...
Explicitly skip tests that should be skipped
2017-11-21 10:13:18 +01:00
Charles Kerr
5eb00e45aa
Merge pull request #11158 from electron/execute-errors
...
fix: Pass on errors thrown in `executeJavaScript`
2017-11-20 09:14:05 -06:00
Charles Kerr
4c04f1c7ed
Merge pull request #11117 from electron/add_deprecations_spec
...
Add to deprecations spec
2017-11-20 09:07:06 -06:00
Shelley Vohr
7904be8763
comment out unused methods
2017-11-20 15:12:34 +01:00
Aleksei Kuzmin
cf749a8e18
Explicitly skip tests that should be skipped
2017-11-20 14:43:23 +01:00
shelley vohr
42d7d51b75
Merge pull request #11171 from him2him2/electron.atom.io
...
Update electron.atom.io -> electronjs.org
2017-11-20 13:05:14 +01:00
Cheng Zhao
79414d4822
Do not open devtools in tests
2017-11-20 11:05:38 +09:00
Cheng Zhao
3cc8330998
Merge branch 'master' into ahmedmohamedali-master
2017-11-20 11:04:47 +09:00
Ted Kim
71c16ad76f
lint
2017-11-20 10:17:34 +09:00
Ted Kim
1660fc8d13
Fix getLoginItemSettings timing issue
2017-11-20 10:15:45 +09:00
Ronald Eddy
14c6e78147
Update electron.atom.io -> electronjs.org
...
Update electron.atom.io -> electronjs.org to reduce redirects and speed navigation.
2017-11-19 04:01:33 -08:00
Felix Rieseberg
5b18bea7e3
🔧 Alex has good ideas
2017-11-18 10:59:09 -08:00
Felix Rieseberg
3311e0bd67
👷 This calls for tests
2017-11-18 00:51:27 -08:00
Ted Kim
d9481430df
Fix test failure
2017-11-17 10:53:21 +09:00
Shelley Vohr
7f4c501f81
remove only
2017-11-16 14:51:24 -05:00
Shelley Vohr
933c7330a5
changes from review
2017-11-16 13:39:07 -05:00
Shelley Vohr
f5c04c7037
fix includes
2017-11-16 13:27:08 -05:00
Shelley Vohr
c8b544a47d
linting is important
2017-11-16 13:27:08 -05:00
Shelley Vohr
e5983eacd6
add callbacks registry spec
2017-11-16 13:27:07 -05:00
Aleksei Kuzmin
b51a9cf4f6
Rewrite "nativeImage module" tests assertions with chai.expect()
2017-11-16 16:00:11 +03:00
Aleksei Kuzmin
367b4b05a1
Add Chai library for tests
2017-11-16 15:59:26 +03:00
Charles Kerr
3a1106d026
Merge pull request #11103 from electron/full-version-string
...
fix: Provide full and correct version in `process.version`
2017-11-14 19:18:03 -06:00
Shelley Vohr
dc410efa36
rename and fix assoc. test
2017-11-14 14:56:16 -05:00
Shelley Vohr
99d35f7786
a few more updates to tests
2017-11-14 13:33:38 -05:00
Shelley Vohr
d05a1f8053
first pass at deprecation spec updates
2017-11-13 20:21:57 -05:00
Ahmed Mohamed Ali
b6109030a1
Fix missing eof missing from html test files
2017-11-13 21:22:36 +01:00
Ahmed Mohamed Ali
1f2c949316
Merge branch 'master' of https://github.com/ahmedmohamedali/electron
2017-11-13 21:16:52 +01:00
Ahmed Mohamed Ali
ff707a0f3d
Fix issues in the file for the tests.
2017-11-13 21:13:19 +01:00
Felix Rieseberg
7c446cc61c
🔧 Actually fix the test
2017-11-13 11:22:34 -08:00
Thiago de Arruda
639dc2377f
Add tests for URLRequestStreamJob
2017-11-13 16:16:14 -03:00
Felix Rieseberg
8de9d5265a
👷 Fix the spec
2017-11-12 23:06:04 -08:00
Samuel Attard
a06a8a6f79
Merge pull request #11056 from ajmacd/allow-browser-window-logs
...
Allow BrowserWindows to emit `console-message` events.
2017-11-11 14:34:39 +11:00
Samuel Attard
ba754cf5c3
Merge pull request #11055 from electron/fix-menu-bug
...
fix: Don't crash on `setApplicationMenu(null)`
2017-11-11 14:33:18 +11:00
Ahmed
26fedcf8da
Update chromium-spec.js
2017-11-08 18:12:50 +01:00
Ahmed
9b3960fe90
Merge branch 'master' into master
2017-11-08 18:03:55 +01:00
John Kleinschmidt
26baea58c9
Merge pull request #10990 from electron/fix-10988
...
Enable "document.visibilityState/hidden" tests
2017-11-08 09:55:40 -05:00
Andrew MacDonald
51f6311f32
Handle the possibility of unexpected logs.
2017-11-08 00:09:54 -08:00
Andrew MacDonald
e51042f5a1
Add console-message test.
2017-11-07 23:45:27 -08:00
Felix Rieseberg
07dea13c77
👷 Let’s add a spec!
2017-11-07 13:29:37 -08:00
Shelley Vohr
498742d6b3
remove function invocation from crash test
2017-11-02 07:07:19 -04:00
Shelley Vohr
9727717839
Merge pull request #10974 from electron/add_crashreport_tests
...
Update Crash Report Tests
2017-11-02 01:45:39 -04:00
Shelley Vohr
a7f059d951
switch from set to add in paramater test
2017-11-02 01:02:16 -04:00
Shelley Vohr
1d6803b234
remove deprecated tests
2017-11-02 00:16:51 -04:00
Shelley Vohr
24acd74d15
update deprecation warning
2017-11-01 22:23:33 -04:00
Shelley Vohr
3af83f1c97
add new method and mark setExtraParameter for deprecation
2017-11-01 21:57:43 -04:00
Aleksei Kuzmin
2bd44612fd
Revert "Merge pull request #10989 from electron/temporary-disable-visibility-state-tests"
...
This reverts commit f3125358c0
, reversing
changes made to 7b9ad5001b
.
2017-11-02 03:22:27 +03:00
Aleksei Kuzmin
2f7718265a
Light refactoring of the nativeImage module tests
2017-11-02 03:18:32 +03:00
Aleksei Kuzmin
0df058dc1e
Temporary disable "document.visibilityState/hidden" tests
...
Task to enable them:
https://github.com/electron/electron/issues/10988
2017-11-02 00:06:38 +03:00
Shelley Vohr
6961162636
another try at fixing travis test
2017-11-01 14:26:39 -04:00
Shelley Vohr
28c009fcc0
linting is important
2017-11-01 10:56:53 -04:00
Shelley Vohr
d2e1705c80
convert app and browser spec to ES6
2017-11-01 10:48:09 -04:00
Shelley Vohr
0adf775d9a
clean fixture and fix failing travis test
2017-11-01 08:57:22 -04:00
Shelley Vohr
7f89cd0774
remove const from non-member function
2017-10-31 23:55:22 -04:00
Shelley Vohr
93df164485
add const and other small edits
2017-10-31 23:42:25 -04:00
Shelley Vohr
7b08a93549
remove pesky 'only'
2017-10-31 18:31:44 -04:00
Shelley Vohr
a538e47994
complete GetParameters method & all tests passing
2017-10-31 18:19:04 -04:00
Shelley Vohr
3136f833a5
fixes and updates to GetParameters
2017-10-31 13:51:44 -04:00
Shelley Vohr
cd19d7c705
add crashReporter parameter tests
2017-10-31 10:38:48 -04:00
Shelley Vohr
cb78e4875b
fix two failing tests
2017-10-30 23:15:57 -04:00
Shelley Vohr
603060f051
add new tests
2017-10-30 22:51:22 -04:00
Shelley Vohr
e4214a6cbe
[WIP] Upgrade more specs ( #10945 )
...
Finish upgrading specs to ES6
2017-10-27 16:45:58 -04:00
Felix Rieseberg
541b369175
👷 Add a spec
2017-10-27 11:44:41 -07:00
Shelley Vohr
9292c7ec53
Merge pull request #10938 from electron/update_protocol_test
...
Upgrade protocol spec
2017-10-27 09:48:33 -04:00
Shelley Vohr
e2d5aaf0f3
Merge pull request #10942 from electron/upgrade_specs
...
[WIP] Upgrade specs
2017-10-26 22:12:19 -04:00
Shelley Vohr
eed54a18c4
fix comment typo
2017-10-26 22:09:38 -04:00
Shelley Vohr
7a3efd1543
stop leaving onlys there
2017-10-26 21:41:29 -04:00
Shelley Vohr
abecde0572
fix shortcut spec error
2017-10-26 21:41:06 -04:00
Shelley Vohr
0317189213
update touch bar spec
2017-10-26 21:08:47 -04:00
Shelley Vohr
1130ccf69b
upgrade system pref spec
2017-10-26 20:58:48 -04:00
Shelley Vohr
d8f2183b3d
upgrade screen spec
2017-10-26 20:55:07 -04:00
Shelley Vohr
e64e9995b6
small tweak to process spec
2017-10-26 20:53:47 -04:00
Shelley Vohr
13fc080213
small tweaks to global shortcut spec
2017-10-26 20:49:21 -04:00
Shelley Vohr
6feff1d6e8
update desktop capturer spec
2017-10-26 20:44:06 -04:00
Shelley Vohr
6cd308f9ad
update deprecations spec
2017-10-26 20:37:35 -04:00
Shelley Vohr
83a290a411
update debugger spec
2017-10-26 20:32:04 -04:00
Shelley Vohr
d4350079c9
update crash reporter spec
2017-10-26 20:21:36 -04:00
Shelley Vohr
56979804ec
update clipboard spec
2017-10-26 20:12:51 -04:00
Shelley Vohr
68314dbc05
remove stray only
2017-10-26 20:11:12 -04:00
Shelley Vohr
b53e41af42
migrate api-browser-view-spec to ES6
2017-10-26 20:05:15 -04:00
Shelley Vohr
17f4e53d6b
match earlier tests to ES6 later ones
2017-10-26 16:30:07 -04:00
Shelley Vohr
bb04b22ec8
Merge pull request #10888 from electron/menu_refactor
...
refactor menu.js to bring it up to readability and es6 standards
2017-10-26 00:31:47 -04:00
Cheng Zhao
4db34ff092
Merge pull request #10711 from yuya-oc/did-attach-webview
...
Add did-attach-webview event
2017-10-26 10:55:50 +09:00
Shelley Vohr
135454342d
remove .only from spec
2017-10-24 22:41:28 -04:00
Shelley Vohr
f7bc5481f3
add a few more tests to api_menu_spec
2017-10-24 22:40:31 -04:00
Shelley Vohr
d54148de4e
remove from spec
2017-10-24 20:31:02 -04:00
Shelley Vohr
0e6100ae17
upgrade menu spec to ES6
2017-10-24 20:27:26 -04:00
Ahmed Mohamed Ali
1e9942c1bf
Fix js coding style errors
2017-10-20 08:46:41 +02:00
Ahmed Mohamed Ali
44f91e12e1
Add tests for fix described in #10793
2017-10-19 16:15:02 +02:00
Boik
f40cc5ab54
add error code to session.setCertificateVerifyProc
2017-10-16 17:17:21 +08:00
Birunthan Mohanathas
13b9b5c0c0
Merge pull request #10746 from electron/removeuserdefault
...
Add systemPreferences.removeUserDefault()
2017-10-12 16:08:57 +03:00
Birunthan Mohanathas
06d782279c
Add systemPreferences.removeUserDefault()
...
This can be used to restore the default or global value of a `key`
previously set with `setUserDefault`.
2017-10-10 22:57:47 +03:00
Samuel Attard
ed25941c65
Add basic specs
2017-10-10 17:30:27 +11:00
Yuya Ochiai
6326c6727e
Add did-attach-webview event
2017-10-07 22:52:20 +09:00
John Kleinschmidt
15bfb86eec
Make sure test closes window
...
Newly added test was leaving window open causing tests to fail
2017-10-04 11:35:41 -04:00
Cheng Zhao
8c5bb5969c
Merge pull request #10667 from dittos/window-opacity
...
Add window opacity support
2017-10-04 15:03:45 +09:00
Daniel Ma
1bb042a661
feat(NativeWindowMac): addTabbedWindow
...
Add support for the [`NSWindow addTabbedWindow`][nsw] method on MacOSX
This plays nicely with the changes from #9052 and #9725
Usage samples available in [this commit][c] in my fork of
`electron-quick-start`
[nsw]: https://developer.apple.com/documentation/appkit/nswindow/1855947-addtabbedwindow
[c]: 79f06591df
2017-10-03 20:11:16 +09:00
Taeho Kim
7570ec9d39
Add BrowserWindow.getOpacity for consistency
2017-10-03 00:08:10 +09:00
Ted Kim
7f2c4a9e06
Add window opacity support
2017-09-29 17:49:10 +09:00
John Kleinschmidt
d9d557dcc5
CircleCI updates ( #10647 )
...
* Update CircleCi for release and test
* Update test storage dir
2017-09-28 13:05:42 -04:00
Shelley Vohr
15b0878a17
Merge pull request #10618 from electron/add-menuitembyid
...
[WIP] add getMenuItemById to Menu API
2017-09-26 22:33:05 -04:00
Shelley Vohr
3c6a7c332a
add unit test for getMenuItemById
2017-09-26 20:05:51 -04:00
Cheng Zhao
d87ea5713d
spec: It is not certain which process starts first
2017-09-25 11:19:25 +09:00
Cheng Zhao
5940231b76
spec: Do not assume which process exits first in singleton test
2017-09-25 10:49:54 +09:00
Cheng Zhao
b4075bed87
spec: Add test case for app.makeSingleInstance
2017-09-20 11:58:32 +09:00
Cheng Zhao
af329a9429
Suppress the destroy() spec on all platforms
...
It is also crashing on mac, but just not as frequent as other platforms.
2017-09-14 17:20:14 +09:00
Cheng Zhao
073583ff3d
spec: The parent option should not affect show option
2017-09-14 14:48:42 +09:00
xaviergonz
0d69738bd6
using standard javascript
2017-09-14 14:38:54 +09:00
xaviergonz
0301961c25
Update api-browser-window-spec.js
2017-09-14 14:38:54 +09:00
Cheng Zhao
2048a1a638
Merge pull request #10429 from qazbnm456/web-request-origin
...
Track the origin of webRequest events
2017-09-13 22:23:44 +09:00
Vanessa Yuen
9a7d8a0511
merge master into fix-fullscreen-with-resizable-flag.
2017-09-12 18:34:23 -04:00
Boik
2d771674bb
get webContentsId instead
2017-09-12 20:17:11 +08:00
Boik
549c30f9b2
first attempt to track the origin requesters of webRequest events
2017-09-12 15:40:35 +08:00
Cheng Zhao
10ab870237
Merge pull request #10321 from kaylanm/macos-native-tab-api
...
🍎 Add macOS native tab methods to window API
2017-09-11 18:49:56 +09:00
Cheng Zhao
cc9771a3d0
Merge pull request #10307 from liusy182/10240-theme-color-2
...
return null when theme color is transparent or not found
2017-09-11 18:40:35 +09:00
Samuel Attard
6b010614e2
Implement moveToApplicationsFolder ( #10142 )
...
* Implement moveToApplicationsFolder
* Fix tabs / spaces
* Fix linting
* Use Browser::Quit, instead of exit
* Update documentation as per feedback
* Fix spec
2017-08-31 10:37:12 -04:00
Cheng Zhao
7f4b74f8c6
spec: Compare id instead of the object
...
Otherwise it is impossible to see what's wrong.
2017-08-29 15:45:16 +09:00
Cheng Zhao
f0f17fffd8
spec: Do not test window positions
...
They were too flaky.
2017-08-29 14:23:39 +09:00
Cheng Zhao
5510d8cfb1
Revert "Revert "spec: Suppress the select-client-certificate test""
...
This reverts commit 8e989170f1
.
2017-08-29 14:19:22 +09:00
Cheng Zhao
68e0fbfd60
Revert "Revert "spec: Suppress the app.importCertificate test""
...
This reverts commit a7cb89aeb5
.
2017-08-29 14:19:21 +09:00
Cheng Zhao
6e6b097968
Revert "Revert "spec: Suppress the test that destroys WebContents in event listener""
...
This reverts commit 210652ed54
.
2017-08-29 14:19:19 +09:00
sungpark
eca7ff986c
add webFrame to sandboxed renderer
2017-08-23 10:52:02 -07:00
sungpark
bf07c5aebd
fix contextIsolation issue while webPreference sandbox is on
...
contextIsolation didn't work while sandbox is on. The fix is contextIsolation picked up while sandbox on
2017-08-23 10:52:02 -07:00
Michael Kaylan
b4428e7e41
🍎 Add macOS native tab methods to window API
2017-08-21 23:24:30 -04:00
Aleksei Kuzmin
8b55e6e2f5
Revert "Disable a failing test"
...
This reverts commit 9487222726
.
2017-08-22 11:49:53 +09:00
Aleksei Kuzmin
c0331673da
Revert "Disable a failing test"
...
This reverts commit 25c0cf0612
.
2017-08-21 16:48:24 +09:00
Siyuan Liu
eeb2e58ad8
return null when theme color is not found
2017-08-20 22:48:13 +08:00
Aleksei Kuzmin
25c0cf0612
Disable a failing test
...
BrowserWindow module window states resizable state works for a frameless window
2017-08-15 16:19:29 +03:00
Aleksei Kuzmin
9487222726
Disable a failing test
...
BrowserWindow module "webPreferences" option "sandbox" option can print to PDF
2017-08-15 16:19:29 +03:00
Kevin Sawicki
d943519fb4
Update text expectation for new --inspect-brk message
2017-08-15 16:19:23 +03:00
Kevin Sawicki
29dc06c89d
Configure spec UI to run in docker container
2017-08-15 16:19:22 +03:00
Aleksei Kuzmin
ba0c43e1fc
Do not run navigator.getUserMedia
related test on CI build machines
2017-08-15 16:19:22 +03:00
John Kleinschmidt
72d2e176dd
Merge pull request #10160 from liusy182/liusy182-10128-asar
...
Return empty string when fs.readFile with 'utf8' option from asar file
2017-08-07 21:42:15 -04:00
John Kleinschmidt
ccdff72ee4
Merge pull request #9918 from alexstrat/add-extensions-loading-api
...
Introduce Chrome extensions management APIs independent of Dev Tools Extensions
2017-08-07 20:06:22 -04:00
Kevin Sawicki
dfec48dd44
End response and set status code for unexpected URLs
2017-08-07 13:33:01 -07:00
Kevin Sawicki
8e989170f1
Revert "spec: Suppress the select-client-certificate test"
...
This reverts commit dc1269615a
.
2017-08-07 12:57:01 -07:00
Kevin Sawicki
a7cb89aeb5
Revert "spec: Suppress the app.importCertificate test"
...
This reverts commit 5ccae79ea7
.
2017-08-07 12:56:54 -07:00
Kevin Sawicki
210652ed54
Revert "spec: Suppress the test that destroys WebContents in event listener"
...
This reverts commit b315eb83fd
.
2017-08-07 12:56:48 -07:00
Cheng Zhao
dc1269615a
spec: Suppress the select-client-certificate test
...
Not sure why it is not working
2017-08-02 16:07:46 +09:00
Cheng Zhao
7d7bb1581b
spec: Disable crashReporter tests for some CI machines
...
Have no idea why it is failing on our CI machines, but at least Appveyor
works fine.
2017-08-02 15:54:50 +09:00
Cheng Zhao
5ccae79ea7
spec: Suppress the app.importCertificate test
...
I have no idea why it failed, somehow the page can not load with the
provided certificated.
2017-08-02 15:17:18 +09:00
Cheng Zhao
28959da2b7
spec: Fix the event test calling done for multiple times
2017-08-02 15:06:06 +09:00
Cheng Zhao
b315eb83fd
spec: Suppress the test that destroys WebContents in event listener
...
It is crashing when Electron is built in Debug mode.
2017-08-02 11:14:06 +09:00
Cheng Zhao
4b46eca329
spec: Always run crash-reporter at last
...
So when a test crashed we can always see the stack trace.
2017-07-31 16:36:52 +09:00
Cheng Zhao
9ced85d860
Terminate tests when renderer process crashed
2017-07-31 16:24:23 +09:00
Siyuan Liu
5a48c1feed
fixes 10128
2017-07-31 09:32:45 +08:00
Birunthan Mohanathas
20ae611dd9
Merge pull request #10097 from liusy182/liusy182-browserview
...
#10039 add BrowserView.fromId
2017-07-28 01:27:47 +03:00
Siyuan Liu
ae7c1ae741
#10039 add BrowserView.fromId
2017-07-24 11:32:30 +08:00
Kevin Sawicki
1d9f69e742
Merge pull request #10008 from qazbnm456/fix-pdf-viewer
...
Fix a query string parsing problem happend to PDF Viewer
2017-07-18 09:10:55 -07:00
Kevin Sawicki
208be2a542
Set preload script on opened windows
2017-07-17 11:55:16 -07:00
Kevin Sawicki
3925bfde8e
Add spec for reloading opened window cross-origin
2017-07-17 11:55:15 -07:00
Kevin Sawicki
0c8f773dec
Remove debug logging
2017-07-17 11:55:15 -07:00
Kevin Sawicki
9d7c2e2294
Add specs for nativeWindowOpen inheritance and new-window support
2017-07-17 11:55:15 -07:00
Kevin Sawicki
86b1deedfa
Inherit enabled-sandbox in opened windows
2017-07-17 11:55:15 -07:00
Kevin Sawicki
c71b0a5441
Add spec for configuring web preferences from sandboxed new-window event
2017-07-17 11:55:15 -07:00
Boik
01d021e6a3
add a new spec for https://github.com/electron/electron/pull/10008
2017-07-15 15:00:30 +08:00
Kevin Sawicki
0a71a9b992
Merge pull request #9695 from shubham2892/alwaysOnTop-window-disappears-when-restored-fix
...
Fix an issue where alwaysOnTop window disappears when restore…
2017-07-14 10:09:13 -07:00
Kevin Sawicki
4935e8567f
Initialize level_ in initWithShell
2017-07-14 10:07:06 -07:00
Kevin Sawicki
48f5a66f87
Merge pull request #9983 from electron/devtools-mixed-sandbox
...
Fix devtools open in mixed sandbox
2017-07-14 09:41:56 -07:00
Birunthan Mohanathas
812b529881
Add app.disableDomainBlockingFor3DAPIs()
...
By default, Chromium disables 3D APIs (e.g. WebGL) until restart on a
per domain basis if the GPU processes crashes too frequently. This
function disables that behaviour.
2017-07-14 01:41:43 +03:00
Kevin Sawicki
60f563ae5f
Surface require errors so spec does not hang
2017-07-13 08:36:58 -07:00
Hari Juturu
80bd6a3e91
🎨
2017-07-11 18:36:01 -07:00
Hari Juturu
9a3b78d9fe
Fix devtools open in mixed sandbox mode
2017-07-11 18:36:00 -07:00
Alexandre Lachèze
6e3407d4a4
✅ Forgot a describe.only
2017-07-05 19:10:02 +02:00
Alexandre Lachèze
2231673b03
✅ Remove already tested part
2017-07-05 17:36:39 +02:00
Alexandre Lachèze
67cec5fd26
✅ add tests for BrowserWindow.addExtension
2017-07-05 17:21:06 +02:00
Aleksei Kuzmin
120b05e075
Fix error message of assertWithinDelta()
2017-07-04 11:56:21 +02:00
Kevin Sawicki
1c1cf0d1f2
Merge pull request #9857 from alexeykuzmin/add-enable-osr-flag
...
[WIP] Add enable_osr flag
2017-06-29 12:30:44 -07:00
Kevin Sawicki
449776f228
Don't run it statements when OSR is disabled
2017-06-29 12:26:45 -07:00
Kevin Sawicki
e37fc0e30a
Mark mixed sandbox as macOS/Windows only
2017-06-28 14:36:34 -07:00
Kevin Sawicki
506b354c1b
👕 Remove lint
2017-06-28 13:40:28 -07:00
Kevin Sawicki
6d2a5145c9
Assert loaded state
2017-06-28 13:01:22 -07:00
Kevin Sawicki
9f0d2cd39d
Use pdf-loaded event in specs
2017-06-28 12:57:05 -07:00
Kevin Sawicki
4958771b8a
Merge pull request #9852 from electron/webcontents-ignorekeyboardshortcuts
...
Add webContents.setIgnoreMenuShortcuts()
2017-06-28 10:35:02 -07:00
Aleksei Kuzmin
25e1c5d6e7
Skip "offscreen rendering" tests if OSR is not available
2017-06-28 19:34:57 +02:00
Kevin Sawicki
9dd27ba3ec
Add explicit expected value
2017-06-28 10:21:25 -07:00
Kevin Sawicki
2cd49f3036
Merge pull request #9644 from electron/webview-sandbox
...
Enable sandbox on webview
2017-06-28 10:10:25 -07:00
Kevin Sawicki
5822e718e6
Add finish helper to ensure connection
2017-06-28 09:58:23 -07:00
Kevin Sawicki
523fbe2df9
Send messages between app via socket connection
2017-06-28 09:27:19 -07:00
Kevin Sawicki
2df9e57b50
Remove unused require
2017-06-28 08:35:17 -07:00
Kevin Sawicki
7fcc00f137
Add spec for app.enableMixedSandbox()
2017-06-28 08:33:11 -07:00
Kevin Sawicki
f7539e6e8d
Remove increased timeout
2017-06-26 14:15:26 -07:00
Kevin Sawicki
c01248ce47
Remove unused require
2017-06-26 14:14:44 -07:00
Kevin Sawicki
0eaddd1565
Verify --enable-sandbox/--no-sandbox command line
2017-06-26 14:12:03 -07:00
Birunthan Mohanathas
f20f87829b
Add webContents.setIgnoreMenuShortcuts()
...
This allows you to disable application menu shortcut handling on a per
web contents basis.
2017-06-26 14:01:17 -07:00
Kevin Sawicki
14178d9826
Expose argv to preload process object
2017-06-26 13:52:19 -07:00
Birunthan Mohanathas
eb19562316
Fix crash when using file chooser in BrowserView
...
The crash was a segfault caused by a null `WebDialogHelper::window_`.
2017-06-21 16:26:38 -07:00
Shubham
1b8963ff6e
🍎 Fix full screen when resizable is set to true
2017-06-20 16:11:28 -04:00
Hari Krishna Reddy Juturu
902b34ba39
🎨
2017-06-19 08:03:02 -07:00
Hari Krishna Reddy Juturu
e546820a4a
Completing UTs
2017-06-19 07:46:14 -07:00
Hari Krishna Reddy Juturu
0b7e7458c9
WIP: Adding UT
2017-06-16 15:34:11 -07:00
Kevin Sawicki
f1a72ad108
Add spec for webview visibility change on show
2017-06-14 14:11:38 -07:00
Kevin Sawicki
45dc6fc04f
Merge pull request #9645 from dharders/issue6036-fix-windows-fullscreen-startup-toggle
...
Fix unresponsive app after fullscreen->normal state toggle (Windows)
2017-06-14 14:10:00 -07:00
dharders
909344415e
🎨 Use leave-full-screen event instead of setTimeout()
2017-06-14 11:06:33 +10:00
Kevin Sawicki
fc00bf0cc3
Add initial spec for ELECTRON_RUN_AS_NODE with --inspect-brk
2017-06-12 14:04:57 -07:00
Shubham
f001377493
🍎 Fix an issue where alwaysOnTop window disappears when restored from the application icon
2017-06-07 12:28:50 -04:00
Kevin Sawicki
c60a9d242e
Disable minimize spec on Linux CI
2017-06-06 16:58:28 -07:00
Kevin Sawicki
a53e98c0f3
Add visibilitystate test for showInactive
2017-06-06 16:45:46 -07:00
Kevin Sawicki
52137485f2
Add separate specs for hide/show/minimize visibilitychange events
2017-06-06 16:22:07 -07:00
Kevin Sawicki
28cd973805
Mention document.hidden in spec description
2017-06-06 15:20:08 -07:00
Kevin Sawicki
d2d28c42f1
Remove unused constant
2017-06-06 15:19:29 -07:00
Birunthan Mohanathas
7d2226e05e
Let Chromium manage document.visibilityState
and document.hidden
...
Chromium already includes the necessary plumbing to manage the
visibility properties and `visibilitychange` event so this gets rid of
most of our custom logic for `BrowserWindow` and `BrowserView`.
Note that `webview` remains unchanged and is still affected by the issues
listed below.
User facing changes:
- The `document` visibility properties and `visibilitychange` event are
now also updated/fired in response to occlusion changes on macOS. In
other words, `document.visibilityState` will now be `hidden` on macOS
if the window is occluded by another window.
- Previously, `visibilitychange` was also fired by *both* Electron and
Chromium in some cases (e.g. when hiding the window). Now it is only
fired by Chromium so you no longer get duplicate events.
- The visiblity state of `BrowserWindow`s created with `{ show: false }`
is now initially `visible` until the window is shown and hidden.
- The visibility state of `BrowserWindow`s with `backgroundThrottling`
disabled is now permanently `visible`.
This should also fix #6860 (but not for `webview`).
2017-06-06 15:16:01 -07:00
Kevin Sawicki
53b6ee0e3f
Merge pull request #9468 from tonyganch/9296-history-state
...
Remove page url check during `history.pushState`
2017-06-05 14:47:49 -07:00
Kevin Sawicki
af1d0c45ca
Load URL after registering listener
2017-06-05 14:47:11 -07:00
Kevin Sawicki
777b5b17de
Move pushState spec chromium-spec with other history specs
2017-06-05 14:45:45 -07:00
Kevin Sawicki
9a362eed53
Merge pull request #9572 from shubham2892/api-height-menubar-macos
...
API height menubar macos
2017-06-05 10:35:16 -07:00
deepak1556
50ac7b2edd
Revert "Merge pull request #8724 from electron/defer_load_url"
...
Possible cause for #9121
This reverts commit 886b47e713
, reversing
changes made to 479af3c9e2
.
2017-06-05 19:04:21 +05:30
dharders
aeb68c2369
✅ Add test for Windows fullscreen state toggle. Fix #6036
2017-06-05 11:39:15 +10:00
Kevin Sawicki
2508159a25
Use assert.fail for unexpected values
2017-05-31 08:39:49 -07:00
Kevin Sawicki
55fcb286a5
Run getGPUFeatureStatus spec on all platforms
2017-05-31 08:10:55 -07:00
Shubham
6537238c0d
🎨 code structure fix
2017-05-30 17:40:06 -04:00
Shubham
62d9bf9bae
🎨 ✅ code comments and test for getMenuBarHeight function
2017-05-30 17:26:02 -04:00
Kevin Sawicki
4a5831a733
Add initial getGPUFeatureStatus spec
2017-05-30 13:00:00 -07:00
Kevin Sawicki
5cf4995f2e
DRY up logic to check if native modules should be loaded
2017-05-30 09:15:38 -07:00
Kevin Sawicki
edd840fcc0
Only assert GPU process on macOS
2017-05-26 10:10:56 -07:00
Kevin Sawicki
9f49b71b89
Add cross-origin frame webview spec
2017-05-26 10:10:36 -07:00
Kevin Sawicki
36989e19f8
Add spec for cross-origin blockage
2017-05-26 10:10:36 -07:00
Kevin Sawicki
e735aa7dee
web-preferences -> webPreferences
2017-05-26 10:10:36 -07:00
Kevin Sawicki
f5cf6d4ddd
Add spec for native window.open from iframe
2017-05-26 10:10:36 -07:00
Kevin Sawicki
a0571e3c72
Add failing spec for native window.open returning null without allowpopups
2017-05-26 10:10:36 -07:00
Kevin Sawicki
ef01c16c6a
Add tests for more nativeWindowOpen events
2017-05-26 10:10:36 -07:00
Kevin Sawicki
9f06b6dc21
Set allowpopups attribute in nativeWindow open specs
2017-05-26 10:10:36 -07:00
Kevin Sawicki
a32b7e5cdb
Co-locate nativeWindowOpen specs
2017-05-26 10:10:36 -07:00
Kevin Sawicki
a2a7a1d8c7
Add new-window <webview> spec with nativeWindowOpen
2017-05-26 10:10:36 -07:00
Kevin Sawicki
da2b29796f
Add same domain webview nativeWindowOpen spec
2017-05-26 10:10:36 -07:00
Kevin Sawicki
a16cd0bd03
Add failing <webview> with nativeWindowOpen spec
2017-05-26 10:10:36 -07:00
Kevin Sawicki
9137a2279a
Merge pull request #9486 from electron/child-observer
...
Adding CPU & Memory metrics for App
2017-05-26 09:28:22 -07:00
Kevin Sawicki
8b14df143a
Don't assert GPU process on Linux
2017-05-26 09:14:17 -07:00
Kevin Sawicki
1e4dd9b163
Store process type as int
2017-05-26 08:53:26 -07:00
Kevin Sawicki
b5879b7399
🎨 Minor formatting/doc changes
2017-05-26 07:51:17 -07:00
Kevin Sawicki
d202c35be9
Enable crash reporter specs on Linux CI
2017-05-25 16:58:37 -07:00
Hari Juturu
de5eaf9336
Remove .only
2017-05-24 21:07:35 -07:00
Hari Juturu
939747945e
Adding CPU & Memory metrics for App
2017-05-24 21:07:35 -07:00
Tony Ganch
6d64336978
Add test for #9468
2017-05-23 22:42:32 +02:00
Kevin Sawicki
647e88da5a
Delete mock.pdf after download completes
2017-05-22 14:24:28 -07:00
rreimann
25015c4c63
Fix naming and formatting
2017-05-22 14:14:59 -07:00
rreimann
13665090d5
Add new test and enable plugins for existing tests
2017-05-22 14:14:59 -07:00
Kevin Sawicki
ad9496144f
Remove buffers setting in write spec
2017-05-22 13:55:35 -07:00
Kevin Sawicki
6b7ec621e3
Throw error when non-Buffer specified instead of crashing
2017-05-22 13:53:58 -07:00
Ryohei Ikegami
a26e360e82
Remove console.log
2017-05-22 13:43:21 -07:00
Ryohei Ikegami
f2471cb1b7
Rename buffer -> buffers
2017-05-22 13:43:21 -07:00
Ryohei Ikegami
03fdc7aa28
Add buffer support in clipboard.write()
2017-05-22 13:43:21 -07:00
Ryohei Ikegami
66cc07d8e9
Add clipboard.writeBuffer
2017-05-22 13:43:21 -07:00
Kevin Sawicki
74b7afbec7
Merge origin/master into enable-webview
2017-05-19 10:17:34 -07:00
Kevin Sawicki
92f14f8d52
printerList() -> getPrinters()
2017-05-18 10:14:55 -07:00
Kevin Sawicki
84a9b6a42d
Merge remote-tracking branch 'origin/master' into renaesop_master
2017-05-18 10:08:40 -07:00
Kevin Sawicki
65ab71c894
Assert pid after load finishes
2017-05-17 17:10:41 -07:00
Kevin Sawicki
fd782706b2
Add explicit spec for removing preload from webview
2017-05-17 13:47:00 -07:00
Kevin Sawicki
e817dbf50a
Add failing spec for webviewTag inheritance
2017-05-17 13:27:28 -07:00
Kevin Sawicki
bde13353fb
Rename option to webviewTag and default to nodeIntegration value
2017-05-17 13:12:23 -07:00
Kevin Sawicki
837ea884de
Merge remote-tracking branch 'origin/master' into enable-webview
2017-05-17 12:45:29 -07:00
Cheng Zhao
9bed0ffdbf
Merge pull request #9440 from brenca/osr-fixes
...
Additional small OSR fixes
2017-05-17 17:14:27 +09:00
Thiago de Arruda
5654ff0d43
Add test for #9387
2017-05-16 09:07:41 -03:00
Kevin Sawicki
0ae5f7e623
Assert PID is 0 with no URL
2017-05-15 13:34:30 -07:00
Kevin Sawicki
d79ac8d9c1
Merge pull request #9222 from alexstrat/add-os-process-id
...
Add OS pid to web-contents
2017-05-15 13:28:47 -07:00
Alexandre Lachèze
9b776369e6
👕
2017-05-15 21:00:13 +02:00
Kevin Sawicki
bcbfd0d5c6
Disable crashReporter specs on Linux CI
2017-05-15 11:01:53 -07:00
Alexandre Lachèze
2f297b1893
✅ Add simple spec for getOSProcessId()
2017-05-15 19:57:19 +02:00
Heilig Benedek
802501fb04
update osr specs
2017-05-13 02:14:30 +02:00
Kevin Sawicki
4fdb884feb
Fix windows path in service worker spec
2017-05-11 15:33:56 -07:00
deepak1556
3c88447be6
protocol: provide default response code for custom request jobs
2017-05-11 15:33:56 -07:00
22222
4044548f3e
Add 'will-prevent-unload' event.
2017-05-11 06:35:35 -05:00
Ryohei Ikegami
7ac93045b7
Merge branch 'master' into native-window-open
2017-05-11 13:51:43 +09:00
Kevin Sawicki
8c856922f3
Merge pull request #9292 from 22222/issue8911
...
Fix #8911
2017-05-09 09:06:26 -07:00
renaesop
dfcc882dcc
Add a test for webcontents.printerList
.
2017-05-09 10:38:03 +08:00
Hari Krishna Reddy Juturu
3321f7d39c
Changing command line option name
2017-05-08 17:27:31 -07:00
Hari Krishna Reddy Juturu
357caf8991
fixing spec
2017-05-06 22:41:05 -07:00
Hari Krishna Reddy Juturu
939885bc66
Remove .only on spec
2017-05-06 22:14:52 -07:00
Hari Krishna Reddy Juturu
94d054cf11
Add option to override webview security
2017-05-06 22:10:42 -07:00
Hari Krishna Reddy Juturu
b4a8ed01f1
PR 44648: Enabling creation on webview with node-integration disabled and raising events
...
- Enabling creation on webview with node-integration disabled and raising events
Conflicts:
lib/browser/guest-view-manager.js
2017-05-06 20:50:01 -07:00
Hari Krishna Reddy Juturu
07d8dfaa53
Fixing UT
2017-05-04 14:50:06 -07:00
Hari Krishna Reddy Juturu
472dad1ffc
convert var to const
2017-05-04 14:33:59 -07:00
Hari Krishna Reddy Juturu
656fb593b4
Fixing lint error
2017-05-04 14:33:59 -07:00
Hari Krishna Reddy Juturu
8bc4d3f8bd
GetIOCounters is not implemented on mac
2017-05-04 14:33:59 -07:00
Hari Krishna Reddy Juturu
3c71f542a8
Fixing UT on mac
2017-05-04 14:33:59 -07:00
Hari Krishna Reddy Juturu
8a5aa04756
Adding CPU and I/O metrics to process module
2017-05-04 14:33:59 -07:00
Kevin Sawicki
70e199e255
Merge pull request #9333 from electron/process-memory-info-sandbox
...
Expose `process.get{System,Process}MemoryInfo` to sandbox
2017-05-04 14:17:44 -07:00
Kevin Sawicki
59511354fd
Merge pull request #9214 from electron/app-memoryinfo
...
API to get memory of all processes of the app
2017-05-04 14:00:30 -07:00
Kevin Sawicki
3b3e7cc14e
Assert memory info for all returned processes
2017-05-04 13:43:45 -07:00
22222
042b511a27
Fix #8911
2017-05-03 12:47:00 -05:00
Kevin Sawicki
b639dd0c81
Remove unused include/require statement
2017-05-01 10:30:11 -07:00
Kevin Sawicki
db6097ecec
Add failing spec for invalid debugger message
2017-05-01 10:30:11 -07:00
Kevin Sawicki
56a4a69dee
Add more non-matching target origins
2017-05-01 08:45:38 -07:00
Kevin Sawicki
efc62629ef
Fix typo in fixture comment
2017-05-01 08:45:38 -07:00
Kevin Sawicki
3c58d50f87
Add failing spec for targetOrigin handling
2017-05-01 08:45:38 -07:00
Thiago de Arruda
a8640fb8a3
Add test to verify memory is released after sandboxed popup is closed
2017-05-01 11:30:07 -03:00
deepak1556
5e976be43b
remove page-title-updated workaround for #3380
2017-05-01 16:53:55 +09:00
deepak1556
e4524ce42e
add spec
2017-05-01 16:53:55 +09:00
Ryohei Ikegami
da97150fc9
Fix JS style in test HTMLs
2017-04-30 19:43:21 +09:00
Ryohei Ikegami
3c5179b717
Merge branch 'native-window-open' of github.com:seanchas116/electron into native-window-open
2017-04-30 19:37:23 +09:00
Ryohei Ikegami
0034b306f5
Add test for nativeWindowOpen + contextIsolation
2017-04-30 19:33:40 +09:00
Ryohei Ikegami
edeac2f59e
Split test HTML file into separate ones
2017-04-30 18:54:08 +09:00
HariJ
88ad28b2a5
Removing describe.only
2017-04-27 14:06:53 -07:00
HariJ
81bd9fa3a2
fixing mac ut failure
2017-04-27 14:06:53 -07:00
Hari Krishna Reddy Juturu
d77c1319f4
Fixing lint error
2017-04-27 14:06:53 -07:00
Hari Krishna Reddy Juturu
27aad902b8
Adding docs, specs and fixing object returned
2017-04-27 14:06:53 -07:00
Ryohei Ikegami
1d73e84a29
Merge branch 'master' into native-window-open
2017-04-27 12:03:55 +09:00
Kevin Sawicki
775753c3d7
Add spec for invalid window.history.go offset
2017-04-26 12:37:16 -07:00
Kevin Sawicki
7726c7c6c4
Add spec for webPreferences in features string
2017-04-26 10:56:53 -07:00
Kevin Sawicki
9643b2a5c5
Add specs for window.open frameName argument
2017-04-26 10:14:11 -07:00
Kevin Sawicki
246937a372
Convert targetOrigin to string in render process
2017-04-26 09:08:47 -07:00
Kevin Sawicki
7e285711ca
Add spec for window.open toString errors
2017-04-26 09:08:47 -07:00
Kevin Sawicki
3f88eb2f86
Add spec for chrome-devtools URL with no node integration
2017-04-25 13:36:08 -07:00
Kevin Sawicki
cee0507090
Add failing spec for inheriting Javascript web preference
2017-04-25 12:57:53 -07:00
Kevin Sawicki
c2d4c93e12
Don't run error event on Linux
2017-04-24 09:47:30 -07:00
Kevin Sawicki
423dd4d57a
Add spec for remote autoUpdater error event
2017-04-24 09:47:30 -07:00
Kevin Sawicki
35a627fd60
Log all crashes during specs
2017-04-24 09:26:24 -07:00
Kevin Sawicki
a00d36fb07
Add spec for alert/confirm toString errors
2017-04-24 09:15:01 -07:00
Kevin Sawicki
93603882b1
Add root describe to be able to run whole file
2017-04-20 14:17:58 -07:00
Kevin Sawicki
361c3e0700
Wait for close event instead of exit so stdout done
2017-04-20 11:40:04 -07:00
Kevin Sawicki
a004cada7c
Merge pull request #9095 from seanchas116/better-path-resolve
...
Search for module from app path when URL is not file protocol
2017-04-20 10:49:53 -07:00
Kevin Sawicki
dc8b43901b
Merge pull request #9108 from yuya-oc/add-macos-sheet-events
...
Add sheet-begin and sheet-end events to macOS BrowserWindow
2017-04-20 10:33:31 -07:00
Kevin Sawicki
fae0308861
Use app name in crash dir path on linux/macos
2017-04-19 20:19:17 -07:00
Kevin Sawicki
709d2933b7
🎨
2017-04-19 16:44:31 -07:00
Kevin Sawicki
de62f1ea6c
Restart crash service in each spec
2017-04-19 16:37:24 -07:00
Kevin Sawicki
a7a92e1cd3
Still call done when stop server function is null
2017-04-19 09:52:28 -07:00
Kevin Sawicki
4d9cdad37a
Close server and connections after each spec
2017-04-19 09:48:32 -07:00
Kevin Sawicki
ece4df0ac7
Increase timeout to 2 minutes
2017-04-19 09:30:03 -07:00
Kevin Sawicki
c05c324464
Remove extra space in description
2017-04-19 09:28:52 -07:00
Kevin Sawicki
6b13fab83a
Wait for full screen event before leaving kiosk mode
2017-04-19 09:13:26 -07:00
Kevin Sawicki
5153c1f353
Disable media device specs on CI where they may not be available
2017-04-18 16:16:08 -07:00
Kevin Sawicki
f891df55d4
Call done callback with Error
2017-04-18 16:06:10 -07:00
Kevin Sawicki
4af44b1be6
Consolidate window closing
2017-04-18 16:04:27 -07:00
Kevin Sawicki
8f0ac057e3
Add initial spec for cookies.flushStore
2017-04-18 09:08:27 -07:00
Kevin Sawicki
ca46d52b0c
Add button with icon to touch bar spec
2017-04-18 09:01:43 -07:00
Ryohei Ikegami
91f31506ef
Skip native addon test in Windows
2017-04-19 00:11:23 +09:00
Ryohei Ikegami
8dff29185b
Merge branch 'master' into native-window-open
2017-04-18 21:59:22 +09:00
Yuya Ochiai
75184046f6
Add events to manage sheets of macOS BrowserWindow
2017-04-15 16:26:45 +09:00
Birunthan Mohanathas
ccdeb4746e
Destroy BrowserViews after each test
2017-04-13 01:27:31 +03:00
Birunthan Mohanathas
06fcf2c19d
Add support for BrowserView autoresizing
2017-04-13 01:27:31 +03:00
Birunthan Mohanathas
8b9f7e5b00
Implement initial, experimental BrowserView API
...
Right now, `<webview>` is the only way to embed additional content in a
`BrowserWindow`. Unfortunately `<webview>` suffers from a [number of
problems](https://github.com/electron/electron/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20label%3Awebview%20 ).
To make matters worse, many of these are upstream Chromium bugs instead
of Electron-specific bugs.
For us at [Figma](https://www.figma.com ), the main issue is very slow
performance.
Despite the upstream improvements to `<webview>` through the OOPIF work, it is
probable that there will continue to be `<webview>`-specific bugs in the
future.
Therefore, this introduces a `<webview>` alternative to called `BrowserView`,
which...
- is a thin wrapper around `api::WebContents` (so bugs in `BrowserView` will
likely also be bugs in `BrowserWindow` web contents)
- is instantiated in the main process like `BrowserWindow` (and unlike
`<webview>`, which lives in the DOM of a `BrowserWindow` web contents)
- needs to be added to a `BrowserWindow` to display something on the screen
This implements the most basic API. The API is expected to evolve and change in
the near future and has consequently been marked as experimental. Please do not
use this API in production unless you are prepared to deal with breaking
changes.
In the future, we will want to change the API to support multiple
`BrowserView`s per window. We will also want to consider z-ordering
auto-resizing, and possibly even nested views.
2017-04-13 01:27:27 +03:00
Ryohei Ikegami
c77e07bc15
Fix afterEach
2017-04-12 11:55:41 +09:00
Kevin Sawicki
bfb9388191
Add failing spec for app.exit with >2 windows
2017-04-11 09:09:17 -07:00
Kevin Sawicki
e2a00e423c
Merge pull request #9104 from electron/fix-crash-reporter-test
...
Fix sandboxed crashReporter for windows
2017-04-10 15:38:12 -07:00
Kevin Sawicki
e2e9e8ae24
Wait until server closes in afterEach
2017-04-07 16:42:01 -07:00
Kevin Sawicki
588f699d56
🎨
2017-04-06 09:52:52 -07:00
Kevin Sawicki
7f28b7a151
Add failing spec for fork --eval message bug
2017-04-06 09:48:34 -07:00
Ryohei Ikegami
659722924d
Don't show BrowserWindow in test
2017-04-06 11:44:20 +09:00
Ryohei Ikegami
349ea3a15a
Add test for native addon after reload
2017-04-06 11:43:57 +09:00
Thiago de Arruda
ce1a5e3c9c
Fix sandboxed crashReporter for windows.
...
- Use `path` module from browser process in sandboxed renderer. This is required
because the return value of `path.join` is platform-specific, and this is an
assumtion of crash-reporter.js which is shared between sandboxed and
non-sandboxed renderers.
- Set `process.platform` and `process.execPath` in sandboxed renderer
environment. This is required to spawn the windows crash service from
sandboxed renderer.
- Use a single temporary directory for all crashReporter tests. This is required
to make tests more deterministic across platforms(since mac's crashpad doesn't
support changing the crash dump directory). Also make a few improvements/fixes
to the `uploadToServer` test.
2017-04-05 18:09:24 -03:00
Kevin Sawicki
74a3a34caa
Add spec for interaction event with escape item
2017-04-04 13:14:56 -07:00
Kevin Sawicki
bbadeb62ac
Check that escape item is non-null before checking id
2017-04-04 13:12:29 -07:00
Kevin Sawicki
414540bfcb
Support passing escape item to TouchBar constructor
2017-04-04 12:50:41 -07:00
Kevin Sawicki
b24b4212c5
Make escape item a property instead of setter
2017-04-04 12:50:41 -07:00
Kevin Sawicki
21c1ddffb3
Handle change and interaction events on escape items
2017-04-04 12:50:41 -07:00
Kevin Sawicki
591cd8d073
Update window via listener when escape item changes
2017-04-04 12:50:41 -07:00
Kevin Sawicki
0501a20fe6
Clear escape item
2017-04-04 12:50:41 -07:00
Kevin Sawicki
6eacec7dc3
replaceEscapeItem -> setEscapeItem
2017-04-04 12:50:41 -07:00
Samuel Attard
2ba937289c
Add smoke test for escape replacement
2017-04-04 12:50:41 -07:00
Kevin Sawicki
746f636016
Add tests for setting remote property null/undefined
2017-04-04 11:18:16 -07:00
Kevin Sawicki
e5f70f90a4
Add spec for remote setter with remote object
2017-04-04 11:18:16 -07:00
Kevin Sawicki
3e9014c371
Merge pull request #9099 from electron/certificate-trust
...
macOS: Add certificate trust API
2017-04-04 11:17:09 -07:00
Kevin Sawicki
2bd47eb672
Add specs for showCertificateTrustDialog option errors
2017-04-04 10:49:21 -07:00
Ryohei Ikegami
61fa8693d2
Merge branch 'master' into native-window-open
2017-04-04 20:54:37 +09:00
Ryohei Ikegami
051e133ce3
Add test for opeing HTML file
2017-04-04 19:05:13 +09:00
Ryohei Ikegami
9cb6bc098d
Use beforeEach/afterEach
2017-04-04 09:08:27 +09:00
Kevin Sawicki
257f6b142f
Add spec for remote setter not surfacing error
2017-04-03 09:10:46 -07:00
Ryohei Ikegami
d1212d4a43
Fix JS style
2017-04-03 20:23:36 +09:00
Ryohei Ikegami
673f4f4d0c
Add test for require
to search under app dir
2017-04-03 20:11:19 +09:00
Kevin Sawicki
d677a436ec
🎨
2017-03-31 10:42:43 -07:00
Thiago de Arruda
460fb9cdb9
Add tests for uploadToServer
option.
2017-03-31 13:48:07 -03:00
Kevin Sawicki
39fdc26921
Time out after 5 minutes
2017-03-30 14:39:48 -07:00
Kevin Sawicki
b85ebb00aa
Tweak logged messages
2017-03-30 14:36:52 -07:00
Kevin Sawicki
7873130019
Add comment to codecs app script
2017-03-30 14:36:52 -07:00
Kevin Sawicki
6b8f840da0
Add script to verify ffmpeg without proprietary codecs
2017-03-30 14:36:52 -07:00
Kevin Sawicki
fcb7cbc54a
Check name directly instead of arguments length
2017-03-30 14:03:00 -07:00
Kevin Sawicki
a2588c1fd9
Merge pull request #9052 from tonyganch/native_tabs
...
Native tabs on macOS
2017-03-30 14:02:19 -07:00
Kevin Sawicki
e699e88b4c
Add initial tabbingIdentifier spec
2017-03-30 13:46:58 -07:00
Thiago de Arruda
b3cf00a19a
Fix net module to accept non-string header values
...
This is required to be compatible with node.js http module.
2017-03-30 16:01:40 -03:00
Kevin Sawicki
57edc28b0d
Merge pull request #8880 from mst128256/2814
...
Default menu items for 'Edit' and 'Window' #2814
2017-03-29 12:31:58 -07:00
Kevin Sawicki
8b4bf1f29e
🎨
2017-03-29 12:29:36 -07:00
deepak1556
b14c4dcdc0
address review comments
2017-03-28 19:05:44 +05:30
deepak1556
3ae62615f4
net: allow controlling redirects
2017-03-28 18:46:21 +05:30
Kevin Sawicki
9249228ac3
Merge pull request #9034 from electron/disable-flaky-appveyor-spec
...
Disable flaky post navigation spec on AppVeyor
2017-03-27 14:05:42 -07:00
Kevin Sawicki
f24baffc79
Expect count to be 0
2017-03-27 10:21:01 -07:00
Kevin Sawicki
9a4783bf34
Disable flaky post navigation spec on AppVeyor
2017-03-27 09:15:40 -07:00
mst128256
6a7b4feb35
Fixed for linting
2017-03-24 12:31:49 +01:00
mst128256
9e471d8f1c
Added specs
2017-03-24 12:14:08 +01:00
Ryohei Ikegami
6f9dbd4e04
Merge branch 'master' into native-window-open
2017-03-24 00:11:43 +09:00
Thiago de Arruda
a5eef516a7
Fix indent in api-crash-reporter-spec.js
2017-03-23 10:01:02 -03:00
Thiago de Arruda
5ee6205c0a
Run the crash reporter specs with sandbox option.
...
- Create a function that accepts BrowserWindow options and generates a suite
that contains the renderer-specific tests.
- Run the function twice to execute the tests with and without sandbox option.
2017-03-23 10:01:02 -03:00
Cheng Zhao
40b35a991f
Fix js lint
2017-03-20 12:52:46 -07:00
Cheng Zhao
940d77b9a0
Fix typos and adjust sentences
2017-03-20 12:52:46 -07:00
Cheng Zhao
033aa16e04
test: Node integration in web workers
2017-03-20 12:52:46 -07:00
Kevin Sawicki
286f529968
Merge pull request #8890 from twolfson/dev/proxy.to.string.sqwished
...
🐛 Add toString support to remote functions
2017-03-20 09:35:51 -07:00
Ryohei Ikegami
3af9f572ac
Fix spec description
2017-03-19 20:10:25 +09:00
Ryohei Ikegami
6bbfe89f96
Add spec for useNativeWindowOpen
2017-03-19 18:11:20 +09:00
Kevin Sawicki
648d3324fb
Add spec for remote function with toString property
2017-03-17 10:28:23 -07:00
Kevin Sawicki
11a4c7e408
🎨
2017-03-17 09:57:17 -07:00
Kevin Sawicki
0e55e5cbb5
Add initial spec for clipboard.readBuffer
2017-03-17 09:57:17 -07:00
Kevin Sawicki
a35cce5f7a
Enable takeHeapSnapshot spec
2017-03-17 09:14:17 -07:00
Todd Wolfson
818738ce84
🐛 Add toString support to remote functions
2017-03-17 08:21:37 -07:00
Kevin Sawicki
da0d0e7aac
Merge pull request #8910 from electron/touchbar-scrubber
...
Touchbar NSScrubber
2017-03-16 09:10:59 -07:00
Kevin Sawicki
49d48a4eb0
Add more non-default options to scrubber spec
2017-03-14 14:15:04 -07:00
deepak1556
80ce60f644
spec: check if pdf has loaded
2017-03-14 00:26:27 +05:30
deepak1556
6be779c777
update spec with new asset
2017-03-14 00:26:27 +05:30
deepak1556
eda413861a
update spec
2017-03-14 00:26:27 +05:30
Cheng Zhao
210f40dd53
Convert "\" to "/" in file:// url
2017-03-14 00:26:27 +05:30
deepak1556
a4400dc549
add basic spec
2017-03-14 00:26:27 +05:30
deepak1556
3baa186c0a
fix failing download spec
2017-03-14 00:26:27 +05:30
Kevin Sawicki
0dcdd60010
Add initial TouchBarScrubber spec
2017-03-13 11:17:55 -07:00
Kevin Sawicki
3349e32196
Verify selectedIndex to prevent NSRangeException
2017-03-10 10:09:18 -08:00
Kevin Sawicki
3b2faf7b89
Add initial TouchBarSegmentedControl spec
2017-03-10 10:04:22 -08:00
Kevin Sawicki
14e8e463b3
Merge pull request #8864 from electron/zoom_controller_webview_patch
...
browser: track origin zoom with HostZoomMap
2017-03-09 11:27:34 -08:00
Kevin Sawicki
2946f624ac
Add spec for adding representation to existing image
2017-03-09 09:56:42 -08:00
Kevin Sawicki
6e977cbc3a
Assert emptiness and size of built up images
2017-03-09 09:56:42 -08:00
Kevin Sawicki
7e039d92ec
Support adding representation from data URL
2017-03-09 09:56:42 -08:00
Kevin Sawicki
17b70670f8
Add initial NativeImage.addRepresentation specs
2017-03-09 09:56:42 -08:00
Kevin Sawicki
ff5081816f
Remove unneeded done call
2017-03-09 09:53:01 -08:00
John Kleinschmidt
d5a658bbe4
Fixed pass by reference and added spec
2017-03-08 22:06:26 -05:00
deepak1556
224ffe44aa
add spec
2017-03-08 19:16:55 +05:30
Kevin Sawicki
31cae8e1aa
Add more scale factor specs
2017-03-07 12:34:31 -08:00
Kevin Sawicki
82a81bb26e
Support scale factor to buffer APIs
2017-03-07 12:27:55 -08:00
Kevin Sawicki
e4ead6d018
Remove hasRepresentation and just use 1x png result
2017-03-07 12:27:55 -08:00
Kevin Sawicki
8bc65ef495
Add failing spec for toPNG with scale factor
2017-03-07 12:27:55 -08:00
Kevin Sawicki
50ade57700
Add more hasRepresentation asserts
2017-03-07 12:27:55 -08:00
Kevin Sawicki
0bbbeb307e
Support toDataURL without 1x representation
2017-03-07 12:27:55 -08:00
Kevin Sawicki
8eaf48e552
Add spec for 1x1 PNG data URL
2017-03-07 12:27:55 -08:00
Kevin Sawicki
b46e48cae1
Add failing toDataURL spec
2017-03-07 12:27:55 -08:00
Kevin Sawicki
6fcb784f6e
Add failing spec for no callback
2017-03-06 10:49:23 -08:00
Kevin Sawicki
f549bda9fc
Merge pull request #8799 from nitsakh/baseURLForDataURL
...
Support base URL option to loadURL for data URLs
2017-03-06 10:25:53 -08:00
Kevin Sawicki
886b47e713
Merge pull request #8724 from electron/defer_load_url
...
webContents: defer url load when there is a pending navigation entry
2017-03-06 10:18:36 -08:00
Kevin Sawicki
d26e4a4abf
Merge pull request #8800 from electron/https-website
...
Update website URLs to use HTTPS
2017-03-06 09:32:20 -08:00
deepak1556
90885d1d8c
simply spec
2017-03-06 00:22:20 +05:30
deepak1556
eb827eb020
update spec
2017-03-06 00:10:46 +05:30
deepak1556
dead1ae1ba
webContents: defer url load when there is a pending navigation entry
2017-03-06 00:10:46 +05:30
Kevin Sawicki
ca2898a60e
Check that window responds to touchBar selector for pre-10.12.1 compat
2017-03-03 14:00:39 -08:00
Kevin Sawicki
c349aeff80
Add initial touch bar specs
2017-03-03 14:00:39 -08:00
Nitish Sakhawalkar
d75db0ea1a
Fixed js lint issues.
2017-03-02 14:37:09 -08:00
Nitish Sakhawalkar
370562b129
Moving data url test outside post navigation block. Trailing separator comment in the docs.
2017-03-02 12:14:18 -08:00
Nitish Sakhawalkar
e8c0813f46
Changes based on review.
2017-03-02 10:58:39 -08:00
Kevin Sawicki
7fb77ee1cb
Set isolated world security origin
2017-03-02 08:49:18 -08:00
Kevin Sawicki
7f6283352f
Add failing spec for fetch from isolated world
2017-03-02 08:49:18 -08:00
Zeke Sikelianos
69f0cb26e7
use https for all Electron website URLs
2017-02-28 21:19:55 -08:00
Nitish Sakhawalkar
879082b1a6
Issue #8735:Support base URL option to loadURL for data URLs
2017-02-28 16:49:03 -08:00
Kevin Sawicki
ca8983bf6c
Add initial spec for remote modules
2017-02-28 08:45:39 -08:00
Kevin Sawicki
54232ee21a
Emit event after listener is registered
2017-02-28 08:23:00 -08:00
Kevin Sawicki
1d84d83fd4
Forward webview visibility change events from browser process
2017-02-28 08:23:00 -08:00
Kevin Sawicki
6c40b1eead
Verify global.Buffer is undefined
2017-02-24 09:57:32 -08:00
Kevin Sawicki
ad03ba73a4
Upgrade node for Buffer wrapper fix
2017-02-24 09:57:32 -08:00
Kevin Sawicki
e6fec57bd8
Add failing spec for Buffer from preload required module
2017-02-24 09:57:32 -08:00
Kevin Sawicki
0a5ccdccb4
Add spec for async Menu.popup
2017-02-22 10:30:28 -08:00
Kevin Sawicki
947556a23f
Move MenuItem spec into root describe
2017-02-22 10:30:28 -08:00
deepak1556
a57af31b99
add zoom specs based on standard protocols
2017-02-18 01:41:39 +05:30
deepak1556
403e7681c1
add basic webview zoom specs
2017-02-18 01:34:32 +05:30
deepak1556
c71b44048c
address review comments
2017-02-18 01:34:32 +05:30
deepak1556
dfc2e6c4a8
add temporary zoom api spec
2017-02-18 01:34:32 +05:30
deepak1556
763b9ab8d8
add zoom spec
2017-02-18 01:34:32 +05:30
Eric Brumer
87e606627c
Smaller regex now that it's case insensitive
2017-02-16 09:26:20 -08:00
Eric Brumer
7cb101b566
Case insensitive filepath
2017-02-16 09:17:37 -08:00
Eric Brumer
d97585d06d
Allow favicon.png to be on the root of any drive letter
2017-02-15 19:02:11 -08:00
Kevin Sawicki
86007fe61d
Update blur parent window spec
2017-02-15 08:28:55 -08:00
Kevin Sawicki
35908ac398
Add webContents.focus() spec
2017-02-15 08:28:55 -08:00
Kevin Sawicki
272a0824e8
Fix darwin platform name
2017-02-14 09:37:09 -08:00
Kevin Sawicki
af7702d0f2
🎨
2017-02-14 09:37:09 -08:00
Kevin Sawicki
b51adf8ae5
Add spec for updated extra parameters
2017-02-14 09:37:09 -08:00
Kevin Sawicki
a4bbad03c2
autoSubmit -> uploadToServer
2017-02-14 09:37:09 -08:00
Kevin Sawicki
f3756ccf29
Run crash reporter specs on all platforms
2017-02-14 09:37:09 -08:00
Kevin Sawicki
fdc1d3d763
Add Buffer typeof assertion
2017-02-14 08:42:34 -08:00
Kevin Sawicki
7e138083ef
Add declared const Buffer spec
2017-02-14 08:42:34 -08:00
Kevin Sawicki
70010fdb8e
Add spec for Buffer global
2017-02-14 08:42:34 -08:00
Kevin Sawicki
acedc3e726
Merge pull request #8584 from electron/new-webview-event
...
Add will-attach-webview event
2017-02-09 12:40:11 -08:00
Kevin Sawicki
81addbdcbf
Remove only call
2017-02-09 11:49:14 -08:00
Kevin Sawicki
a7c050107b
Remove guest from will-attach-webview event
2017-02-09 11:47:45 -08:00
Kevin Sawicki
acff2f6baf
Adjust src from will-attach-webview
2017-02-09 11:45:07 -08:00
Kevin Sawicki
46f1a49594
new-webview -> will-attach-webview
2017-02-09 11:45:07 -08:00
Kevin Sawicki
706b9f6cbf
Add new-webview specs
2017-02-09 11:45:07 -08:00
Kevin Sawicki
f7f4de36af
Merge remote-tracking branch 'origin/master' into macos-open-save-panel
2017-02-09 11:25:05 -08:00
Birunthan Mohanathas
c8c11e68c6
Add support for checkbox with dialog.showMessageBox
...
This adds the `checkboxLabel` and `checkboxChecked` options to display a
checkbox in the message box. Fixes #6048 .
2017-02-09 09:03:54 -08:00
Tan Wang Leng
72723646dd
Add tests to check errors in parameters
2017-02-09 21:23:02 +08:00
Kevin Sawicki
22b9c6e539
Allow multiple verification results
2017-02-08 13:33:07 -08:00
Kevin Sawicki
18e15a1e53
Add spec for rejecting using old signature
2017-02-08 12:51:24 -08:00
Kevin Sawicki
70178adb6e
Use object for verification request
2017-02-08 11:59:43 -08:00
Kevin Sawicki
9c134e7bf3
Assert certificate error
2017-02-08 11:59:43 -08:00
Kevin Sawicki
6b56dfd94b
Add spec for remote callback length
2017-02-08 11:59:43 -08:00
Greg Nolle
e29b64a18a
modify CertVerifier Class
...
* respond to multiple similar verification requests.
* accept net error result as callback response.
2017-02-08 11:59:43 -08:00
Kevin Sawicki
e9226aa354
Assert test.coffee outside of doesNotThrow
2017-02-08 09:02:46 -08:00
Kevin Sawicki
c1773a2c94
Add coffee-script dependency to specs
2017-02-08 09:00:14 -08:00
Kevin Sawicki
84f8bfbdef
Add spec for registering/requiring Coffeescript
2017-02-08 09:00:14 -08:00
Kevin Sawicki
ba03f04017
Disable getFileIcon specs on Linux CI
2017-02-07 18:24:35 -08:00
Kevin Sawicki
82ac4ddf19
Large is only 48x48 on Linux
2017-02-07 11:20:27 -08:00
Kevin Sawicki
dddc6aec49
Tweak spec descriptions
2017-02-07 10:21:20 -08:00
Kevin Sawicki
683a758dab
Call done instead of skip
2017-02-07 10:16:09 -08:00
Yury Solovyov
a9dae243b4
Fix large icon spec
2017-02-07 09:55:18 -08:00
Yury Solovyov
bcf0964c61
Fix more review
2017-02-07 09:55:18 -08:00
Yury Solovyov
c36cdb8580
Properly skip large size test on macOS
2017-02-07 09:54:22 -08:00
Yury Solovyov
1aa4fcae08
Lint tests
2017-02-07 09:54:22 -08:00
Yury Solovyov
00748889f9
Add tests
2017-02-07 09:54:22 -08:00
Cheng Zhao
c72438f09f
WebInspector has been split up
2017-02-06 10:34:29 -08:00
Kevin Sawicki
1c6a07c68d
Clear Update.exe login item settings in afterEach
2017-02-06 08:34:35 -08:00
Kevin Sawicki
e2501a80e4
Add path and args to LoginItemSettings struct
2017-02-06 08:34:35 -08:00
Charlie Hess
d2ffd87668
I will never appreciate standard.
2017-02-06 08:34:35 -08:00
CharlieHess
852e158cc6
Make sure the spec takes arguments into account.
2017-02-06 08:34:35 -08:00
Charlie Hess
4fce00148d
Add a spec for this behavior on Windows.
2017-02-06 08:34:35 -08:00
Kevin Sawicki
daff671afc
Add protocol constant
2017-02-02 12:48:09 -08:00
Kevin Sawicki
a60f341968
Add procotol client specs on Windows
2017-02-02 12:48:09 -08:00
Kevin Sawicki
604c2470bc
Merge pull request #8561 from liusy182/!-liusy182-br
...
add 'code' property in 'before-input-event''s 'input' argument
2017-02-02 10:33:20 -08:00
liusi
87392ff046
'before-input-event' is missing the code property #8471
2017-02-02 16:23:07 +08:00
Kevin Sawicki
dc1c11a841
Merge pull request #8487 from leethomas/feature/osx-relative-window-levels
...
Feature/macOS relative window levels
2017-01-30 15:34:24 -08:00
Kevin Sawicki
94cb605993
Use strictEqual for global variable asserts
2017-01-30 10:08:12 -08:00
Kevin Sawicki
e99b1709d9
Redeclare process/global as strings
2017-01-30 09:58:44 -08:00
Kevin Sawicki
4e5b8ac3ee
Remove throws and assert object directly
2017-01-30 09:38:15 -08:00
James Ide
0430380de1
Update the Node submodule to use the new module wrapper
...
See the fixed issue for the context. This pulls in a vendored copy of Node that includes the described patch.
Fixes #8358
Test Plan: Built Electron and verified it loaded the sample app correctly and that the module wrapper is the new one by viewing Node's source code in the Blink Inspector.
Added specs and tested with `npm test -- --grep "global variables"`
2017-01-30 09:37:14 -08:00
leethomas
edbb786fb4
use kCGMinimumWindowLevelKey to get the minimum level
2017-01-26 19:12:10 -08:00
Kevin Sawicki
76e5589a31
Schedule function after executeJavaScript completes
2017-01-26 16:15:10 -08:00
Kevin Sawicki
e683f28e32
Require a non-empty drag image to prevent crash
2017-01-26 15:46:04 -08:00
Kevin Sawicki
8ce1930f0d
Add specs for missing startDrag options
2017-01-26 15:46:04 -08:00
Kevin Sawicki
06c025050e
Fix typo in spec description
2017-01-26 14:46:51 -08:00
Kevin Sawicki
1004d205d8
Add spec for unhandledRejection event in main process
2017-01-26 14:46:50 -08:00
Kevin Sawicki
24fb560a9d
Add failing spec for uncaught main process errors
2017-01-26 14:46:50 -08:00
Kevin Sawicki
2cfa67bdff
Remove linter warning
2017-01-26 09:59:07 -08:00
Kevin Sawicki
a851695bb9
Clear interval before setting new one
2017-01-26 09:57:53 -08:00
Kevin Sawicki
e2e33a8cf0
Guard against destroyed window or web contents
2017-01-26 09:57:00 -08:00
Kevin Sawicki
515f689814
Use helper function to show last dev tools panel
2017-01-26 09:42:45 -08:00
leethomas
9e189b9d2d
fix js lint errors
2017-01-26 07:14:47 -08:00
leethomas
1234b61fa6
spec to ensure an error is thrown when relativeLevel is set out of bounds
2017-01-25 19:39:57 -08:00
Kevin Sawicki
104cae8f68
Only call getNativeHandle on macOS
2017-01-25 14:26:05 -08:00
Kevin Sawicki
2ad46f1842
Add failing spec for empty image crashes
2017-01-25 14:26:05 -08:00
Kevin Sawicki
8e69f94df0
Merge pull request #8357 from electron/remote-events-error-message
...
Don't crash when calling stale remote listeners
2017-01-25 14:23:57 -08:00
Kevin Sawicki
330ac5f266
Fix standard linting error
2017-01-25 12:36:55 -08:00
Kevin Sawicki
56a8eb3a94
Check that sender is a WebContents instance
2017-01-25 12:36:55 -08:00
Charlie Hess
f6410d3b77
Assert that listener count decreases after a remove event.
2017-01-25 12:36:55 -08:00
Charlie Hess
c213971a2d
Write a warning instead of crashing.
2017-01-25 12:36:55 -08:00
Kevin Sawicki
45986405b8
Assert remote event names
2017-01-25 12:36:55 -08:00
Charlie Hess
b04db2e546
Add a spec for the "renderer window closed" error.
2017-01-25 12:36:55 -08:00
Kevin Sawicki
f104e019be
Run crash reporter server specs on CI
2017-01-25 10:36:16 -08:00
Kevin Sawicki
8e39aea34a
Merge pull request #8478 from deepak1556/load_url_max_char_patch
...
WebContents: emit did-fail-load event when url exceeds character limit
2017-01-25 09:46:40 -08:00
deepak1556
d8a16a8ffb
fix spec
2017-01-25 14:20:33 +05:30
Kevin Sawicki
170c51ae85
Add spec for crashing node process
2017-01-24 13:49:45 -08:00
Kevin Sawicki
6bb331356e
Finish spec when full screen is left
2017-01-24 11:55:13 -08:00
Kevin Sawicki
284ca3114b
Wait for window to transition before leaving full screen
2017-01-24 11:55:13 -08:00
Kevin Sawicki
2762ead5a4
Upgrade to ffi@2.2.0
2017-01-24 11:25:21 -08:00
Kevin Sawicki
33820ffb85
Upgrade multiparty for os.tmpdir fix
2017-01-23 09:22:08 -08:00
deepak1556
593a3de850
add spec
2017-01-23 19:57:47 +05:30
Kevin Sawicki
1b036a284d
Add basic inspectElement spec
2017-01-19 09:05:59 +02:00
Kevin Sawicki
cc183524fd
Only remove webview when non-null
2017-01-19 09:05:59 +02:00
Kevin Sawicki
b0ee46f862
Use === in specs
2017-01-19 09:05:59 +02:00
Kevin Sawicki
017df93ffa
Add failing spec for insertCSS
2017-01-19 09:05:59 +02:00
Kevin Sawicki
2f5acfedcd
Add spec for denying perm requests when handler is cleared
2017-01-19 09:05:59 +02:00
Kevin Sawicki
977680d00b
Add spec for midi without sysex permission
2017-01-19 09:05:59 +02:00
Kevin Sawicki
2f26dbf39e
Update type to level in debugger message spec
2017-01-19 09:05:59 +02:00
Kevin Sawicki
873e6e5e6b
Append form to body before submitting
2017-01-19 09:05:59 +02:00
Kevin Sawicki
f7bdf5d04e
Merge pull request #8399 from watilde/feature/fixes-8338
...
save a fullscreen state when Kiosk mode is called
2017-01-17 13:03:51 -08:00
Kevin Sawicki
dcbc10ac38
Merge pull request #8417 from electron/flaky-travis-specs
...
Disable flaky specs on Travis
2017-01-17 08:48:59 -08:00
Kevin Sawicki
1d824d4645
Assert document visibility in main context
2017-01-16 13:03:38 -08:00
Kevin Sawicki
37b7dda3c5
Remove use of now private guestId
2017-01-16 12:38:16 -08:00
Kevin Sawicki
fbcbfbda6a
Add back BrowserWindowProxy location property
2017-01-16 12:38:16 -08:00
Kevin Sawicki
3f7b3c4bd7
Implement window overrides in main context
2017-01-16 12:38:16 -08:00
Kevin Sawicki
95054f443f
Enable context isolation on child windows
2017-01-16 12:38:16 -08:00
Kevin Sawicki
33b6ab11f2
Assert context state after reload
2017-01-16 12:38:16 -08:00
Kevin Sawicki
14a1e673c6
Add spec for webview context isolation
2017-01-16 12:38:16 -08:00
Kevin Sawicki
802ed62d5b
Remove trailing comma
2017-01-16 12:38:16 -08:00
Kevin Sawicki
b348cdeae8
Set page variable using webFrame.executeJavaScript
2017-01-16 12:38:16 -08:00
Kevin Sawicki
ea2273dde5
Assert built-in prototype isolation
2017-01-16 12:38:16 -08:00
Kevin Sawicki
ad3b837ad5
Rename option to contextIsolation
2017-01-16 12:38:16 -08:00
Kevin Sawicki
2928fe5c43
Add initial isolated world spec
2017-01-16 12:38:16 -08:00
Kevin Sawicki
b6c5e9a126
Disable disableguestresize spec that times out on Travis
2017-01-16 11:48:20 -08:00
Daijiro Wachi
b97db68f0c
add tests to fullScreen and Kiosk
2017-01-14 00:05:04 +01:00
Kevin Sawicki
726bab0293
Add specs for process.versions.electron/chrome
2017-01-12 13:50:19 -08:00
Kevin Sawicki
97dd680b32
Remove linter errors
2017-01-12 10:28:08 -08:00
Kevin Sawicki
8098ca3b66
Remove unneeded nextTick and assert array
2017-01-12 10:28:08 -08:00
Kevin Sawicki
c5da330cdf
Add failing spec for sandboxed window.open
2017-01-12 10:28:08 -08:00
Kevin Sawicki
d8366115f5
Add spec for resizable frameless window
2017-01-09 10:01:38 -08:00
Kevin Sawicki
1f07977f09
Remove lint errors
2017-01-06 09:58:40 -08:00
Kevin Sawicki
fd23c7bf76
Assert duplicate objects are supported
2017-01-06 09:58:40 -08:00
Kevin Sawicki
1944fdc962
Track visited parents and null out cycles
2017-01-06 09:58:40 -08:00
Kevin Sawicki
12382f064b
Add failing spec for cycle in options
2017-01-06 09:58:40 -08:00
Kevin Sawicki
b942c54bea
Use closeWindow helper
2017-01-06 09:58:40 -08:00
Kevin Sawicki
e788b9f959
Merge pull request #8258 from deepak1556/net_header_patch
...
net: disallow cookies from cookie store
2017-01-05 16:47:44 -08:00
Kevin Sawicki
abea1196de
Add spec for closing from will-navigate listener
2016-12-28 13:40:07 -08:00
Zeke Sikelianos
6995b51f2c
set webview spec timeout to three minutes
2016-12-22 13:31:30 -08:00
Zeke Sikelianos
c989ea43f5
bump webview spec timeout to two minutes
2016-12-22 12:30:34 -08:00
Zeke Sikelianos
b0c4c79c49
remove unused webview fixture
2016-12-22 10:41:05 -08:00
Zeke Sikelianos
1085c28612
rename all web-view files to webview
2016-12-22 10:41:05 -08:00
deepak1556
41c352c306
add failing spec
2016-12-21 11:52:27 +05:30
Kevin Sawicki
2a8b36c761
Merge pull request #8134 from deepak1556/empty_client_certificate_patch
...
app: select-client-certificate event callback can accept certificate optionally
2016-12-15 08:31:12 -08:00
Kevin Sawicki
cd067bca37
Merge pull request #8175 from gerhardberger/createfrombuffer-bitmap
...
Add bitmap support to nativeImage.createFromBuffer
2016-12-14 13:24:45 -08:00
Kevin Sawicki
8680a08a8d
Add deprecated comment to scaleFactor parameter
2016-12-14 10:18:01 -08:00
Kevin Sawicki
7a5ec96d53
Prevent input event from main process
2016-12-13 15:54:13 -08:00
Kevin Sawicki
5ae80d541b
Remove will-navigate spec
2016-12-13 15:54:13 -08:00
Birunthan Mohanathas
a3b65ad481
Add before-input-event event for webContents ( fixes #7586 )
...
Embedding arbitrary web content is problematic when it comes to keyboard
shortcuts because:
* Web content can steal app shortcuts (see e.g. brave/browser-laptop#4408 )
* Blocked web content (e.g. a focused <webview> performing expensive
computation) will also prevent app shortcuts from firing immediately
The new before-input-event event can be used to overcome these issues by
always handle certain keyboard events in the main process.
Note that this requires electron/brightray#261 to compile.
2016-12-13 15:54:13 -08:00
gellert
9d2c9df992
adds empty bitmap test for createFromBuffer
2016-12-14 00:24:57 +01:00
gellert
7ceb8d1ab8
additional tests for createFromBuffer
2016-12-14 00:18:24 +01:00
gellert
a609e52a14
moves bitmap parameters to options object
2016-12-13 21:32:17 +01:00
gellert
39875c90f1
adds bitmap support to createFromBuffer
2016-12-13 21:32:17 +01:00
Kevin Sawicki
c108088110
Test with some null/undefined windows
2016-12-12 16:25:14 -08:00
Kevin Sawicki
cb7715a572
Merge pull request #8187 from electron/optional-buttons
...
Allow buttons to be optional in 'showMessageBox'
2016-12-12 13:52:17 -08:00
Kevin Sawicki
b08bc02cde
Merge pull request #8137 from deepak1556/media_device_id_patch
...
session: reset media device id salt when cookies are cleared
2016-12-12 13:34:24 -08:00
Kevin Sawicki
04e873f78e
Make deviceIds const
2016-12-12 13:33:18 -08:00
Kevin Sawicki
04da9257ef
Catch any close window errors
2016-12-12 13:32:27 -08:00
Kevin Sawicki
f2aabeefd5
Merge pull request #8085 from deepak1556/protocol_http_session_patch
...
protocol: support custom session with interceptHttpProtocol
2016-12-12 13:07:14 -08:00
Kevin Sawicki
1d288b69e2
Merge pull request #7947 from beakerbrowser/register-standard-secure-schemes
...
Add {secure:} opt to protocol.registerStandardSchemes
2016-12-12 12:52:28 -08:00
Paul Frazee
99ea50649a
finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test
2016-12-12 12:49:57 -08:00
Daniel Pham
4b53cd9c3c
🐛 Allow buttons to be optional in 'showMessageBox'
2016-12-12 13:25:32 -05:00
Kevin Sawicki
2fa9ca1f6d
Merge pull request #8156 from sindresorhus/remove-dock-window-level
...
🍎 Document that the `dock` window level is deprecated
2016-12-12 09:39:08 -08:00
Kevin Sawicki
1a0fbf84f9
Merge pull request #8165 from geoff-addepar/geoff/fix-sandbox-printing
...
Fix printing with the sandbox enabled
2016-12-12 09:26:52 -08:00
deepak1556
4085ba309a
fix spec
2016-12-09 09:56:16 -08:00
deepak1556
21be9a3309
add spec
2016-12-09 09:55:55 -08:00
Kevin Sawicki
d705f4cbac
Fix issue where actual/expected was same variable
2016-12-09 09:37:46 -08:00
deepak1556
5d94221c61
fix code style
2016-12-09 09:37:46 -08:00
deepak1556
f124732431
add spec
2016-12-09 09:37:46 -08:00
Sindre Sorhus
3dde669ee8
🍎 Remove deprecated dock
window level
...
According to the Apple docs, the `NSDockWindowLevel` constant is deprecated: https://developer.apple.com/reference/appkit/nsdockwindowlevel?language=objc
2016-12-09 12:46:49 +01:00
Geoff Lywood
5345b08d24
Fix printing with the sandbox enabled
...
Closes #7984
2016-12-07 17:40:18 -08:00
deepak1556
2b8b76a527
protocol: support custom session with interceptHttpProtocol
2016-12-07 16:22:34 +05:30
deepak1556
cbddbdb296
fix code style
2016-12-07 15:33:56 +05:30
deepak1556
1c45285fe3
add spec
2016-12-07 13:26:06 +05:30
Kevin Sawicki
63bffbc460
Don't show window
2016-12-06 13:25:46 -08:00
Kevin Sawicki
03263bb5b6
Add failing BrowserWindow.fromDevToolsWebContents spec
2016-12-06 10:36:59 -08:00
Kevin Sawicki
b0a1e2988b
Add spec for BrowserWindow.fromWebContents
2016-12-06 10:36:59 -08:00
Kevin Sawicki
b29f7b9acb
Clear interval before assert
2016-12-06 09:25:55 -08:00
Kevin Sawicki
c2f516067f
Add missing r in variable name
2016-12-06 09:22:29 -08:00
Kevin Sawicki
58cae1d8de
Clear interval before destroying window
2016-12-06 09:22:08 -08:00
deepak1556
e043dabcb8
add spec
2016-12-04 00:22:57 +05:30
Kevin Sawicki
c1a02d6556
Add spec for render-view-deleted issue
2016-12-02 10:42:09 -08:00
Kevin Sawicki
b61e1fd69f
Add spec for error on removing all IPC listeners
2016-12-01 14:56:00 -08:00
Kevin Sawicki
36371357cd
buttonLabel -> Button label for consistency
2016-12-01 14:16:33 -08:00
Kevin Sawicki
750bd9a88b
Add initial dialog specs
2016-12-01 14:15:34 -08:00
Kevin Sawicki
eaa5d071ef
Remove unneeded timeout call
2016-11-29 16:27:18 -08:00
Kevin Sawicki
d86f0a1686
Add missing call to done
2016-11-29 14:52:47 -08:00
Kevin Sawicki
f0566f3790
isCi -> isCI
2016-11-29 14:48:28 -08:00
Kevin Sawicki
f5f790863d
Use 1 or 2 minute timeout for long specs
2016-11-29 14:31:57 -08:00
Kevin Sawicki
10386edea5
Default timeout to 30 seconds on CI and 10 seconds locally
2016-11-29 14:29:35 -08:00
Kevin Sawicki
4ccc3d9fb3
Remove unneeded return
2016-11-29 14:19:20 -08:00
Kevin Sawicki
77fa7ce977
Run more crashReporter specs on CI
2016-11-29 14:18:42 -08:00
Kevin Sawicki
2c8ab72269
Merge pull request #8084 from poiru/systempreferences-setuserdefault
...
Add systemPreferences.setUserDefault for macOS
2016-11-29 14:07:35 -08:00
Kevin Sawicki
df179ed28d
Merge pull request #8092 from poiru/setcursorautohide
...
Add BrowserWindow.setCursorAutoHide
2016-11-29 13:36:58 -08:00
Kevin Sawicki
cc2936cfdf
closeWindow in an afterEach block
2016-11-29 12:30:40 -08:00
Kevin Sawicki
d20e664ea8
Close window in an afterEach
2016-11-29 12:13:33 -08:00
Kevin Sawicki
fee7683b86
Reuse window variable and only close from root afterEach
2016-11-29 11:52:31 -08:00
Kevin Sawicki
d7e7c2b17f
Assert single window from closeWindow helper
2016-11-29 11:29:20 -08:00
Kevin Sawicki
1afa41477d
Don't use this.skip() since after hooks won't be run
2016-11-29 10:56:58 -08:00
Kevin Sawicki
217848ca52
Assert windows are not leaking across tests
2016-11-29 10:56:17 -08:00
Birunthan Mohanathas
486b6b9096
Add systemPreferences.setUserDefault for macOS
...
This API can be used to e.g. enable key repeat by setting
`ApplePressAndHoldEnabled` to `false` (see also #47 ).
2016-11-29 09:46:32 -08:00
Birunthan Mohanathas
18c49285a8
Add BrowserWindow.setAutoHideCursor for macOS
...
The `disableAutoHideCursor` BrowserWindow option can be used to control
auto-hiding behavior when the window is created. This new API is needed
to dynamically change the behavior after the fact.
2016-11-29 09:46:00 -08:00
Kevin Sawicki
1c6e166af5
Value should be true on non-macOS platforms
2016-11-28 15:08:28 -08:00
Kevin Sawicki
f4be3782a2
Add spec for get/setUploadToServer
2016-11-28 15:08:28 -08:00
Kevin Sawicki
774b2f99f2
Merge pull request #8038 from electron/danhp/close-file-preview
...
Add 'win.closeFilePreview()'
2016-11-28 14:47:06 -08:00
Kevin Sawicki
a7395118af
Merge pull request #7952 from the-ress/window-setappid
...
Added BrowserWindow.setAppDetails to set user model id, icon and relaunch command
2016-11-28 14:46:14 -08:00
Kevin Sawicki
3897a88082
Use skip for setAppDetails spec
2016-11-28 14:43:18 -08:00
Kevin Sawicki
0a61aad499
Add initial previewFile/closeFilePreview test
2016-11-28 14:32:15 -08:00
Kevin Sawicki
145e40c2f6
Add more origin comparison specs
2016-11-28 10:56:23 -08:00
Kevin Sawicki
41dea03007
window.opener location should be webview src URL
2016-11-28 10:56:23 -08:00
Kevin Sawicki
0799317ff5
Add failing specs window.opener from <webview> opened window
2016-11-23 12:01:09 -08:00
Kevin Sawicki
e356168c9a
Merge pull request #8047 from electron/fix-incorrect-window-size
...
Fix incorrect window size after restore on Windows
2016-11-22 14:01:50 -08:00
Kevin Sawicki
6f29d7211e
Move restore/unmaximize specs near state ones
2016-11-22 13:32:39 -08:00
Kevin Sawicki
63eec70350
Assert bounds when restoring
2016-11-22 13:22:30 -08:00
Kevin Sawicki
c0d9175bc3
Try specs without setTimeout calls
2016-11-22 13:14:17 -08:00
Kevin Sawicki
89965aa5db
Check runner.hasOnly for focused spec check
2016-11-22 13:06:18 -08:00
Kevin Sawicki
238beb72ee
Remove .only call
2016-11-22 11:41:02 -08:00
Kevin Sawicki
a7aed98d59
Add initial spec for zoom level limits
2016-11-22 08:43:14 -08:00
Samuel Attard
97b4f12112
Fix linting issues
2016-11-22 16:13:08 +11:00
Samuel Attard
926cabec78
Add spec for maximize restore positioning
2016-11-22 16:07:19 +11:00
Samuel Attard
67f33cdb60
Add failing spec for window size after restore
2016-11-22 15:49:47 +11:00
Kevin Sawicki
cbffd598f9
Add failing spec for unknown user defaults
2016-11-21 09:22:30 -08:00
Kevin Sawicki
d4ba5b4638
Add spec for zoomToPageWidth
2016-11-21 08:45:46 -08:00
Tereza Tomcova
782417b1fa
Added tests for BrowserWindow.setAppDetails
2016-11-18 21:34:01 +01:00
Kevin Sawicki
aa2824621a
Make scheme const
2016-11-16 08:03:07 -08:00
Kevin Sawicki
04c68745db
Always call done callback in before block
2016-11-16 07:50:30 -08:00
Cheng Zhao
81f2e76e36
Fix standard linting errors
2016-11-16 07:50:30 -08:00
Cheng Zhao
a1dfdbdde4
spec: Should check origin before accessing window.opener
2016-11-16 07:50:30 -08:00
Kevin Sawicki
fc1ce3eeab
Assert certs further up the chain
2016-11-15 16:32:12 -08:00
Kevin Sawicki
095d711848
Remove select-client-certificate issueCert assert
2016-11-15 16:24:50 -08:00
Kevin Sawicki
a1dca8afc9
🎨 Remove buildup asserts and just use assert.equal
2016-11-15 15:53:42 -08:00
Greg Nolle
86321a2c60
Fixed incorrect subject name of test client certificate.
2016-11-15 15:53:42 -08:00
Greg Nolle
2e5c92d41e
Fix listing issues: remove semicolons.
2016-11-15 15:53:42 -08:00
Greg Nolle
93ce2f7800
Add assertions for new fields in existing specs.
2016-11-15 15:53:42 -08:00
Kevin Sawicki
9e51c779e1
Assert expected height
2016-11-15 13:54:25 -08:00
Birunthan Mohanathas
2986b7bc4a
Allow webview guests to be resized manually
...
This adds the `disableguestresize` property for webviews to prevent the
webview guest from reacting to size changes of the webview element. This
also partially documents the `webContents.setSize` function in order to
manually control the webview guest size.
These two features can be combined to improve resize performance for
e.g. webviews that span the entire window. This greatly reduces the lag
described in #6905 .
2016-11-15 11:00:09 -08:00
Kevin Sawicki
eeffa42513
Merge pull request #7923 from jhen0409/patch-1
...
Add support remove / clear for chrome.storage
2016-11-15 09:04:45 -08:00
Jhen
8b30439d7f
Update devtools extension spec for chrome.storage
2016-11-15 19:58:08 +08:00
deepak1556
4deb7c6fa7
fix lint error
2016-11-12 07:16:48 +05:30
Kevin Sawicki
134f8afbe6
Add specs for content type on POST forms
2016-11-11 10:54:01 -08:00
Kevin Sawicki
50019f39e9
🎨
2016-11-11 10:54:01 -08:00
Kevin Sawicki
cbb68f6980
Remove quotes around key
2016-11-11 10:54:01 -08:00
deepak1556
61576c39be
uploadData => uploadRawData
2016-11-11 10:54:01 -08:00
deepak1556
ad5f944185
add spec
2016-11-11 10:53:36 -08:00
gellert
5e62d28e50
adds test, adds view to AtomNSWindow and minor fixes
2016-11-11 08:49:57 -08:00
deepak1556
3aab713d24
add failing spec
2016-11-09 11:00:50 +05:30
Kevin Sawicki
18e1de105f
Add failing spec for deleted guestinstance when moving webview
2016-11-07 13:42:36 -08:00
Kevin Sawicki
b84fed5cb2
Add failing spec for hide/show reload issue
2016-11-07 13:42:36 -08:00
Kevin Sawicki
f454cb3408
Add failing spec for hide/show webview issue
2016-11-07 13:42:36 -08:00
Kevin Sawicki
73774f21b7
🎨
2016-11-07 08:28:02 -08:00
Kevin Sawicki
19a5d2ba2b
Use window close helper instead of destroying for coverage
2016-11-07 08:25:01 -08:00
Kevin Sawicki
16f57b219b
Add resize event spec
2016-11-07 08:25:01 -08:00
Samuel Attard
9f18a6e65c
Use ES6 template strings, fix docs and remove _ERROR_ IPC event
2016-11-03 09:33:47 -07:00
Samuel Attard
857e1da6a3
Make executeJavaScript return a Promise so that caught errors can be sent to the caller
2016-11-03 09:33:47 -07:00
Samuel Attard
75b010ce63
Add sync executeJavaScript test
2016-11-03 09:33:47 -07:00
Kevin Sawicki
038718717c
Add initial ready-to-show spec
2016-10-31 12:40:49 -07:00
Kevin Sawicki
3f8e173452
Call callback asynchronously to match original issue
2016-10-31 08:54:57 -07:00
Kevin Sawicki
611614c649
Use equal/deepEqual for channel/args asserts
2016-10-31 08:54:57 -07:00
Kevin Sawicki
dda3fcef91
Add failing spec for notification permission crash
2016-10-31 08:54:56 -07:00
Cheng Zhao
dfefa00a50
Merge pull request #7577 from thomsonreuters/net_module
...
net module
2016-10-31 10:31:56 +09:00
ali.ibrahim
e9db926b48
Fixing code review issues: fixing linter issues in spec file.
2016-10-25 16:55:17 +02:00
ali.ibrahim
bdb3f4d4cb
Fixing code review issues: adding some test cases for partition/session options.
2016-10-25 16:19:26 +02:00
ali.ibrahim
b44d5290e2
Fixing code review issues: adding a partition options and making the session option only takes Session objects.
2016-10-25 15:47:54 +02:00
ali.ibrahim
61278f9ace
Fixing code review issues.
2016-10-25 12:41:01 +02:00
Kevin Sawicki
1c3b5835f4
Add spec for read/write find text
2016-10-25 14:15:54 +09:00
Kevin Sawicki
39a5c7dab9
Merge pull request #7631 from beakerbrowser/webview-policy-flags2
...
Add 'webpreferences' attribute to webview
2016-10-25 12:14:25 +09:00
Kevin Sawicki
31b4f61815
Merge pull request #7651 from deepak1556/session_cert_verifier_patch
...
session: exclude hosts from CT verification if they are handled by custom cert verifiers
2016-10-24 16:53:04 +09:00
Kevin Sawicki
271733fc53
Add tests for ses.setCertificateVerifyProc
2016-10-24 16:12:49 +09:00
Paul Frazee
a5c62bb264
add options to webFrame.registerURLSchemeAsPrivileged
2016-10-18 15:52:41 -05:00
ali.ibrahim
43113fcfb4
Fixing net response objects being piped into writable streams test.
2016-10-18 10:28:35 +02:00
ali.ibrahim
c198828e58
Adding gc tests: fixing a memory leak with C++ URLRequest objects.
2016-10-17 19:02:25 +02:00
Cheng Zhao
ce847fc3ca
Merge pull request #7578 from electron/windows-logging
...
Show console output from Windows when ELECTRON_RUN_AS_NODE is set
2016-10-17 20:22:39 +08:00
ali.ibrahim
9b4e9c642a
Making test code run directly in main browser context to avoid rpc persistent handles.
2016-10-17 11:51:20 +02:00
ali.ibrahim
c6ae27c7c9
Adding a stability test: non referenced, unused requests are collected without crash.
2016-10-17 10:38:10 +02:00
Paul Frazee
e7962c7ba2
fixes and tests for webview 'webpreferences' attr
2016-10-14 18:04:33 -05:00
ali.ibrahim
6f5b0a28c5
Fixing code review issues: function call formatting, renaming JS member variables, refactoring response headers conversion.
2016-10-13 17:14:23 +02:00
Samuel Attard
eac5ba4c56
Fix spec linting issues
2016-10-13 12:47:43 +11:00
Kevin Sawicki
e899050500
Add basic test of spawned ELECTRON_RUN_AS_NODE process
2016-10-12 13:48:49 -07:00
Kevin Sawicki
fefc7c23f9
Merge pull request #7479 from bpasero/process-no-asar
...
Introduce ELECTRON_NO_ASAR
2016-10-12 13:48:03 -07:00
Kevin Sawicki
f553d16539
Only support ELECTRON_NO_ASAR in non browser/renderer processes
2016-10-12 11:11:27 -07:00
Kevin Sawicki
8897a7a926
Add specs for ELECTRON_NO_ASAR env var
2016-10-12 11:11:27 -07:00
ali.ibrahim
16069cd477
Commenting some test code.
2016-10-12 17:13:06 +02:00
ali.ibrahim
ae1c33b863
fixing linter issues.
2016-10-12 14:54:32 +02:00
ali.ibrahim
d21def7b8d
Fixing various issues in tests.
2016-10-12 14:54:32 +02:00
ali.ibrahim
bd5e622bec
Adding request/response piping tests.
2016-10-12 14:54:31 +02:00
ali.ibrahim
a5c508d2d7
Adding abort, webRequest interception and creation tests.
2016-10-12 14:54:31 +02:00
ali.ibrahim
b731ca50bc
Adding HTTP request headers manipulation tests.
2016-10-12 14:54:30 +02:00
ali.ibrahim
4eb9fc1bb6
Adding chunked uploading test.
2016-10-12 14:54:29 +02:00
ali.ibrahim
9b94dfcbdc
Adding basic http tests, fixing issues in ClientRequest constructor.
2016-10-12 14:54:29 +02:00
ali.ibrahim
b57ffbf1ab
Temporary fix for the post data test.
2016-10-12 14:54:28 +02:00
ali.ibrahim
dcffb51e5e
Adding net module spec file skeleton.
2016-10-12 14:54:26 +02:00
Cheng Zhao
46cd8708a4
Merge pull request #7561 from electron/windows-system-colors
...
Support retrieving Windows system colors
2016-10-12 15:35:18 +09:00
Zeke Sikelianos
c46c1dbb1e
Merge pull request #7505 from electron/testing-docs
...
Update test dependencies and documentation
2016-10-11 22:28:16 -07:00
Zeke Sikelianos
d4a8a64ba7
Merge pull request #7498 from electron/custom-props-in-menu-item-constructor
...
Preserve custom properties passed to MenuItem constructor
2016-10-11 14:24:13 -07:00
Zeke Sikelianos
af0098f064
remove badge count after each setBadgeCount test
2016-10-11 14:22:48 -07:00
Zeke Sikelianos
156d823b7f
remove badge after setBadgeCount test finishes
2016-10-11 14:22:48 -07:00
Zeke Sikelianos
45d9cc6405
update test dependencies
2016-10-11 14:22:48 -07:00
Kevin Sawicki
e7bfd1c959
Add systemPreferences.getColor specs
2016-10-11 13:15:26 -07:00
Cheng Zhao
0baa60caab
Merge pull request #7528 from electron/key-and-code-on-sent-input-events
...
Set key and code on sendInputEvent keyboard events
2016-10-11 19:34:05 +09:00
Zeke Sikelianos
bcce7aff18
test that overrideProperty is not overwritten
2016-10-10 15:25:56 -07:00
Kevin Sawicki
7b49d94e9f
Add systemPreferences.isInvertedColorScheme API
2016-10-10 10:43:08 -07:00
Kevin Sawicki
987579d391
Send initial keyDown before char event
2016-10-10 09:35:44 -07:00
Kevin Sawicki
99414065a9
Add char/keypress event tests
2016-10-10 09:35:44 -07:00
Kevin Sawicki
e4b0577cb0
Assert key and code in keyup input event spec
2016-10-10 09:35:44 -07:00
Kevin Sawicki
424afd3faf
Update expected key and code values
2016-10-10 09:35:43 -07:00
Kevin Sawicki
d69367aa9b
Add keydown sendInputEvent specs
2016-10-10 09:35:43 -07:00
Cheng Zhao
91591f37e6
Merge pull request #7500 from electron/store-crashes-in-configured-temp-dir
...
Store crash reports in configured temp dir
2016-10-10 10:19:02 +09:00
Samuel Attard
a0284a9bc5
Add spec for window.open with webPreferences set to null
2016-10-07 12:13:04 +11:00
Zeke Sikelianos
b7e078e98d
sanitize MenuItem options
2016-10-06 14:37:13 -07:00
Kevin Sawicki
fbbffe03a5
Add getPath specs
2016-10-06 09:57:25 -07:00
Kevin Sawicki
4a8dcec63a
Wait for crash report to become available
2016-10-06 09:47:07 -07:00