electron/spec
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
..
fixtures Exit gracefully on linux (#12139) 2018-03-06 22:01:17 -05:00
static feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
api-app-spec.js Fix some flaky tests in CI (#12153) 2018-03-07 14:40:27 +09:00
api-auto-updater-spec.js fix windows tests 2018-02-16 16:02:10 +11:00
api-browser-view-spec.js 👷 Add specs 2017-11-22 17:06:14 -08:00
api-browser-window-affinity-spec.js Add an "affinity" option to webPreferences 2018-02-13 15:18:55 +09:00
api-browser-window-spec.js fix styling and add spec 2018-02-28 00:22:42 -08:00
api-callbacks-registry-spec.js remove only 2017-11-16 14:51:24 -05:00
api-clipboard-spec.js Explicitly skip tests that should be skipped 2017-11-20 14:43:23 +01:00
api-crash-reporter-spec.js Remove Travis references 2017-11-30 15:39:32 -05:00
api-debugger-spec.js Fix and update debugger UTF char test 2018-02-01 16:47:52 -08:00
api-deprecations-spec.js comment out unused methods 2017-11-20 15:12:34 +01:00
api-desktop-capturer-spec.js Explicitly skip tests that should be skipped 2017-11-20 14:43:23 +01:00
api-dialog-spec.js Add specs for showCertificateTrustDialog option errors 2017-04-04 10:49:21 -07:00
api-global-shortcut-spec.js Explicitly skip tests that should be skipped 2017-11-20 14:43:23 +01:00
api-in-app-purchase-spec.js Throw when inAppPurchase is used on unsupported platforms 2018-01-10 18:53:55 +09:00
api-ipc-main-spec.js remove extraneous variables 2017-12-01 16:11:54 -05:00
api-ipc-renderer-spec.js remove extraneous variables 2017-12-01 16:11:54 -05:00
api-menu-item-spec.js improve Menu and MenuItem testing (#12015) 2018-02-23 07:53:59 -06:00
api-menu-spec.js improve Menu and MenuItem testing (#12015) 2018-02-23 07:53:59 -06:00
api-native-image-spec.js Remove nativeImage deprecated methods (#11978) 2018-02-20 09:15:27 -06:00
api-net-spec.js 🔧 Spec: Fix style issues 2017-11-23 14:22:58 -08:00
api-notification-spec.js Add Notification tests 2018-02-10 03:19:47 -08:00
api-power-monitor-spec.js Add some tests for powerMonitor "shutdown" event 2018-02-05 15:21:31 +09:00
api-power-save-blocker-spec.js
api-process-spec.js Explicitly skip tests that should be skipped 2017-11-20 14:43:23 +01:00
api-protocol-spec.js reenable some specs 2018-01-02 16:37:08 +09:00
api-remote-spec.js remove extraneous variables 2017-12-01 16:11:54 -05:00
api-screen-spec.js remove screen.getMenuBarHeight spec 2018-03-05 20:10:34 -05:00
api-session-spec.js Add download from custom protocol test (#11931) 2018-02-16 13:03:53 -05:00
api-shell-spec.js Explicitly skip tests that should be skipped 2017-11-20 14:43:23 +01:00
api-system-preferences-spec.js add loop to catch null values 2017-12-13 14:02:43 -05:00
api-touch-bar-spec.js update touch bar spec 2017-10-26 21:08:47 -04:00
api-web-contents-spec.js spec: setDevToolsWebContents 2017-12-01 10:35:23 +09:00
api-web-frame-spec.js remove setZoomLevelLimits 2018-02-20 08:57:48 -05:00
api-web-request-spec.js 🔧 Spec: Fix style issues 2017-11-23 14:22:58 -08:00
asar-spec.js 🔧 Spec: Don’t use deprecated new Buffer() 2017-11-23 14:22:31 -08:00
chromium-spec.js Fix some flaky tests in CI (#12153) 2018-03-07 14:40:27 +09:00
modules-spec.js Disable the "ffi" module test 2018-02-23 10:21:24 +09:00
node-spec.js Fix some flaky tests in CI (#12153) 2018-03-07 14:40:27 +09:00
package.json Disable the "ffi" module test 2018-02-23 10:21:24 +09:00
security-warnings-spec.js feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
webview-spec.js Merge pull request #11300 from electron/external-devtools 2017-12-05 10:35:49 +09:00
window-helpers.js