Commit Graph

368 Commits

Author SHA1 Message Date
Andrew Dupont
a2f3c9e25a Fix typo 2023-05-04 21:26:17 -07:00
Andrew Dupont
9f053522ac Update docs for building custom web-tree-sitter 2023-04-26 17:31:09 -07:00
Andrew Dupont
d202df8488 Move to a custom version of web-tree-sitter
The comment in `src/web-tree-sitter.js` and the documentation in
`vendor/web-tree-sitter` explain why this change is needed. I hope it's
temporary.

I haven't removed our `web-tree-sitter` dependency in `package.json` because
it's a useful way of declaring (and remembering) which version of tree-sitter
we've built against, and because it lets us flip a single config flag in
`src/web-tree-sitter.js` to compare the behavior of our custom version with that
of the stock version. The cost of keeping the stock version around is under 300
kilobytes.

The custom builds will come from specialty branches on our tree-sitter fork.
When we upgrade to a new version, someone should follow the directions in
`vendor/web-tree-sitter/README.md` to create a new specialty branch.

When someone wants to build a `language-foo` package and finds that
`tree-sitter-foo` needs a function we don't yet export, they should be able to
see the warning we generate in the console and file a ticket. If we're on our
game, we should be able to generate a new web-tree-sitter build and get it into
a rolling release within a week or so.

I hope web-tree-sitter someday finds a way to fix this so that we no longer need
to do this chore. See https://github.com/tree-sitter/tree-sitter/issues/949.
2023-04-25 17:31:49 -07:00
Maurício Szabo
2502f4d87d Allow a non-match for scope :) 2023-03-11 00:17:50 -03:00
Maurício Szabo
bce60e749c Fixed matching of <- tests 2023-03-11 00:09:06 -03:00
Maurício Szabo
7223a568f4 Moving Jasmine tests to core 2023-03-10 21:58:42 -03:00
Maurício Szabo
84d4e9b8b3 Back to using languageMode.ready
Just to document this: I tried a HUGE amount of ideas for tests to run
reliably. They need to wait for the editor when it's ready to be
tokenized, but our callbacks are not that reliable - meaning, for the
first tokenization on tree-sitter, they are called _after_ we register
the callback, but for the second time, they are called _before_ we
register them. There's no reliable way to _actually listen_ to changes,
and none of these even were _called_ by TextMate grammars.

So, this `.ready` will stay here so we know when TreeSitter is ready to
tokenize.
2023-03-09 23:22:25 -03:00
Maurício Szabo
192a7397c1 Sanity check for matching scopes 2023-03-08 21:14:48 -03:00
Maurício Szabo
f6018f7cab Fixed-ish tests 2023-03-06 22:12:18 -03:00
Maurício Szabo
e884956ce4 Changed the matching of scopes
A quick explanation on this - the old code was matching if the full
scope was ok. This is fine when we want to test a single grammar, but
for example, TextMate grammars always added `.ruby` on the last part of
the grammar. That was quite bad for TreeSitter, that basically didn't do
the same thing. So now it matches a fine crafted Regexp that basically
checks if the full scope is match from the beginning, OR if part of the
scope (up to just before the `.`) matches. So, for example, for
`constant.other.ruby` it'll match `constant`, `constant.other`, and
`constant.other.ruby` but it'll NOT MATCH `constant.oth`.
2023-03-06 17:35:22 -03:00
Maurício Szabo
5b8050319f Getting only real assert comments 2023-03-01 13:42:44 -03:00
Maurício Szabo
ad55aa987d Adding some helpers to Jasmine 2023-02-27 21:55:40 -03:00
Maurício Szabo
b42b81f141 Adding some helpers to Jasmine 2023-02-25 16:35:50 -03:00
Maurício Szabo
9f299be6f1 Added a new generic matcher 2023-02-16 11:39:27 -03:00
Zachinquarantine
234adb8748
Remove deprecated code strings (#22952)
Remove deprecated code strings
2021-09-20 18:52:48 +03:00
Nathan Sobo
5ac126e01b Add the ability to retry flaky tests to Jasmine 1.3 specs 2019-04-10 14:07:51 -06:00
Jason Rudolph
3db6babc27
Teach waitsFor to display filename + line number on timeout
If no error message is given, show the filename and line number when a
test fails due to a timeout using waitsFor.

Co-authored-by: Max Brunsfeld <maxbrunsfeld@github.com>
2018-05-17 13:26:17 -04:00
Nathan Sobo
d528765161 Allow elements to be passed to toContain matcher 2015-09-18 20:48:52 -06:00
Nathan Sobo
2ef6d1be96 Handle dashes in keys in toHaveData matcher 2015-09-18 20:48:52 -06:00
Nathan Sobo
ab5a5607fd Remove immediately invoked fn expression from jasmine-jquery 2015-09-18 20:48:51 -06:00
Nathan Sobo
4843f88a6e Support plain HTML elements in jasmine-jquery matchers wherever possible 2015-09-18 20:48:51 -06:00
Nathan Sobo
ea742c1123 Use innerHTML instead of outerHTML for .toHaveHtml matcher 2015-09-18 20:48:51 -06:00
Nathan Sobo
93db5063c7 Remove debugger 2015-09-18 20:48:50 -06:00
Nathan Sobo
d98c678822 Support bare HTML elements in the most popular jasmine-query matchers 2015-09-18 20:48:48 -06:00
Nathan Sobo
7e06e10fcf Don’t require a specific jQuery instance for jasmine jQuery matchers
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2014-11-06 15:27:45 -07:00
Kevin Sawicki
c141448e9f Wrap HTML elements in $ so matchers still work 2014-09-10 11:19:05 -07:00
Kevin Sawicki
8f2cdae0eb Install apm from npmjs.org 2014-04-24 15:43:35 -07:00
Kevin Sawicki
7d3553659a Update to apm 0.40.0 2014-04-21 09:32:53 -07:00
Kevin Sawicki
58da88b71a Upgrade to apm v0.39.0 2014-04-16 10:55:50 -07:00
Cheng Zhao
424bf706e9 Upgrade to apm@0.37.0 2014-03-27 16:51:06 +08:00
Kevin Sawicki
c178d4c874 Upgrade to apm 0.36.0 2014-03-21 08:29:41 -07:00
Kevin Sawicki
5e477ff984 Upgrade to apm 0.35.0 2014-03-20 15:12:47 -07:00
Kevin Sawicki
2baf9eda61 Upgrade to apm 0.34.0 2014-03-20 15:05:47 -07:00
Kevin Sawicki
7d6d8175b9 Upgrade to apm 0.33.0 2014-03-20 14:57:23 -07:00
Daniel Hengeveld
7a344b91aa update apm submodule to 0.32.0 2014-03-19 10:15:50 -07:00
Cheng Zhao
0ae1f6858c Upgrade to apm@0.31.0 2014-03-18 17:02:31 +08:00
Cheng Zhao
a18536e8a4 🐧 Add keymap. 2014-03-18 15:51:13 +08:00
Cheng Zhao
b33f36d30a Update apm: Fix keytar on Linux. 2014-03-18 12:17:20 +08:00
Cheng Zhao
7d997f6d9a Use multi-platform-node branch of apm. 2014-03-17 04:11:31 +00:00
Kevin Sawicki
1390bef626 Upgrade apm to v0.30.0 2014-03-12 10:30:58 -07:00
Kevin Sawicki
750b57859a Upgrade apm for theme convert fix 2014-03-06 14:27:24 -08:00
Kevin Sawicki
636705bd70 Upgrade apm for template tweaks 2014-03-05 17:12:55 -08:00
Kevin Sawicki
b43d767a26 Upgrade apm for node being on PATH during install 2014-03-04 17:22:47 -08:00
Kevin Sawicki
150d8c2119 Upgrade apm for semver version fix 2014-03-04 14:52:48 -08:00
Kevin Sawicki
b4c0bb1f18 Upgrade apm for upgrade command 2014-03-04 14:43:57 -08:00
Ben Ogle
2f2d7da20b Upgrade apm 2014-03-03 15:05:23 -08:00
Ben Ogle
d2140672fd Revert "Upgrade find-and-replace@0.88.0"
This reverts commit 0d8ad2d8b0.
2014-03-03 14:40:00 -08:00
Ben Ogle
0d8ad2d8b0 Upgrade find-and-replace@0.88.0 2014-03-03 14:22:56 -08:00
Kevin Sawicki
d8e314b0a0 Upgrade apm to include bundled node 2014-03-03 12:43:01 -08:00
Kevin Sawicki
658ccaf78f Bump apm for screenshots in README templates 2014-02-28 15:43:46 -08:00