Milan Burda
6ad0a22602
Add process.getHeapStatistics() ( #13183 )
2018-06-10 22:00:36 +10:00
Alexey Kuzmin
0d5e98a201
Slightly rewrite <webview> tag tests ( #13122 )
2018-06-01 10:56:48 +02:00
Charles Kerr
b89fe86fa1
Merge pull request #13050 from electron/3.0.0-deprecations
...
chore: removal of 3.0.0 deprecations
2018-05-30 09:25:36 +02:00
Shelley Vohr
d40cce92bf
remove deprecated signature tests
2018-05-29 11:42:03 -04:00
Shelley Vohr
2660859434
update signature for setCertificateVerifyProc in session spec
2018-05-29 10:54:27 -04:00
Charles Kerr
2275625e1a
feat: warn if deprecated property is already set
2018-05-29 15:58:02 +02:00
Charles Kerr
61fac1bbc1
test: add tests for deprecate.property()
2018-05-29 15:40:48 +02:00
Milan Burda
4cfe5ecaa4
add proper support for typed arrays in remote ( #13055 )
2018-05-24 21:05:46 +09:00
Aleš Pergl
93bee69266
Remove command line argument black-list ( #13039 )
...
* Remove command line argument black-list
Instead block all arguments following a URL.
* Updated tests
2018-05-22 11:51:03 -05:00
Shelley Vohr
560c0e72e6
Fix vulnerabilities both top-level and in spec ( #13029 )
...
* fix dependency vulnerabilities
* fix vulnerabilities in spec
2018-05-21 21:15:18 -07:00
Cheng Zhao
300c7a4b04
add tests for View and WebContentsView
2018-05-21 10:53:09 +09:00
Alexey Kuzmin
fc34076c2b
Refactor <webview> tag tests ( #12886 )
2018-05-14 17:00:49 -05: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
Shelley Vohr
daf75dd375
add app.isPackaged ( #12656 )
...
* add isPackaged method
* add false test case for app.isPackaged()
* document add.isPackaged()
* check isPackaged() without fs call
* convert to non-method property
* document app.isPackaged as a property
* update tests for app.isPackaged
* remove unused fs require
* clarify docs for isPackaged()
2018-05-07 23:15:31 -07:00
Samuel Attard
5b5c161601
feat: new makeSingleInstance API ( #12782 )
...
* Refactor app.makeSingleInstance
* new API `app.isPrimaryInstance()`
* new API `app.isSingleInstance()`
* new event `app.on('second-instance')`
* deprecated old syntax `app.makeSingleInstance(cb)`
* deprecated old syntax of `app.makeSingleInstance() --> bool` in favor
of `app.isPrimaryInstance()`
* Fix spec, we don't need process.nextTick hacks any more
* Make deprecation TODO for the return value of makeSingleInstance
* Refactor makeSingleInstance to requestSingleInstanceLock and add appropriate deprecation comments
* I swear this isn't tricking the linter
* Make const
* Add deprecation warnings for release, and add to planned-breaking-changes
BREAKING CHANGE
2018-05-08 01:29:18 +10:00
Shelley Vohr
9c8952aef0
Add menu item order control ( #12362 )
...
Add four new optional properties to menus in Electron. The four properties are:
'before'
'after'
'beforeGroupContaining'
'afterGroupContaining'
'before/after' - provides a means for a single context menu item to declare its placement relative to another context menu item. These also imply that menu item in question should be placed in the same “group” as the item.
'beforeGroupContaining/afterGroupContaining - provides a means for a single menu item to declare the placement of its containing group, relative to the containing group of the specified item.
2018-05-05 09:37:29 -07: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
Cheng Zhao
d46aa92f0b
make security-warnings tests more robust ( #12757 )
2018-05-01 14:28:55 +09:00
Cheng Zhao
e00b128a50
fix flaky security-warnings test ( #12749 )
2018-05-01 09:49:45 +09:00
Tatsuya Hiroishi
9c65abd746
handle remote exception ( #12694 )
...
* add cause property to exception in callFunction
* update exceptionToMeta function
* add sender argument
* and cause property to return value
* update exception convert in metaToValue function
* add from and cause properties to the exception error
* unit test for remote exception
2018-04-24 08:40:19 -04: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
Alexey Kuzmin
fcc82ebd35
Add "app.whenReady()" ( #12652 )
...
* Make "chai-as-promised" avaialble in tests
* Add "app.whenReady()"
Closes #9561 .
2018-04-20 17:09:23 +10:00
Jeremy Apthorp
97fb15ac49
Enable WebFrame method forwarding in sandboxed renderers ( #12538 )
...
* Enable WebFrame method forwarding in sandboxed renderers
Fixes #9073
* Non-change to kick CI
2018-04-12 11:57:40 +10: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
Andrew MacDonald
6bfb122cd1
Add a display_id parameter to the desktopCapturer API. ( #12417 )
...
* Add a screen_api_id parameter to the desktopCapturer API.
When using the DirectX capturer on Windows, there was previously no way
to associate desktopCapturer/getUserMedia and electron.screen API
screens. This new parameter provides the association.
* Fix non-Windows build.
* Fix Mac.
* Fix Mac harder.
* JS lint
* clang-format C++ code.
* IWYU
* display_id, Linux comment, better test
* lint
* Fix tests on Linux.
* Add display_id documentation.
2018-04-09 14:43:35 +09:00
Nitish Sakhawalkar
970f79e32f
Check for devtools in BrowserWindow.getFocusedWindow() ( #12526 )
2018-04-06 09:21:32 -04:00
Robo
65e8199a93
Enable plznavigate aka browser side navigation ( #12535 )
...
* enable plznavigate code path
* AtomBrowserClient::GetGeolocationApiKey returns the right default
* use IsLoadingToDifferentDocument to identify top level navigation in mainFrame
* use candidate site instance when available
* spec: don't test httpReferrer option for file origin
* update libcc ref
* affinity: only group same site in this mode
* plznavigate: don't emit did-get-response-details event for blob scheme
2018-04-06 16:22:52 +09:00
Jeremy Apthorp
f0d08f4da1
Propagate referrer to new windows ( #12397 )
...
* Propagate referrer to new windows
Fixes #9205
* Rearrange -new-window event arguments for backwards-compatibility
* Plumb referrer policy through guest-window-manager
* Document the Referrer structure and its uses
* Add tests for referrer in new windows
* Docs nits
2018-04-05 18:13:24 -05:00
Adrien Fery
5486a65702
Improve in-app purchase for MacOS ( #12464 )
...
* Add methods to finish transactions
* Add a method to get the product descriptions from the App Store
* Improve the documentation of a transaction structure
* Add a tutorial for In App Purchase
* Fix typo in In-App Purchase tutorial
* Fix style of In-App Purchase files
* Fix In-App-Purchase product structure conversion in amr64
* Fix code style in In-App Purchase tutorial documentation
* Fix typos in In-App Purchase documentation
* Fix typo in In-App Purchase spec
* Slight style fixes
2018-04-05 15:33:13 +09:00
Nitish Sakhawalkar
fbff355742
Support for navigator.languages ( #12419 )
2018-04-02 12:47:00 +09:00
Cheng Zhao
f41cce96a3
Increase timeout for inAppPurchase test ( #12403 )
2018-03-22 08:47:29 -05:00
deepak1556
e24c0dda5d
add features module to detect availability of build time features at runtime
2018-03-20 10:13:17 +03:00
deepak1556
4b39d17e5f
move pdf viewer behind feature flag
2018-03-20 10:13:17 +03:00
deepak1556
f9de29ed8c
Enable node crypto spec
2018-03-20 10:13:16 +03:00
Aleksei Kuzmin
d5ecbfc539
spec: Do not assume en-US locale to be the current
2018-03-20 10:13:16 +03:00
Nitish Sakhawalkar
524f56354c
Fix webview resize test
2018-03-20 10:13:16 +03:00
deepak1556
80772c2419
FIXME: Disable node crypto spec
2018-03-20 10:13:15 +03:00
deepak1556
719980a948
REVIEW: remove device emulation ipc dependecny on rvh
2018-03-20 10:13:15 +03:00
Aleksei Kuzmin
490b1e2532
FIXME: Disable some tests to avoid crashes
2018-03-20 10:13:15 +03:00
Shelley Vohr
31d688ad3d
Check menu.popup options are an object ( #12325 )
...
* check menu.popup options are an object
* Add a spec for menu.popup options check
* remove stray .only
2018-03-17 06:31:10 +09:00
Birunthan Mohanathas
2681e769a6
Document BrowserView.{destroy,isDestroyed} ( #12274 )
2018-03-15 16:15:56 +09: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
Samuel Attard
9ed9885c8d
fix remote setInterval flake ( #12263 )
2018-03-14 14:51:47 +09:00
OJ Kwon
e7181eb89c
feat(powerMonitor): expose interface to query system idle state ( #11807 )
...
* feat(BrowserWindow): expose interface to query system idle state
* test(BrowserWindow): update test cases for querySystemIdle interface
* docs(BrowserWindow): add querySystemIdle interface documentation
* refactor(powerMonitor): move querySystemIdle into powerMonitor
* test(powerMonitor): split test cases for all platform
2018-03-14 14:42:08 +09:00
Samuel Attard
90dc897f71
add missing report.length > 1 assertion ( #12257 )
2018-03-14 13:14:29 +09:00
Hari Juturu
704af29543
Exposing process.env status ( #12166 )
2018-03-14 12:01:40 +09:00
Robo
e741bc0577
fix crash when using getWebPreferences api with devtools webContents ( #12254 )
2018-03-14 11:19:22 +09:00
Samuel Attard
e62349cffb
Merge pull request #12253 from felixrieseberg/fix-last-crash-report
...
fix: Ensure that `getLastCrashReport()` is actually the last crash report
2018-03-14 10:36:27 +09:00
Felix Rieseberg
ee67211035
🔧 Linter's gotta lint
2018-03-13 17:41:02 -07:00
Felix Rieseberg
582ef30b4a
👷 Tests, how do they work
2018-03-13 17:35:55 -07:00
Felix Rieseberg
1b3568e66e
👷 Fancy test
2018-03-13 17:28:15 -07:00
Felix Rieseberg
3575dae75c
🔪 Cut typo
2018-03-13 16:58:40 -07:00
Felix Rieseberg
673335de4b
🔧 Actually test the method
2018-03-13 16:51:20 -07:00
deepak1556
c3bcb606a9
spec: isolate sw file scheme spec storage with temp partition
2018-03-14 02:03:55 +09:00
Charles Kerr
e400585a0e
Apply further ES6 bikeshedding
2018-03-13 17:09:47 +09:00
Charles Kerr
e4d5ae53fc
Add tests
2018-03-13 15:55:48 +09:00
Charles Kerr
86af20ded0
Linux named notifications ( #12192 )
...
* Set name & desktop-entry on Linux notifications
* DBusMock now honors verbose mode flag
* Disable DBus Notification tests on ia32
2018-03-12 09:33:06 +09:00
Cheng Zhao
cf36fdecbf
Skip client-certificate test for Linux ( #12189 )
2018-03-09 14:43:49 +09:00
Cheng Zhao
cde0c1d418
Print detailed error for serviceWorker test ( #12186 )
2018-03-08 21:06:29 -05:00
John Kleinschmidt
134d3f98c9
Allow CI building on arm64 hardware
2018-03-08 09:53:47 -05: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
Cheng Zhao
cc6bcb6c81
Fix some flaky tests in CI ( #12153 )
...
* Guard whole InitPrefs with ScopedAllowIO
Saw a crash:
0 0x7f8d2f7d918d base::debug::StackTrace::StackTrace()
1 0x7f8d2f7d755c base::debug::StackTrace::StackTrace()
2 0x7f8d2f867caa logging::LogMessage::~LogMessage()
3 0x7f8d2fa157c7 base::ThreadRestrictions::AssertIOAllowed()
4 0x7f8d2f83453a base::OpenFile()
5 0x7f8d2f82a967 base::ReadFileToStringWithMaxSize()
6 0x7f8d2f82ad44 base::ReadFileToString()
7 0x7f8d2f846f73 JSONFileValueDeserializer::ReadFileToString()
8 0x7f8d2f84738c JSONFileValueDeserializer::Deserialize()
9 0x7f8d35a5d1f6 <unknown>
10 0x7f8d35a5c217 JsonPrefStore::ReadPrefs()
11 0x7f8d35a87d3e PrefService::InitFromStorage()
12 0x7f8d35a87c60 PrefService::PrefService()
13 0x7f8d35a91a10 PrefServiceFactory::Create()
14 0x000000e86e1b brightray::BrowserContext::InitPrefs()
15 0x000000c2bd64 atom::AtomBrowserContext::AtomBrowserContext()
16 0x000000c320db atom::AtomBrowserContext::From()
17 0x000000b4b8b5 atom::api::Session::FromPartition()
* Fix done being called twice in setInterval test
The callback passed to browser process is called asyncly, so it is
possible that multiple callbacks has already been scheduled before we
can clearInternval.
* Fix failing test when dir name has special chars
The pdfSource is not escaped while parsedURL.search is.
* Call done with Error instead of string
* Fix crash caused by not removing input observer
Solve crash:
0 libcontent.dylib content::RenderWidgetHostImpl::DispatchInputEventWithLatencyInfo(blink::WebInputEvent const&, ui::LatencyInfo*) + 214
1 libcontent.dylib content::RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo(blink::WebMouseEvent const&, ui::LatencyInfo const&) + 1350
2 libcontent.dylib content::RenderWidgetHostViewMac::ProcessMouseEvent(blink::WebMouseEvent const&, ui::LatencyInfo const&) + 44
3 libcontent.dylib content::RenderWidgetHostInputEventRouter::RouteMouseEvent(content::RenderWidgetHostViewBase*, blink::WebMouseEvent*, ui::LatencyInfo const&) + 1817
* Print detailed error
* Run tests after server is ready
2018-03-07 14:40:27 +09:00
Charles Kerr
65ee977a86
Exit gracefully on linux ( #12139 )
...
* Fix timing issue in singleton fixture.
Singleton now sends the "we've started" message out only after it's
received a `'ready'` event from `app`. Previously it sent the message
out immediately, resulting in the parent test trying to manipulate it
before Singleton's event loop was fully bootstrapped.
* Check for graceful exits on Linux, too.
Rewrite the "exits gracefully on macos" spec to run on Linux too.
* Check for graceful exits everywhere.
* Tweak comment
* Better error logging in api-app-spec.js. (#12122 )
In the 'exits gracefully' test for app.exit(exitCode),
print the relevant error information if the test fails.
* Run the exit-gracefully test on macOS and Linux.
Windows does not support sending signals, but Node.js offers some
emulation with process.kill(), and subprocess.kill(). Sending signal 0
can be used to test for the existence of a process. Sending SIGINT,
SIGTERM, and SIGKILL cause the unconditional termination of the target
process.
So, we'll need a different approach if we want to test this in win32.
2018-03-06 22:01:17 -05:00
Cheng Zhao
90bd1fd7e9
Native confirm/alert throws differently
2018-03-06 14:06:29 +09:00
Shelley Vohr
3635872f37
remove screen.getMenuBarHeight spec
2018-03-05 20:10:34 -05:00
Charles Kerr
e9808d138f
Better error logging in api-app-spec.js. ( #12122 )
...
In the 'exits gracefully on macos' test for app.exit(exitCode),
print the relevant error information if the test fails.
2018-03-06 03:13:47 +09:00
shelley vohr
dfa1dc43df
Merge pull request #12059 from electron/add-tabbedwindow-warning
...
add warning when addTabbedWindow is called on self
2018-02-28 01:18:10 -08:00
Shelley Vohr
bf491de9fe
fix styling and add spec
2018-02-28 00:22:42 -08:00
Cheng Zhao
35cbe9d140
Fix dockMenu not being referenced in JavaScript ( #12062 )
...
* Fix dockMenu not being referenced in JavaScript
* spec: Test garbage collecting dock menu
2018-02-26 22:15:06 -08:00
Cheng Zhao
f7786a9e48
Merge pull request #11230 from electron/upgrade-to-chromium-62
...
Upgrade to Chromium 62
2018-02-26 14:20:21 +09:00
shelley vohr
18362eb948
improve Menu and MenuItem testing ( #12015 )
...
* split menu/menuitem and add some tests
* fix ipc send issue
* feedback: make tests less brittle
* clean up MenuItem accelerator and label tests
2018-02-23 07:53:59 -06:00
Aleksei Kuzmin
dcb369ee46
Fail "navigator.serviceWorker" tests if WebContents crashes
2018-02-23 10:21:24 +09:00
Aleksei Kuzmin
fbd5e4c2b3
Disable the "ffi" module test
2018-02-23 10:21:24 +09:00
John Kleinschmidt
2a97e48465
Merge pull request #11968 from electron/refactor-menu-popup
...
Refactor menu.popup
2018-02-21 14:29:52 -05:00
Charles Kerr
5a25b88b50
Fix browserWindow detection in menu.popup()
2018-02-20 18:35:39 -06:00
Charles Kerr
708f39a1a5
update a few menu.popup() calls to use the new API
2018-02-20 14:02:24 -06:00
shelley vohr
846be03f1d
remove support for hidden-inset ( #11975 )
2018-02-20 11:09:54 -06:00
Cheng Zhao
dc62e51ba4
Fix the cyclic reference in menu delegate ( #11967 )
...
* Fix the cyclic reference in menu delegate
* Fix menu tests due to delegate change
2018-02-20 10:11:35 -06:00
Shelley Vohr
fb7fb4972d
options all the things
2018-02-20 11:10:53 -05:00
shelley vohr
8d4bf3e29a
Merge pull request #11974 from electron/remove-setZoomLevelLimits
...
remove setZoomLevelLimits
2018-02-20 10:51:41 -05:00
shelley vohr
a2856db982
Remove nativeImage deprecated methods ( #11978 )
...
* remove deprecated nativeimage methods
* remove .only from spec
2018-02-20 09:15:27 -06:00
Shelley Vohr
211b542ae4
remove setZoomLevelLimits
2018-02-20 08:57:48 -05:00
Shelley Vohr
73ab87b87f
add new and changed specs
2018-02-19 20:59:47 -05:00
Shelley Vohr
9c52d273dd
add spec for menu.popup(window, callback)
2018-02-19 13:15:49 -05:00
Paul Frazee
01a6104727
Add download from custom protocol test ( #11931 )
2018-02-16 13:03:53 -05:00
Cheng Zhao
67fa13d7cf
Merge pull request #11925 from electron/squirrel-mac-cdn
...
Update to use Squirrel.Mac that supports CDN releases
2018-02-16 15:28:39 +09:00
Samuel Attard
a20b379f26
fix windows tests
2018-02-16 16:02:10 +11:00
Cheng Zhao
af92b04eb9
Merge pull request #11654 from sethlu/set-notification-close-button-text
...
feat: Set macOS notification close button title
2018-02-15 16:01:30 +09:00
Samuel Attard
6318cd781d
Update to use Squirrel.Mac that supports CDN releases
2018-02-15 14:00:46 +11:00
shelley vohr
a55fd06aa2
Revert "Merge pull request #11737 from kwonoj/feat-cache-capacity" ( #11906 )
...
This reverts commit 181169b743
, reversing
changes made to baced3152f
.
2018-02-13 10:49:27 -05:00
Emmanuel Kimmerlin
9c1b47361f
Add an "affinity" option to webPreferences
2018-02-13 15:18:55 +09: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
181169b743
Merge pull request #11737 from kwonoj/feat-cache-capacity
...
feat(webframe): export set cache capacity interface
2018-02-13 06:02:25 +11:00
Samuel Attard
b3234f634b
Add ability to set arbitrary arguments in a renderer process ( #11850 )
2018-02-12 11:54:31 -06:00
Zhuo Lu
38d284590f
Add Notification tests
2018-02-10 03:19:47 -08:00
Shelley Vohr
1e090b9ee7
remove .only
2018-02-08 13:50:44 -05:00
Shelley Vohr
f6d389b159
fix child process import
2018-02-08 13:50:19 -05:00
Shelley Vohr
e10b5e13e9
move spec to chromium_spec
2018-02-08 13:00:41 -05:00
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