Cheng Zhao
31e2166cea
Revert "spec: disable the i18nString test"
...
This reverts commit 86c79653de
.
2018-07-09 14:40:18 +00:00
trop[bot]
c2f4144996
Backport (3-0-x) - Fix devtools not functioning well ( #13571 )
...
* implement devtools showItemInFolder message
* add stubs for new devtools messages
* fix: update devtools url
* spec: enable back devtools tests
* spec: disable the i18nString test
It is failed because of fs.statSyncNoException, I'll fix it in another
PR.
2018-07-06 13:19:21 +10:00
Heilig Benedek
f643ce4f66
revert: frame subscriber deprecation and re-enable tests
2018-06-19 19:49:44 +02:00
Aleksei Kuzmin
25e5c174f5
Disable a test
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
03a63a485f
FIXME: Disable some of the focus related tests
...
They all pass localy, so it must be a CI issue.
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
de6a5de914
Disable all failing tests
2018-06-19 11:49:45 +10:00
Aleksei Kuzmin
3ca288aba4
FIXME: Disable "BrowserWindow module extensions and dev tools extensions works when used with partitions" test
2018-06-19 11:49:45 +10:00
Aleksei Kuzmin
6c0b5cd76c
FIXME: Disable "BrowserWindow module beginFrameSubscription method" tests
2018-06-19 11:49:45 +10:00
deepak1556
7b47d69efe
Remove did-get-response-details and did-get-redirect-request events
...
https://chromium-review.googlesource.com/c/chromium/src/+/805008
https://chromium-review.googlesource.com/c/chromium/src/+/786320
2018-06-19 11:49:41 +10:00
Milan Burda
2eb5b751f3
exit HTML fullscreen when window leaves fullscreen ( #13090 )
2018-06-18 16:48:20 +09:00
Thiago de Arruda
6ff111a141
perf: don't use JSON to send the result of ipcRenderer.sendSync
. ( #8953 )
...
* Don't use JSON to send the result of `ipcRenderer.sendSync`.
- Change the return type of AtomViewHostMsg_Message_Sync from `base::string16`
to `base::ListValue`
- Adjust lib/browser/api/web-contents.js and /lib/renderer/api/ipc-renderer.js
to wrap/unwrap return values to/from array, instead of
serializing/deserializing JSON.
This change can greatly improve `ipcRenderer.sendSync` calls where the return
value contains Buffer instances, because those are converted to Array before
being serialized to JSON(which has no efficient way of representing byte
arrays).
A simple benchmark where remote.require('fs') was used to read a 16mb file got
at least 5x faster, not to mention it used a lot less memory. This difference
tends increases with larger buffers.
* Don't base64 encode Buffers
* Don't allocate V8ValueConverter on the heap
* Replace hidden global.sandbox with NodeBindings::IsInitialized()
* Refactoring: check NodeBindings::IsInitialized() in V8ValueConverter
* Refactor problematic test to make it more reliable
* Add tests for NaN and Infinity
2018-06-13 17:38:31 +10:00
Alexey Kuzmin
d5dfb19508
Update some tests ( #12917 )
...
* Use Chai for webview tests
* Slightly rewrite one of the <webview> tests
"dom-ready event" > "throws a custom error..."
* Use Chai for BrowserWindow tests
* Rewrite BrowserWindow.addDevToolsExtension tests
2018-05-14 13:17:31 -05:00
Heilig Benedek
eae0674f61
Match chromium's workaround when setting size of unresizable windows
2018-05-12 17:37:31 +02:00
Alexey Kuzmin
3fd0ec99ae
Better OSR tests ( #12817 )
...
* Add features.isOffscreenRenderingEnabled()
* Use .isOffscreenRenderingEnabled() to determine if OSR is available
* Add a helper closeTheWindow() function
* Skip OSR tests if they are disabled
2018-05-03 11:10:25 -05:00
Nitish Sakhawalkar
2579071b98
Deprecate did-get-response-details and did-get-redirect-request ( #12615 )
...
* Deprecate webContents events did-get-response-details and did-get-redirect-request.
* Update guest view files
* Update webview tag docs and update specs
* Update deprecate.event function
* Update comment
* Update more
* Update documentation for other deprecated event
2018-04-23 14:46:12 -05:00
Nitish Sakhawalkar
6fc819dae1
Fix transparency in capturePage ( #12561 )
...
* Fix transparent window capture. Transparency is preserved and not converted to black pixels anymore
* Add test to make sure aplha channel exists in captured image
2018-04-10 19:07:15 +09:00
Nitish Sakhawalkar
970f79e32f
Check for devtools in BrowserWindow.getFocusedWindow() ( #12526 )
2018-04-06 09:21:32 -04:00
Charles Kerr
c2673aa970
Set appropriate defaults for webview options ( #12271 )
...
* Persist defaults to webPreferences object to JS land can read the inferred values instead of just user defined values
* Test inherited default propogation
* Refactor to remove coupling from fetching values and defaults
* Test description type
* Fix up tests
2018-03-15 13:56:46 +09:00
Hari Juturu
704af29543
Exposing process.env status ( #12166 )
2018-03-14 12:01:40 +09:00
Hari Juturu
2f4fd3324b
Preload doesn't load in sandboxed render if preload path contains special chars ( #12037 )
...
* Adding missing headers
* adding ut
* Removing the file path exists check
* fixing test
* exposing window.require in UT
2018-03-07 11:40:00 -05:00
Shelley Vohr
bf491de9fe
fix styling and add spec
2018-02-28 00:22:42 -08:00
shelley vohr
846be03f1d
remove support for hidden-inset ( #11975 )
2018-02-20 11:09:54 -06:00
Samuel Attard
9bd7d53cf8
Handle empty handles ( #11598 )
...
* Handle empty handles
* Close and dispose window at end of void test
* Dispose of existing window before running void 0 spec
2018-02-12 14:46:29 -05:00
Samuel Attard
b3234f634b
Add ability to set arbitrary arguments in a renderer process ( #11850 )
2018-02-12 11:54:31 -06:00
Nitish Sakhawalkar
62d2a3472f
Fix test BrowserWindow.addTabbedWindow() ( #11795 )
...
* Fix test BrowserWindow.addTabbedWindow()
* Address review comments
2018-02-02 19:31:02 -07: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
1c0ea0286e
Merge pull request #11235 from electron/standard-10
...
infra: Upgrade to StandardJS 10
2017-11-27 15:42:52 +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
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
Aleksei Kuzmin
cf749a8e18
Explicitly skip tests that should be skipped
2017-11-20 14:43:23 +01: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
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
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
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
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