Commit Graph

7651 Commits

Author SHA1 Message Date
Nathan Sobo
30cd83f7aa Convert DecorationManager to JS 2017-05-05 09:29:27 +02:00
Nathan Sobo
94294d1b92 Test autoscrolling via scrollToScreenPosition instead of cursor 2017-05-05 09:29:27 +02:00
Nathan Sobo
b9feddacbe Fail focus tests quickly and clearly if document isn't focused 2017-05-05 09:29:27 +02:00
Nathan Sobo
3e87f9f889 Add horizontal autoscroll 2017-05-05 09:29:27 +02:00
Nathan Sobo
192e7c6b63 Handle direct focus of hidden input and avoid redundant focus renders 2017-05-05 09:29:27 +02:00
Nathan Sobo
ec045d9333 Gracefully handle focus events that occur before the attachedCallback 2017-05-05 09:29:27 +02:00
Nathan Sobo
ff2f9b192a Implement vertical autoscroll; still need tests 2017-05-05 09:29:27 +02:00
Nathan Sobo
c52d66377f Render hidden input and handle focus and blur 2017-05-05 09:29:27 +02:00
Nathan Sobo
b362f746f8 Fix spurious selections marker layer update to avoid extra render 2017-05-05 09:29:27 +02:00
Nathan Sobo
be7f4a5ffd Add workaround in test, but we need to make MarkerLayer updates sync 2017-05-05 09:29:27 +02:00
Nathan Sobo
d780b15248 Add cursor rendering tests 2017-05-05 09:29:27 +02:00
Nathan Sobo
583c2c537d Iron out scheduling issues
* Ensure multiple calls to scheduleUpdate only result in a single call
to updateSync in the future.
* Explicit calls to update sync after scheduling an update fulfill the
scheduled update.
* Track whether we think the editor is visible or not to avoid redundant
didShow calls.
* Ensure we only update on resize events if the editor actually changed
size.
2017-05-05 09:29:27 +02:00
Nathan Sobo
19d1d148eb Measure the longest visible screen line on initial render 2017-05-05 09:29:27 +02:00
Nathan Sobo
ede5d5e5f4 Add coverage for gutter measurement and horizontal translation on scroll 2017-05-05 09:29:27 +02:00
Nathan Sobo
b863790390 Start on new TextEditorComponent specs; avoid excessive line numbers 2017-05-05 09:29:27 +02:00
Wliu
c638f8693a Update spec reporter relativization
Electron 1.6 changed the reporting from .<anonymous> to
jasmine.Spec.<anonymous>
2017-05-03 14:21:24 +02:00
Nathan Sobo
a0c84d592a Remove ViewRegistry.pollDocument
Supporting it via mutation observers has a bad impact on frame rate.
2017-05-03 14:21:24 +02:00
Thomas Johansen
ceb05f03e2 💚 Make the "invalid" Babel fixture throw
Due to the V8 upgrade we need to tune the fixture to make it throw.
Using a generator function does the trick 
2017-05-03 14:21:23 +02:00
Max Brunsfeld
d47c780e08 Merge pull request #14221 from atom/fb-mdt-no-cmd-w-on-permanent-dock-items
Don't close permanent dock items
2017-04-18 09:47:39 -07:00
Max Brunsfeld
14f9c68659 Use getTreeViewRootDirectories helper in main process test 2017-04-17 13:53:20 -07:00
Max Brunsfeld
52195e79ff Merge branch 'master' into fb-mdt-no-cmd-w-on-permanent-dock-items 2017-04-17 13:39:16 -07:00
Max Brunsfeld
0015e026a2 Add Workspace.paneContainerForItem method 2017-04-17 11:34:45 -07:00
Matthew Dapena-Tretter
a4c06c039d Add a way to force a pane to destroy its item
When cleaning up after a package that provides a permanent dock item,
you want to be able to destroy it easily. This provides API for doing
so.
2017-04-15 13:28:30 -07:00
Matthew Dapena-Tretter
a9d0618e88 Don't close permanent dock items 2017-04-15 13:09:08 -07:00
Matthew Dapena-Tretter
d40a14be29 Add tests for dock sizing behavior 2017-04-15 11:50:41 -07:00
Matthew Dapena-Tretter
83efa4b918 Ensure dock mask has size of zero
This no longer seems to be an issue.
2017-04-13 15:53:37 -07:00
Matthew Dapena-Tretter
915931dddd 🐛 Make sure docks affordance can always be revealed 2017-04-13 15:52:05 -07:00
Max Brunsfeld
a676246081 Merge pull request #14164 from atom/fb-mdt-when-shell-environment-loaded
Add `atom.whenShellEnvironmentLoaded()`
2017-04-12 11:53:50 -07:00
Max Brunsfeld
9202160ca9 Merge pull request #14188 from atom/mb-ns-avoid-opening-duplicate-items
Always search a pane container w/ the given URI in workspace.open
2017-04-12 10:59:33 -07:00
Max Brunsfeld
82a7a6c78a Always search a pane container w/ the given URI in workspace.open 2017-04-12 10:23:49 -07:00
Nathan Sobo
8b8218bf81 Properly restore focus to center when hiding dock via toggle 2017-04-12 09:46:18 -06:00
Matthew Dapena-Tretter
ddd8a8b978 Add atom.whenShellEnvironmentLoaded()
This provides a way to be notified when the shell environment has
loaded—even if it's already happened.
2017-04-11 18:10:00 -07:00
Max Brunsfeld
81819adbd7 Fix spurious pane activation when changing focus within a pane 2017-04-11 12:20:50 -07:00
Max Brunsfeld
6c1632ad76 Always focus active pane item when pane is activated
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-04-11 11:51:18 -07:00
Nathan Sobo
f4c04f5b60 Fix less spec
On AppVeyor, the patch version of less is emitting lower-case CSS color
names. This makes our test compatible with both capitalizations.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2017-04-11 12:05:43 -06:00
Max Brunsfeld
b3911053be Merge pull request #14166 from atom/mb-fix-creating-panels-with-markup
Ensure that atom-panel tags can be created via HTML
2017-04-11 10:32:06 -07:00
Max Brunsfeld
09554615d4 Fix usages of removed getModel method in tests 2017-04-11 09:15:52 -07:00
Antonio Scandurra
d564bfc983 Test config.setSchema isn't called again when activating a preloaded package 2017-04-11 09:53:03 +02:00
Antonio Scandurra
48013a9140 Fix adding bundled packages to ModuleCache and increase test coverage 2017-04-11 09:37:11 +02:00
Max Brunsfeld
ffff034076 Avoid error when Panel.destroy is called in a blur listener 2017-04-10 17:43:52 -07:00
Max Brunsfeld
1c6c38e8a8 Ensure that atom-panel tags can be created via HTML
* Remove the PanelElement custom element
* Convert Panel and its test to JavaScript
2017-04-10 16:22:51 -07:00
Max Brunsfeld
399b70662d Fix regression in hovered dock tracking due to workspace refactor
Also, backfill tests for showing, hiding and updating the dock toggle
buttons in response to mouse movements.
2017-04-10 14:15:31 -07:00
Nathan Sobo
3292e3b4df Merge pull request #14143 from atom/mb-ns-dock-ui-refinements
Refine Dock UX and API
2017-04-10 09:08:07 -06:00
Nathan Sobo
2e066120bd Fix workspace specs 2017-04-08 13:29:50 -06:00
Max Brunsfeld
48336fb95e Don't use workspace's itemLocationStore in tests 2017-04-07 15:30:44 -07:00
Max Brunsfeld
cca47d785f Handle active pane items that aren't text editors in main process test
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-04-07 14:28:51 -07:00
Max Brunsfeld
6d1cbd389a Wait until tree-view is asynchronously opened in main process test
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-04-07 14:28:25 -07:00
Max Brunsfeld
6c59486166 Silence warnings from config spec
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-04-07 13:29:51 -07:00
Max Brunsfeld
57281dd97a Merge branch 'master' into mb-ns-dock-ui-refinements 2017-04-07 13:23:19 -07:00
Max Brunsfeld
89f1710cfe Wait for paths to open in main process test
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-04-07 13:20:44 -07:00