Commit Graph

8805 Commits

Author SHA1 Message Date
Rafael Oleza
691c90e4b5 Fix atom.open() 2019-05-07 19:14:32 +02:00
Jason Rudolph
f1952c2fc1 Merge pull request #19272 from atom/improve-positioning-when-opening-file-at-line
Improve positioning when opening file at line
2019-05-07 10:53:52 -04:00
Jason Rudolph
4ac6107f95 🎨 Use await to make the world a better place
/xref https://github.com/atom/atom/pull/19272#discussion_r281562954
2019-05-07 09:20:00 -04:00
Rafael Oleza
1efa4f36ea Decaffeinate src/initialize-application-window.js 2019-05-07 12:47:10 +02:00
Rafael Oleza
833cdd0c29 Merge pull request #19274 from atom/prepare-for-electron-v3
Prepare Atom for the electron v3 upgrade
2019-05-07 10:30:46 +02:00
Max Brunsfeld
fa100866cb Merge pull request #19172 from atom/mb-tree-sitter-upgrade-test-travis
Try upgrading Tree-sitter for a third time
2019-05-06 22:33:20 -07:00
Max Brunsfeld
59319d639a Update test to expect new rendering of missing tree-sitter nodes 2019-05-06 14:50:38 -07:00
David Wilson
78f354ad3a Update StyleManager specs to address deprecated ::shadow selectors
As of Chromium 63, ::shadow CSS selectors have been fully removed:

https://developers.google.com/web/updates/2017/10/remove-shadow-piercing

As a result, any usage of ::shadow in a stylesheet seems to get removed as soon
as the stylesheet is applied to an HTMLStyleElement.  Since we have a couple of tests
that expect ::shadow selectors to be present, we must remove those expectations
since those selectors do not appear any longer.
2019-05-06 20:27:27 +02:00
David Wilson
614d3e150a Use fs.renameSync in Workspace spec to fix test failure 2019-05-06 20:25:52 +02:00
David Wilson
3bd2279d3c Make invalid JS file fail Babel spec again
This change uses a different JavaScript syntax to cause the "when a .js file
does not start with 'use babel'" spec to fail again after upgrading to Electron
3 / Node 10.3.0.  The previous generator syntax seems to be supported in the
version of V8 used by Node 10 so we now need to use the 'export default' syntax
to trigger an error.

I've verified that changing the first line of this file to 'use babel' causes
the file to load successfully, so it seems this new syntax is effective to
verify the desired behavior.
2019-05-06 20:24:29 +02:00
Jason Rudolph
9921d1cef3 Unfold (if needed) when opening file at specific line 2019-05-06 11:24:26 -04:00
Rafael Oleza
0d80191516 Merge pull request #19257 from atom/increase-timeout-file-recovery-test
Increase the timeout for the FileRecoveryService tests
2019-05-06 11:39:16 +02:00
Winston Liu
d8559d37a2 Add 'it' in front of spec descriptions 2019-05-04 12:29:52 -04:00
Rafael Oleza
fb79283d15 Increase the timeout for the FileRecoveryService tests 2019-05-03 17:27:48 +02:00
Jason Rudolph
2cf285bc36 Merge #19175 from UziTech/patch-7: await uriHandler 2019-05-01 16:23:34 -04:00
Ash Wilson
3ee3641525 Merge pull request #19247 from atom/aw/drag-and-drop
Always use target window for drag-and-drop
2019-05-01 12:44:43 -04:00
Ash Wilson
e2d5143b53 Use the "here" option to open for drag-and-drop 2019-05-01 09:05:46 -04:00
Ash Wilson
61377b843c Support a "here" option in the "open" IPC message handler 2019-05-01 09:02:02 -04:00
Rafael Oleza
3fcdcde74d Use async randomBytes API to speedup Windows startup 2019-04-30 19:14:54 +02:00
Rafael Oleza
2a7ddf0d22 Merge pull request #19234 from atom/improve-flaky-test
Disable external events from workspaceElement test
2019-04-30 11:01:55 +02:00
Rafael Oleza
7e4dfa9417 Merge pull request #13760 from atom/wl-open-empty-editor-as-pending
Open empty editor as a pending pane item
2019-04-29 15:54:25 +02:00
Rafael Oleza
4e2e820a6c Disable external events from workspaceElement test 2019-04-29 15:09:23 +02:00
Ash Wilson
e368d78d27 Main process test for dev mode and benchmark windows 2019-04-28 17:21:37 -04:00
Winston Liu
dbb6c7b1b6 Merge branch 'master' into wl-open-empty-editor-as-pending 2019-04-27 00:25:00 -04:00
Rafael Oleza
165a297d31 Merge branch 'master' into autoFocus-element 2019-04-26 20:23:09 +02:00
Ash Wilson
c8beb6ffab Open loaded window options *first* 2019-04-24 15:22:32 -04:00
Ash Wilson
a53addbf78 Update AtomWindow::projectRoots synchronously on openLocations() 2019-04-24 15:04:59 -04:00
Ash Wilson
f1e0843473 Don't report missing project folder errors twice 2019-04-24 11:34:36 -04:00
Ash Wilson
f4be123137 Test a new application.json schema and our handling of the old one 2019-04-24 10:17:20 -04:00
Ash Wilson
a0e9bb785f Merge pull request #19203 from atom/aw/reopen-projects
"Reopen projects" in a new window
2019-04-23 17:35:13 -04:00
Ash Wilson
213f3b28b3 Rework and test IPC events that create windows 2019-04-23 11:18:53 -04:00
Tony Brix
7170ab8ebd lint 2019-04-23 09:24:30 -05:00
Ash Wilson
758fd9d75c Merge pull request #19169 from atom/aw/launch-it
Improve launch behavior
2019-04-22 20:39:28 -04:00
Jason Rudolph
5055be06ca Update spec/main-process/atom-application.test.js
Co-Authored-By: smashwilson <smashwilson@github.com>
2019-04-22 16:00:28 -04:00
Ash Wilson
ab490a064a Test for restoring windows over directories and files 2019-04-19 18:07:18 -04:00
Ash Wilson
c719dc8aa2 Test empty command-line cases 2019-04-19 17:37:23 -04:00
Ash Wilson
96e6403573 Remove unused forceAddToWindow 2019-04-19 17:36:33 -04:00
Nathan Sobo
bca3e5bcfd Merge pull request #18499 from Aerijo/content-regex
Support contentRegex for TextMate grammar
2019-04-19 14:58:58 -06:00
Ash Wilson
8126a136cd Read hasOpenFiles to determine whether or not the initial editor should open 2019-04-19 15:50:24 -04:00
Ash Wilson
cc1ddf1011 Use hasOpenFiles to flag a window that will receive openLocations() 2019-04-19 15:50:03 -04:00
Ash Wilson
190875873e 📝 Document the LaunchScenario stuff 2019-04-19 15:07:33 -04:00
Ash Wilson
53188eb19d Distinct test names 2019-04-19 14:33:00 -04:00
Nathan Sobo
5a6f93d1c3 Fix lint errors 2019-04-19 12:03:40 -06:00
Ash Wilson
1a123c06ef Line separators are hard okay 2019-04-19 13:59:30 -04:00
Ash Wilson
97c4038906 Fix problems with _dimensions being modified in-place 2019-04-19 13:10:17 -04:00
Nathan Sobo
51d97a16d8 Add test for content regexes in first-mate grammars 2019-04-19 10:55:34 -06:00
Ash Wilson
e8cc4aa421 Call removeWindow() explicitly to simulate a window close 2019-04-19 12:55:03 -04:00
Ash Wilson
b9268c703c URL pathnames use /, not path.sep 2019-04-19 12:53:30 -04:00
Ash Wilson
c4f3b519d3 Replace the AtomApplication test suite 2019-04-19 12:07:21 -04:00
Ash Wilson
3645cef518 More marking stuff covered 2019-04-19 12:06:09 -04:00