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
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
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
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
238beb72ee
Remove .only call
2016-11-22 11:41:02 -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
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
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
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
Samuel Attard
a0284a9bc5
Add spec for window.open with webPreferences set to null
2016-10-07 12:13:04 +11:00
Michael Vasseur
edd80d88a9
Update BrowserWindow's test to check additional features upon window.open() call
2016-10-05 13:45:15 +02:00
Kevin Sawicki
d942694695
openedWindow -> popupWindow
2016-09-30 08:54:24 -07:00
Kevin Sawicki
766f5afabd
Explicitly close popup window
2016-09-30 08:50:41 -07:00
Kevin Sawicki
e16fa08e61
🎨
2016-09-30 08:38:21 -07:00
Kevin Sawicki
3bed19d70d
Add spec for BrowserWindow.setAlwaysOnTop
2016-09-28 09:23:52 -07:00
Thiago de Arruda
47fd41715f
Add some tests for "sandbox" option
2016-09-27 06:01:47 -03:00
Phil Haack
cadbd7beb1
Merge pull request #7145 from electron/device-scale-factor-failures
...
Get specs passing on displays using certain device scale factors
2016-09-09 07:38:23 -07:00
Kevin Sawicki
7c26fe46b8
=== -> !==
2016-09-08 17:12:53 -07:00
Kevin Sawicki
68c67b64c5
Use delta when scale factor is above 2 and odd
2016-09-08 16:24:11 -07:00
Kevin Sawicki
59a49f6f96
Use bounds helper in failing specs
2016-09-08 16:20:46 -07:00
Kevin Sawicki
7494e286d9
Put actual value first
2016-09-08 16:20:45 -07:00
Kevin Sawicki
d88f70caa2
Use single assert bounds helper
2016-09-08 16:20:45 -07:00
Kevin Sawicki
71fac07a93
Add scale factor assert helpers
2016-09-08 16:20:45 -07:00
Kevin Sawicki
aaf2bb2751
Add spec for deleting Buffer global in preload
2016-09-08 10:34:09 -07:00
Kevin Sawicki
c754b5efdc
Add failing spec for state changes resizing frameless window
2016-08-15 12:30:26 -07:00
Cheng Zhao
81244c2221
Merge pull request #6768 from electron/felix-set-progress
...
Enable mode indication for setProgressBar
2016-08-09 20:58:07 +09:00
Felix Rieseberg
73c91dae9e
🔧 Enable mode indication for setProgressBar
...
This commit enables setting a mode for the setProgressBar method.
Old behavior is kept intact, usage is entirely optional.
2016-08-08 15:52:20 -07:00
Kevin Sawicki
e767d3c131
Add spec for executeJavaScript DOM class prototype
2016-08-08 09:42:43 -07:00
Cheng Zhao
3be68ba136
Merge pull request #6736 from electron/maximizable-state
...
Always restore maximizable state after changing window behavior/style
2016-08-05 17:25:22 +09:00
Kevin Sawicki
23203daf95
Non-resizable windows should only maximizable on Mac
2016-08-04 17:22:09 -07:00
Kevin Sawicki
41a0a3fff2
Add failing spec
2016-08-04 16:46:40 -07:00
Kevin Sawicki
2a20630f2f
Use same position as setPosition test
2016-08-04 13:02:41 -07:00
Kevin Sawicki
3a0ceb40b9
Assert new content bounds after resize event
2016-08-04 12:54:45 -07:00
Kevin Sawicki
3041fcc79e
Add spec for BrowserWindow.setContentBounds
2016-08-04 12:34:09 -07:00
Kevin Sawicki
79eee0fdf1
Assert after size through getContentBounds() API
2016-08-04 09:58:35 -07:00
Kevin Sawicki
ad07a20d9a
Use electabul to instrument and report coverage
2016-08-03 16:23:39 -07:00
Kevin Sawicki
2c0de93f06
Use once when calling done callback
2016-08-03 16:23:39 -07:00
Kevin Sawicki
0ebe142b2f
Close windows instead of destroying them
2016-08-03 16:23:39 -07:00
Cheng Zhao
ea8ea1543f
Refactor osr_output_device
2016-08-03 13:06:38 +09:00
Cheng Zhao
c8b544ee1f
spec: Remove duplicate code in tests
2016-08-03 10:27:55 +09:00
gellert
35ee99265e
adds tests for osr
2016-07-31 17:10:53 +02:00
Kevin Sawicki
181b8d799e
Add spec for min/max window size
2016-07-12 16:36:25 -07:00
Kevin Sawicki
8b35814d10
🎨
2016-06-29 09:46:16 -07:00
Kevin Sawicki
197ec98800
Remove standard linter warnings
2016-06-29 09:46:16 -07:00
Kevin Sawicki
d2d11ce8bd
Invoke callback instead of returning
2016-06-28 13:04:59 -07:00
Kevin Sawicki
2fe83bc5f0
Add failing spec for no specified storage keys
2016-06-28 13:01:51 -07:00
Cheng Zhao
090c8b89bb
spec: Make beginFrameSubscription test more reliable
2016-06-26 11:53:58 +09:00
Heilig Benedek
5118def724
damaged -> dirty rename, fixed misc issues, changed signature, updated docs and added tests
2016-06-25 18:23:40 +02:00
Cheng Zhao
e33e4be257
macOS: Use sheet window as modal window
2016-06-20 14:49:24 +09:00
Cheng Zhao
f4bec78ccb
linux: Implement win.setParentWindow(parent)
2016-06-20 11:16:41 +09:00
Cheng Zhao
a6c4bf098b
spec: Avoid calling setParentWindow for unrelated tests
2016-06-20 11:16:41 +09:00
Cheng Zhao
85ba382027
Add "parent" option for BrowserWindow
2016-06-20 11:16:41 +09:00
Cheng Zhao
2c5f4aadfb
spec: Test cases for win.setModal(modal)
2016-06-20 11:16:41 +09:00
Cheng Zhao
214dd97165
spec: Test cases for parent window
2016-06-20 11:16:41 +09:00
Leonard Lamprecht
67dd19ed0f
Replace OS X and Mac OS with macOS
2016-06-18 15:26:26 +02:00
Kevin Sawicki
b6f87574ee
Reset icon and clear progress bar
2016-06-16 15:01:37 -07:00
Kevin Sawicki
52525ef6bc
Add failing spec for icon progress crash
2016-06-16 14:57:07 -07:00
Cheng Zhao
853d7b1b79
Merge pull request #5965 from electron/installed-extension-api
...
Add BrowserWindow.getDevToolsExtensions API
2016-06-13 00:45:58 +00:00
Jessica Lord
c68ca16148
Merge pull request #5974 from electron/chrome-storage-sync
...
Add chrome.storage.sync and chrome.storage.get APIs
2016-06-10 12:20:03 -07:00
Kevin Sawicki
1f245d5ff6
Add getDevToolsExtensions API
2016-06-10 09:26:38 -07:00
Kevin Sawicki
0a26075699
Add BrowserWindow.isDevToolsExtensionInstalled API
2016-06-10 09:24:04 -07:00
Cheng Zhao
ccaf837da4
Merge pull request #5964 from electron/manifest-errors
...
Throw errors reading/parsing manifest.json files
2016-06-10 03:28:57 +00:00
Jessica Lord
8fa4d66a5e
Remove .only from spec
2016-06-09 16:39:42 -07:00
Jessica Lord
f121f46a24
Merge branch 'master' into chrome-storage-sync
2016-06-09 16:35:00 -07:00
Jessica Lord
d6b108b272
Add spec
2016-06-09 14:14:20 -07:00
Jessica Lord
0ed10658a3
Add spec
2016-06-09 13:57:51 -07:00
Kevin Sawicki
d1ac5dd29b
Add specs for manifest.json read/parse error
2016-06-09 09:44:49 -07:00
deepak1556
b91217f29e
emit once for each session and add spec
2016-06-09 10:40:51 +05:30
Kevin Sawicki
4f7bde38a9
Assert on tab id as well
2016-06-08 12:00:13 -07:00
Kevin Sawicki
d6311daea3
Add failing spec for chrome.runtime.id
2016-06-06 14:41:55 -07:00
Daniel Pham
34af9794a2
✅ Add test for 'setAspectRatio(0)'
2016-05-29 08:47:42 -04:00
Cheng Zhao
fa0ce7ad5f
Adjust to the new behaviors of beforeunload handler
2016-05-23 14:27:39 +09:00
deepak1556
c9b314d43c
renderer: generate net error strings when requested
2016-05-21 10:21:15 +05:30
Kevin Sawicki
cee31ff67a
Remove semicolon
2016-05-17 16:42:37 -07:00
Kevin Sawicki
9266f9abfc
Update interval id variable name
2016-05-17 16:42:21 -07:00
Kevin Sawicki
f95c46d987
Show last panel by id
2016-05-17 16:40:34 -07:00
Kevin Sawicki
13cfc2d2a0
Add comment about panel switching via input event
2016-05-17 15:05:58 -07:00
Kevin Sawicki
8d0c5c30b8
Use consistent function styles
2016-05-17 15:05:27 -07:00
Kevin Sawicki
0b4b79d0a4
Use control on non-mac platforms
2016-05-17 15:01:32 -07:00
Kevin Sawicki
7db2601ea8
DRY up specs
2016-05-17 14:59:33 -07:00
Kevin Sawicki
77b074fbad
Add spec for undocked devtools
2016-05-17 14:56:00 -07:00
Kevin Sawicki
189380d4ea
Add spec for devtools extension
2016-05-17 14:52:45 -07:00
Kevin Sawicki
58473f41ab
Remove deprecated BrowserWindow options specs
2016-05-06 10:12:54 -07:00
Cheng Zhao
214eb0430c
Fix a few failing tests on Windows
2016-04-30 18:21:18 +09:00
deepak1556
4e6b148eaa
webContents: fix executejavascript when called before page load
2016-04-28 01:54:08 +05:30
Rob Brackett
d3e879cd7f
Change WebContents::IsLoadingMainFrame
to compare SiteInstances
...
(per @deepak1556's recommendation)
Also updates tests to cover the situation where navigating between pages from the same potential "site" and adds generalized tests for `isLoadingMainFrame()`.
2016-04-19 22:05:09 -07:00
Rob Brackett
3a9bbe30ac
Test for #5183 - webContents.executeJavaScript hangs on subframe load.
2016-04-18 10:33:56 -07:00
Cheng Zhao
65c612a66d
Avoid external URLs
2016-04-13 19:55:59 +09:00
Cheng Zhao
0a39449694
spec: loadUrl should not crash in did-fail-provisional-load handler
2016-04-13 19:39:11 +09:00
Rob Brackett
c1b1348735
Add resourceType
arg to webContents did-get-response-details
event.
...
Fixes #5074 and follows @zcbenz's recommendation to expose ResourceTypeToString from atom_network_delegate publicly.
Also adds testing for other arguments to the `did-get-response-details` events, since there were no existing tests for them.
2016-04-08 11:19:36 -07:00
Rob Brackett
f12f87d6f0
Add isMainFrame
as last argument to WebContents did-fail-load
event.
...
Fixes #5013 .
2016-04-04 19:26:06 -07:00
Zeke Sikelianos
b5afad9da7
avoid using eslint comment exceptions
2016-03-30 17:00:34 -07:00
Zeke Sikelianos
cfdfdc8ccc
standardize by hand
2016-03-30 17:00:33 -07:00
Zeke Sikelianos
f35f362272
autoformat more files
2016-03-30 17:00:31 -07:00
Kevin Sawicki
737ffd8d7c
Improve deprecated message on webPreferences options
2016-03-17 13:37:08 -07:00
Kevin Sawicki
1b6e01ce6d
Add missing semicolons
2016-03-17 13:37:07 -07:00
Kevin Sawicki
1e8e8f18b4
Add failing specs for deprecated options usage
2016-03-17 13:37:07 -07:00
Cheng Zhao
03ec5ced05
Merge pull request #4751 from maxbeatty/window-blur
...
Add blur method to window
2016-03-11 19:15:51 +09:00
Max Beatty
704b8335aa
Add blur method to window ref #4724
2016-03-10 21:45:51 -08:00
Arek Sredzki
fcc1f4d7ed
Finalized browser-window show & hide events, added tests & fixed os x implementation
2016-03-10 13:51:31 -08:00
Kevin Sawicki
993b878925
🎨
2016-03-07 10:37:01 -08:00
Kevin Sawicki
4ec79d5d18
Add Linux exclusion to describe
2016-03-07 09:53:20 -08:00
Kevin Sawicki
bda5bb4a74
Add missing semicolon
2016-03-04 16:15:04 -08:00
Kevin Sawicki
73f6162f5c
Enable resizable spec on Linux
2016-03-04 16:12:14 -08:00
Robo
8386baf267
add spec
2016-02-25 11:46:30 +05:30
Kevin Sawicki
31028ab636
Update var declarations
2016-02-17 09:27:25 -08:00
Cheng Zhao
aaca93046c
spec: Give beginFrameSubscription test more time to run
2016-02-16 16:20:15 +08:00
Cheng Zhao
7ca09de386
Merge remote-tracking branch 'origin/dont-write-empty-dev-tools-extensions-file'
2016-02-16 12:30:42 +08:00
Cheng Zhao
ed1966ac76
spec: Bring back beginFrameSubscription test
2016-02-16 10:30:18 +08:00
Cheng Zhao
08e5c1f6fe
Merge branch 'webcontent_invalid_loadurl_patch' of https://github.com/deepak1556/atom-shell into deepak1556-webcontent_invalid_loadurl_patch
2016-02-15 21:14:54 +08:00
Kevin Sawicki
704bd4d191
Improve error message
2016-02-11 13:25:58 -08:00
Kevin Sawicki
3e399d09d7
Match existing function style
2016-02-11 13:25:58 -08:00
Kevin Sawicki
c94f1fc857
Throw error when IPC channel is missing
2016-02-11 13:25:58 -08:00
Kevin Sawicki
cead84d5d1
Add failing spec
2016-02-11 13:25:57 -08:00
Kevin Sawicki
4828835998
Clean up returns after CoffeeScript migration
2016-02-11 13:25:57 -08:00
Robo
5a8bebc2f8
browser: emit did-fail-load for invalid url
2016-02-12 01:52:42 +05:30
Kevin Sawicki
00261a5571
Remove lint warnings
2016-02-03 17:17:11 -08:00
Kevin Sawicki
5714ae0b73
Add failing spec for dev tools extensions file
2016-02-03 17:11:12 -08:00
Cheng Zhao
cc560a3900
spec: Fix failing tests on Windows
2016-01-24 14:31:37 +08:00
Cheng Zhao
8239f69139
spec: hasShadow state
2016-01-24 14:31:37 +08:00
Cheng Zhao
c33e8de676
spec: Improve the test for resizable
2016-01-24 14:31:37 +08:00
Cheng Zhao
c41de501cb
spec: Test the -able methods
2016-01-24 14:31:37 +08:00
Kevin Sawicki
70bcb0ac5a
Clean up no-unused-vars lint errors
2016-01-21 09:32:21 -07:00
Kevin Sawicki
ccce284a5b
Clean up no-empty lint errors
2016-01-21 09:32:21 -07:00
Cheng Zhao
60d44b3b04
spec: Remove annoying outputs from savePage test
2016-01-15 16:36:35 +08:00
Kevin Sawicki
1f9691ae13
Convert all source files to JavaScript
2016-01-12 16:24:06 -08:00