mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Fix huge test baseline by using @noLib and targeted completion testing
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
This commit is contained in:
parent
7f7a30ee59
commit
c8b6d8ca62
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,7 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @noLib: true
|
||||
|
||||
//// declare const thing: string;
|
||||
|
||||
//// // Basic switch block - should prioritize case/default
|
||||
@ -57,26 +59,68 @@
|
||||
//// /*newPrio4*/
|
||||
//// }
|
||||
|
||||
// Scenarios where case/default should be prioritized
|
||||
goTo.marker("basic");
|
||||
verify.baselineCompletions();
|
||||
|
||||
goTo.marker("sameAll1");
|
||||
verify.baselineCompletions();
|
||||
|
||||
goTo.marker("sameAll2");
|
||||
verify.baselineCompletions();
|
||||
|
||||
goTo.marker("sameAll3");
|
||||
verify.baselineCompletions();
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "10" },
|
||||
{ name: "default", sortText: "10" }
|
||||
]
|
||||
});
|
||||
|
||||
goTo.marker("newPrio1");
|
||||
verify.baselineCompletions();
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "10" },
|
||||
{ name: "default", sortText: "10" }
|
||||
]
|
||||
});
|
||||
|
||||
goTo.marker("newPrio2");
|
||||
verify.baselineCompletions();
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "10" },
|
||||
{ name: "default", sortText: "10" }
|
||||
]
|
||||
});
|
||||
|
||||
goTo.marker("newPrio3");
|
||||
verify.baselineCompletions();
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "10" },
|
||||
{ name: "default", sortText: "10" }
|
||||
]
|
||||
});
|
||||
|
||||
goTo.marker("newPrio4");
|
||||
verify.baselineCompletions();
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "10" },
|
||||
{ name: "default", sortText: "10" }
|
||||
]
|
||||
});
|
||||
|
||||
// Scenarios where case/default should NOT be prioritized
|
||||
goTo.marker("sameAll1");
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "15" },
|
||||
{ name: "default", sortText: "15" }
|
||||
]
|
||||
});
|
||||
|
||||
goTo.marker("sameAll2");
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "15" },
|
||||
{ name: "default", sortText: "15" }
|
||||
]
|
||||
});
|
||||
|
||||
goTo.marker("sameAll3");
|
||||
verify.completions({
|
||||
includes: [
|
||||
{ name: "case", sortText: "15" },
|
||||
{ name: "default", sortText: "15" }
|
||||
]
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user