Commit Graph

32088 Commits

Author SHA1 Message Date
Nathan Sobo
ffd154ec34 Fix lint errors 2017-05-11 21:29:36 -06:00
Nathan Sobo
5a9582ed64 Silence error output in test 2017-05-11 21:10:20 -06:00
Nathan Sobo
b7218e5aa4 Fix atom.setSize spec when window is full screen 2017-05-11 21:06:15 -06:00
Nathan Sobo
6c6d38a3f0 Destroy environment to silence leaked editor warning 2017-05-11 21:02:28 -06:00
Nathan Sobo
8743298c4c Avoid polluting test with click events on the test runner
We now pass an isolated document into the AtomEnvironment instance under
test to avoid accidentally handling clicks on the test runner itself.
2017-05-11 17:59:40 -06:00
Nathan Sobo
2e2b35c32c Avoid problems related to calling startEditorWindow in tests 2017-05-11 17:44:16 -06:00
Nathan Sobo
d584bd6adb Eliminate reliance on local storage in HistoryManager
It's causing test failures locally and enough time has passed that most
user data should be transitioned to indexed DB by now.
2017-05-11 16:58:54 -06:00
Nathan Sobo
f8ecf929a8 Disable github package in smoke test – it takes too long to compile 2017-05-11 16:46:02 -06:00
Nathan Sobo
80f033114c Mock Date.now in spec helper in addition to _.now
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2017-05-11 15:20:53 -06:00
Antonio Scandurra
354e0cad55 ⬆️ first-mate 2017-05-11 20:12:39 +02:00
Antonio Scandurra
8ff5d81384 Prevent unnecessary clipping of buffer range in isFoldedAtBufferRow
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-05-11 20:12:10 +02:00
Antonio Scandurra
2f2f481fb5 Don't clip screen range when autoscrolling from Cursor
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-05-11 19:25:14 +02:00
Antonio Scandurra
c59e972f42 Use buffer coordinates in isFoldedAtCursorRow
This avoid an extra screen-to-buffer coordinate translation.

Signed-off-by: Nathan Sobo <nathan@github.com>
2017-05-11 19:18:40 +02:00
Antonio Scandurra
955d11b7cc 💄 Fix more lint errors 2017-05-11 19:13:06 +02:00
Antonio Scandurra
25a2d5f42a ⬆️ text-buffer 2017-05-11 18:34:17 +02:00
Antonio Scandurra
c0af383cc0 ⬆️ electron 2017-05-11 18:26:45 +02:00
Antonio Scandurra
729ae0ea51 Merge branch 'master' into tj-upgrade-electron
# Conflicts:
#	script/package.json
#	src/task.coffee
2017-05-11 18:05:12 +02:00
Antonio Scandurra
e9a124f0fb Merge pull request #14391 from atom/as-mkt-speed-up-source-map-parsing
Speed up parsing the snapshot source map
2017-05-11 18:03:19 +02:00
Antonio Scandurra
b1466742d4 Don't use snapshots in Task
They are not providing much value, as we are not already loading
anything from the snapshot require cache.
2017-05-11 16:52:02 +02:00
Antonio Scandurra
a40ab08117 ⬆️ status-bar 2017-05-11 16:10:52 +02:00
Antonio Scandurra
1b27df639d 💄 2017-05-11 16:08:26 +02:00
Antonio Scandurra
9346ff9e63 Speed up parsing the snapshot source map
When calling remote functions or emitting deprecation warnings
respectively Electron and Grim create a fake `Error` object to retrieve
the stack trace of the current call site.

When doing this for the first time, if the call site was located inside
a snapshotted file, previously we would parse the source map for the
snapshot and translate the position of each call in the stack trace.
However, since the snapshot source map is quite big, we were observing
major slowdowns when parsing it for the first time.

With this commit we will parse the snapshot source map while generating
the snapshot, which will allow to not pay for it during runtime.

Signed-off-by: Michelle Tilley <binarymuse@github.com>
2017-05-11 14:21:45 +02:00
Antonio Scandurra
32f03c8a22 Delete unused code 2017-05-11 11:07:21 +02:00
Antonio Scandurra
39a5705e39 Re-enable a test that was previously failing 2017-05-11 11:06:35 +02:00
Antonio Scandurra
f3a96c968d Change editor.bufferRowsForScreenRows to include the supplied endScreenRow 2017-05-11 11:00:51 +02:00
Antonio Scandurra
a0ed201fe8 Fix blurring the editor when no hidden input is present 2017-05-11 10:52:56 +02:00
Antonio Scandurra
dc6653ffa6 Avoid creating a new timeout every time cursor blinking is paused 2017-05-11 10:39:52 +02:00
Michelle Tilley
b951e06623 Merge pull request #14372 from atom/zhu-li-do-the-thing
🎉
2017-05-11 10:03:29 +02:00
Michelle Tilley
eba6d07ff3 Re-add 'use strict' 2017-05-11 00:21:54 +02:00
Michelle Tilley
fb9fd2fbfc ⬆️ welcome@0.36.3 2017-05-10 23:27:57 +02:00
Michelle Tilley
befb725f9f Revert "Cat debug log at end of tests"
This reverts commit 351efe09b3.
2017-05-10 23:25:33 +02:00
Michelle Tilley
6b51d09459 ⬆️ github@0.0.6 2017-05-10 23:25:12 +02:00
Michelle Tilley
8a252dc903 Merge remote-tracking branch 'origin/master' into zhu-li-do-the-thing 2017-05-10 19:58:54 +02:00
Nathan Sobo
b478f192e1 Merge pull request #14386 from atom/ns-downgrade-text-buffer
Downgrade text-buffer to see if it helps our integration tests on CI
2017-05-10 11:51:14 -06:00
Nathan Sobo
ea8524ec1b Revert "⬆️ text-buffer"
This reverts commit 5d57ecb8ce.
2017-05-10 11:37:12 -06:00
Antonio Scandurra
3c87b7499e Optimize isFoldable
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-05-10 18:48:18 +02:00
Michelle Tilley
351efe09b3 Cat debug log at end of tests 2017-05-10 18:21:34 +02:00
Antonio Scandurra
58a9682a0d ⬆️ text-buffer 2017-05-10 17:54:58 +02:00
Antonio Scandurra
e89552ea75 Ignore mismatched tags between lines in TokenizedBufferIterator
Previously the DisplayLayer would have issues when closing tags that had
not been previously opened, requiring us to guard against mismatched
scopes at the frontier of asynchronous tokenization (see 5cfe9716 for
more information).

Now the DisplayLayer gracefully handles closing tags that had not been
opened, meaning we can eliminate this costly logic.

Signed-off-by: Nathan Sobo <nathan@github.com>
2017-05-10 17:54:14 +02:00
Michelle Tilley
30ee14bd13 Revert "Don't run GitHub operations inline during script/test"
This reverts commit 7ccf465370.
2017-05-10 17:17:06 +02:00
Antonio Scandurra
c12882a371 ⬆️ etch 2017-05-10 16:25:53 +02:00
Antonio Scandurra
42b397e3b9 ⬆️ line-top-index 2017-05-10 16:24:55 +02:00
Michelle Tilley
7ccf465370 Don't run GitHub operations inline during script/test 2017-05-10 15:36:24 +02:00
Michelle Tilley
fa19e4c65e ⬆️ github@0.0.5 2017-05-10 15:35:47 +02:00
Antonio Scandurra
955cf98feb Use bufferRowsForScreenRows to compute line numbers 2017-05-10 13:45:19 +02:00
Michelle Tilley
f6945792cd Install devDeps inside root package folder during tests
Clean them up when we're done
2017-05-10 12:55:55 +02:00
Michelle Tilley
8d4376757a Allow ATOM_PACKAGES_TO_TEST env var to set which packages to run tests for 2017-05-10 12:55:10 +02:00
Antonio Scandurra
ab20fc3b19 Don't populate more screen rows than necessary
See 4eecf8d1a6.
2017-05-10 10:48:16 +02:00
Antonio Scandurra
ebf2aaa688 Avoid deopt when calling TokenizedLine.prototype.getTokenIterator 2017-05-10 10:44:19 +02:00
Michelle Tilley
1b165804c3 Run tests in the root node_modules package folder 2017-05-10 07:46:31 +02:00