John Kleinschmidt
613b03c3c7
build: disable found-in-page event
test
...
On Windows release builds, the found-in-page event test causes the test suite to hang. If the test is run individually, it works fine, but running it as part of the whole test suite causes the test suite to hang. This works around the issue in #13704 by temporarily disabling that test.
2018-07-18 14:59:46 -04:00
Samuel Attard
777d0113d5
fix: create a window capturer correctly ( #13689 )
...
* fix: create a window capturer correctly
We were incorrectly creating two screen capturers instead of a window
capturer
* spec: ensure dc tests pass
* spec: enable all tests after verifying dc tests work
2018-07-17 14:20:50 +10:00
Cheng Zhao
222291631d
spec: openDevTools should not crash for frameless window
2018-07-16 10:23:43 +09:00
PalmerAL
ffc15e02a6
fix: add native function to create preload script ( #13032 )
...
* add native function to create preload script
* add tests
* fix formatting
* fix tests
* rerun CI
2018-07-13 11:17:11 +09:00
John Kleinschmidt
facb210f64
Merge pull request #13494 from electron/expect-short-specs
...
chore(spec): convert smaller specs to expect
2018-07-12 08:45:34 -04:00
Felix Rieseberg
deedf6c3f4
feat: Add isCurrentlyAudible() to WebContents ( #13614 )
...
* 🔧 Add isCurrentlyAudible() to WebContents
* ❤️ Implement feedback, use await to wait for event
* 👷 Add missing imports
2018-07-12 21:35:11 +10:00
Jeremy Apthorp
bdceea6aca
fix: enable spell checking, which broke in upgrade to ch66
...
Chromium commit [03563dd163][1] changed the way that the
spellcheck-enabled status was checked, defaulting to false.
Added the first (!) test for spellchecking, too.
Fixes #13608 .
[1]: 03563dd163
2018-07-11 10:27:56 -07:00
Shelley Vohr
d5d76c56ed
address feedback
2018-07-10 14:20:03 -07:00
Tomas Rycl
9b6a37ead7
test: Better path compare than just strings ( #13548 )
...
* Better path comparision than just strings
* Linter fix
* Resolving paths first to always obtain absolute path so path.relative() can work
* Using assert.ok which better fits the test
* No need to resolve parameters of path.resolve
* Added assertion to type of returned path for download item
2018-07-10 21:38:11 +10:00
Cheng Zhao
35b867ff7d
Fix failed devtools tests due to fs.statSyncNoException not working ( #13584 )
...
* Revert "spec: disable the i18nString test"
This reverts commit 86c79653de
.
* update node to fix fs.statSyncNoException
2018-07-09 09:38:48 -05:00
Jeremy Apthorp
f50f8e3f3d
chore: [gn] fix CSP warning in debugger API test ( #13541 )
...
There's an attempt to suppress the warning in `spec/static/main.js`, which
sets `process.env.ELECTRON_DISABLE_SECURITY_WARNINGS`. However, it sets the
variable too late in the boot process: by the time that line in main.js has
run, a child zygote has already been booted. `test.py` works around this by
setting that environment variable outside of the test process, to ensure that
it gets propagated to all children.
I've been running the GN tests directly with `./out/Default/electron
electron/spec`, rather than through the wrapper script, and the
`api-debugger-spec.js` tests were failing, because they depend on a particular
log message being the first one emitted, and the CSP warning was causing that
test to fail, since it wasn't being correctly suppressed.
Instead of writing another wrapper script, this just fixes the underlying thing
that the warning is complaining about, which I think is reasonable because the
test's pass/fail depends on this specific behaviour.
2018-07-06 15:01:33 -04:00
Cheng Zhao
86c79653de
spec: disable the i18nString test
...
It is failed because of fs.statSyncNoException, I'll fix it in another
PR.
2018-07-06 09:07:56 +09:00
Cheng Zhao
56c24406d6
spec: enable back devtools tests
2018-07-06 09:07:56 +09:00
Hari Juturu
eb223f8bc3
Enable webview in sandbox renderer ( #13435 )
...
* Enable webview in sandbox renderer
Security: Inherit embedder prefs onto webview
* cache lastwebprefs
2018-07-03 02:06:26 +10:00
Shelley Vohr
42d173b343
spec: convert menu specs to expect ( #13485 )
...
* spec: convert menu-item spec to expect
* spec: convert menu spec to expect
2018-06-30 00:25:28 -07:00
Cheng Zhao
e42c6d3eb7
fix the crash when loading site with jquery ( #13475 )
2018-06-29 09:42:04 +09:00
Shelley Vohr
9489401e7d
spec: convert smaller specs to expect
2018-06-28 15:40:30 -07:00
Shelley Vohr
fa0704665f
test: temporarily disable failing specs ( #13470 )
2018-06-27 14:15:24 -07:00
Shelley Vohr
f9e2ec43d0
fix: deprecate properties in app.getAppMetrics() ( #13446 )
...
* fix: deprecate properties in app.getAppMetrics()
* address feedback from review
* fix deprecated property location
* simplify test
2018-06-26 23:47:01 -07:00
Cheng Zhao
44aad039c6
fix: do not expose Node's external strings ( #13438 )
2018-06-27 10:18:09 +10:00
Alexey Kuzmin
f4039d82c3
spec: rewrite and enable a webview's disableguestresize attr test ( #13428 )
2018-06-26 08:38:04 -07:00
Alexey Kuzmin
10a174fc6a
spec: refactor helper closeWindow() function ( #13337 )
2018-06-22 00:43:15 +10:00
Alexey Kuzmin
b9da1575f0
spec: enable a disabled test ( #13346 )
2018-06-22 00:42:55 +10:00
Felix Rieseberg
562eddf0e9
test: Upgrade spec dependencies ( #13310 )
...
* 📦 Update mocha, mocha-junit-reporter
* 📦 Update graceful-fs, multiparty, q, walkdir
* 📦 Update basic-auth
* 📦 Update ws
* 📦 Update dbus-native
* 📦 Upgrade yargs
* 🔒 Run `npm audit fix`
* 🔧 Fix websocket API change
2018-06-20 17:18:24 +10:00
John Kleinschmidt
fc12b5cab3
Merge pull request #13283 from jack-teng1/fix-asar-pack-cant-find-module
...
fix: can't load module error when app is packaged
2018-06-19 14:58:37 -04:00
Heilig Benedek
f643ce4f66
revert: frame subscriber deprecation and re-enable tests
2018-06-19 19:49:44 +02:00
Jack Teng
3044607746
spec: fix asar spec due to change in node.js
...
node.js rename the internalModuleReadFile to internalModuleReadJSON
change spec to reflect this change
2018-06-19 10:42:21 -07:00
John Kleinschmidt
36c1e4cd75
Merge pull request #13267 from electron/expect-debugger-spec
...
spec: convert debugger spec to expect
2018-06-19 11:22:47 -04:00
John Kleinschmidt
faef453df5
Merge branch 'master' into expect-debugger-spec
2018-06-19 11:22:25 -04:00
Shelley Vohr
cba3a9fcce
spec: convert deprecations to expect ( #13268 )
...
* spec: convert deprecations to expect
* address feedback from review
2018-06-19 10:22:08 -05:00
Shelley Vohr
9a79889692
spec: convert ipc specs to expect ( #13273 )
...
* spec: convert ipc specs to expect
* fix buffer value comparison
2018-06-19 10:21:50 -05:00
John Kleinschmidt
0219ef0feb
Merge pull request #13269 from electron/expect-desktop-capturer-spec
...
spec: convert desktop capturer to expect
2018-06-19 11:21:13 -04:00
Aleksei Kuzmin
5151a04613
spec: slightly rewrite webview tests
2018-06-19 13:27:49 +02:00
Aleksei Kuzmin
bbc8d50799
spec: add helper functions for async/await tests
2018-06-19 13:27:43 +02:00
Samuel Attard
efdf4f44c8
Remove stray .only
2018-06-19 11:49:46 +10:00
Samuel Attard
650631421f
re-enable desktop capturer
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
25e5c174f5
Disable a test
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
b70ca6309c
Disable a test
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
8f4d6a1995
Rewrite and enable one of the webview tests
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
ad74fb9210
Enable a test
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
da7cfba357
Enable Desktop Capturer tests
2018-06-19 11:49:46 +10:00
Aleksei Kuzmin
10c5141da0
Enable a few tests
2018-06-19 11:49:46 +10:00
Samuel Attard
10160b369b
FIXME: getAppMetrics fails on windows CI
2018-06-19 11:49:46 +10:00
Samuel Attard
76f26341bf
powerMontor crashes linux ia32, re-disable
2018-06-19 11:49:46 +10:00
Samuel Attard
8200a132be
Re-enable cookie specs and add custom cookie name/url validation
2018-06-19 11:49:46 +10:00
Samuel Attard
c4f80a6d89
Enable power monitor test for linux
2018-06-19 11:49:46 +10:00
Samuel Attard
10e0d9b198
Enable process resource test
2018-06-19 11:49:46 +10:00
Samuel Attard
e70b93ad91
Enable childprocess.fork asar specs, fixed during run_as_node fixes
2018-06-19 11:49:46 +10:00
Samuel Attard
bc8525d2f3
re-enable native module tests
2018-06-19 11:49:46 +10:00
Samuel Attard
d9ec885dbc
Fixed the spawn tests with the RUN_AS_NODE tests
2018-06-19 11:49:46 +10:00