Commit Graph

6288 Commits

Author SHA1 Message Date
Nathan Sobo
ff681752f7 Add a nextViewUpdatePromise helper so we get stack traces from timeouts 2015-11-09 00:35:33 -07:00
Nathan Sobo
e9dfc080a3 Convert text-editor-component-spec to Babel for async/await
It's much easier to reason about async/await than Jasmine's
built-in queuing system, and using them made it easier to
debug flaky async tests.
2015-11-09 00:35:32 -07:00
Nathan Sobo
9ee3d53975 Destroy the selections marker layer when editors are destroyed 2015-11-09 00:35:31 -07:00
Nathan Sobo
2f81e5faac Store folds in their own marker layer 2015-11-09 00:35:31 -07:00
Nathan Sobo
29bb1bb31b Add TextEditor-level marker layers and use them for selections 2015-11-09 00:35:31 -07:00
Nathan Sobo
b508cc6d9f Fix linter error 2015-11-09 00:35:30 -07:00
Nathan Sobo
a3ff0ad75a 🎨 Rename method 2015-11-09 00:35:28 -07:00
Nathan Sobo
75d0a0820c Allow properties to be overridden for a single marker in LayerDecoration 2015-11-09 00:35:28 -07:00
Nathan Sobo
acf142863c Add TextEditor::decorateMarkerLayer 2015-11-09 00:35:27 -07:00
Nathan Sobo
20f4c61325 Drop stray sample.js file 2015-11-09 00:35:27 -07:00
Nathan Sobo
3a25fe4975 Remove id from decoration properties
It doesn’t make sense to include this when we’ll reuse the same
properties for multiple decoration instances when decorating marker
layers.
2015-11-09 00:35:27 -07:00
Nathan Sobo
7d22ed788c Test decorateMarker + decorationStateForScreenRowRange 2015-11-09 00:35:27 -07:00
Nathan Sobo
9d6168aac8 Fix gutter spec indentation 2015-11-09 00:35:27 -07:00
Nathan Sobo
3c98c30b43 Wait for animation frames synchronously after actions
This avoids test flakiness, presumably due to an animation frame firing
before we have a chance to wait due to jasmine’s queueing.
2015-11-09 00:35:26 -07:00
Nathan Sobo
2af010e729 Remove dead test
It tests functionality that no longer matters since we don’t subscribe
to decorations being destroyed in DisplayBuffer
2015-11-09 00:35:26 -07:00
Nathan Sobo
0169c1160e Wait for next DOM update synchronously after change to avoid flakiness 2015-11-09 00:35:26 -07:00
Nathan Sobo
0ac42a12f3 Add waitsForNextDOMUpdate helper function 2015-11-09 00:35:18 -07:00
Nathan Sobo
4b5e4d02eb Use real clock in text-editor-component-spec
This will make it much easier to test asynchronous update logic.
2015-11-09 00:35:18 -07:00
Nathan Sobo
1aefb22789 Add ViewRegistry.prototype.getNextUpdatePromise
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-11-09 00:35:18 -07:00
Max Brunsfeld
cdaac9dfcc wip 2015-11-09 00:35:18 -07:00
Nathan Sobo
1fd2ba084c Merge pull request #8232 from lpommers/move-lines-up-and-down-with-multiple-selections
Move lines up and down with multiple selections
2015-11-07 14:40:58 -07:00
Wliu
7db555c96b Fix core specs 2015-11-06 10:26:36 -05:00
abe33
a4c2c724d6 Merge branch 'master' of github.com:atom/atom into cn-move-lines-up-and-down-with-multiple-selections 2015-11-05 18:59:18 +01:00
Wliu
1bb944dadc Add specs 2015-11-04 16:22:01 -05:00
abe33
849dd33e87 🎨 Place move lines test with auto indent with other move lines tests 2015-11-04 18:55:52 +01:00
abe33
6b2725077a Merge back master 2015-11-04 18:26:27 +01:00
Dave Rael
7cd44dc729 Add portable mode for Linux 2015-11-03 18:03:05 -08:00
Kevin Sawicki
07696ffb4c Use fs-plus instead of rimraf to delete 2015-11-03 17:01:26 -08:00
Kevin Sawicki
e24c48b8c5 🎨 Improve spec description 2015-11-03 17:01:26 -08:00
Kevin Sawicki
95eb71090f Assert portableAtomHomePath does not exist 2015-11-03 17:01:25 -08:00
Kevin Sawicki
7c504d3692 Only run specs on Windows 2015-11-03 17:01:25 -08:00
Kevin Sawicki
6198647f29 🎨 2015-11-03 17:01:25 -08:00
Dave Rael
e3da370d82 Add command line parameter to set portable
If parameter included, home directory will be copied to the portable
2015-11-03 17:01:24 -08:00
Max Brunsfeld
e77edcdf42 🎨 Put subword movement specs under cursor and selection sections 2015-11-03 13:39:16 -08:00
Kevin Sawicki
de7cf162f9 Merge pull request #8442 from atom/portable-mode
Enable Portable Mode
2015-11-03 12:49:54 -08:00
Max Brunsfeld
803c38477f Fix indentation in subword motion specs 2015-11-03 12:45:58 -08:00
Max Brunsfeld
a41d38e036 🎨 Tweak descriptions for moveLine{Up,Down} specs 2015-11-03 10:44:52 -08:00
Max Brunsfeld
3412251963 Merge pull request #9104 from joseramonc/master
autoindent lines with moveLineUp/moveLineDown
2015-11-03 10:41:29 -08:00
Antonio Scandurra
5d0ba5f182 Merge pull request #9318 from atom/as-compilation-cache
Introduce NativeCompileCache
2015-11-03 14:35:58 +01:00
Antonio Scandurra
6290822067 Export a function in windowInitializationScript
...so that we can pass BlobStore to AtomEnvironment
2015-11-03 09:51:08 +01:00
abe33
5d8ec8587e 🔥 Remove test focus 2015-11-03 00:51:01 +01:00
abe33
dacd08badf 🐛 Fix moving multiple selection with folds creates new folds 2015-11-03 00:48:22 +01:00
abe33
668a2dd6cf 🐛 Fix moving a multiple selection with a fold creating new folds 2015-11-02 23:43:43 +01:00
abe33
7e32dab68f 🎨 Fix tests descriptions 2015-11-02 23:37:56 +01:00
abe33
9d21c773c1 🐛 Fix moving single selection intersecting a fold 2015-11-02 21:46:02 +01:00
abe33
57556ffc42 Merge branch 'master' of github.com:atom/atom into cn-move-lines-up-and-down-with-multiple-selections 2015-11-02 18:39:04 +01:00
Nathan Sobo
152a479909 Merge pull request #9024 2015-11-02 11:26:21 -06:00
Antonio Scandurra
6decf222a3 🐛 Fix incorrectly reported width when measuring lines
This commit fixes what seems to be a bug in Chromium.

When measuring lines (and with a special character sequence), it could happen
that Range(0, 0). getBoundingClientRect().width reports a number greater than 0.
This seems to happen when the font size is smaller than 12px and it's probably
due to subpixel font scaling. To solve it we've explicitly included a guard
clause that prevents this problem to happen.
2015-11-01 19:23:09 +01:00
Antonio Scandurra
abcfc8579b Rename to FileSystemBlobStore 2015-10-30 18:42:38 +01:00
Antonio Scandurra
f13e516417 Invalidate cache when it is rejected by v8 2015-10-30 12:45:15 +01:00