angular-docs-cn/packages/language-service/test
Keen Yee Liau 650974e1b3 test(language-service): Remove all markers from test project (#37475)
This commit removes all markers from the inline template in
`AppComponent` and external template in `TemplateReference`.

Test scenarios should be colocated with the test cases themselves.
Besides, many existing cases are invalid. For example, if we want to
test autocomplete for HTML element, the existing test case is like:
```
<~{cursor} h1>
```
This doesn't make much sense, becasue the language service already sees
the `h1` tag in the template. The correct test case should be:
```
<~{cursor
```
IMO, this reflects the real-world use case better.

This commit also uncovers a bug in the way HTML entities autocompletion
is done. There's an off-by-one error in which a cursor that immediately
trails the ampersand character fails to trigger HTML entities
autocompletion.

PR Close #37475
2020-06-08 10:25:42 -07:00
..
project test(language-service): Remove all markers from test project (#37475) 2020-06-08 10:25:42 -07:00
BUILD.bazel refactor(language-service): move TS utils to separate file (#36984) 2020-05-11 11:07:50 -07:00
completions_spec.ts test(language-service): Remove all markers from test project (#37475) 2020-06-08 10:25:42 -07:00
definitions_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
diagnostic_messages_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
diagnostics_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
expression_diagnostics_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
global_symbols_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
hover_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
html_info_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
language_service_spec.ts test(language-service): Remove all markers from test project (#37475) 2020-06-08 10:25:42 -07:00
mocks.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
reflector_host_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
test_utils.ts fix(language-service): Recover from error in analyzing Ng Modules (#37108) 2020-06-03 15:56:19 -07:00
ts_plugin_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
typescript_host_spec.ts fix(language-service): Recover from error in analyzing Ng Modules (#37108) 2020-06-03 15:56:19 -07:00
typescript_symbols_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
utils_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00