Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Hanson committed May 13, 2016
1 parent 81a43f0 commit ca1e787
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions tests/cases/fourslash/declarationExpressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@
////function D() {}
////const E = function F() {}
////console.log(function inner() {})
////String(function fun() { class cls { public prop; } }))

function navExact(name: string, kind: string) {
verify.navigationItemsListContains(name, kind, name, "exact");
}

// Search for properties defined in the constructor, but not other constructor paramters
var searchValue = "search";
verify.navigationItemsListContains("A", "class", "A", "exact");
verify.navigationItemsListContains("B", "const", "B", "exact");
verify.navigationItemsListContains("C", "class", "C", "exact");
verify.navigationItemsListContains("x", "property", "x", "exact");
navExact("A", "class");
navExact("B", "const");
navExact("C", "class");
navExact("x", "property");

verify.navigationItemsListContains("D", "function", "D", "exact");
verify.navigationItemsListContains("E", "const", "E", "exact");
verify.navigationItemsListContains("F", "function", "F", "exact")
navExact("D", "function");
navExact("E", "const");
navExact("F", "function")

verify.navigationItemsListContains("inner", "function", "inner", "exact");
navExact("inner", "function");

navExact("fun", "function");
navExact("cls", "class");
navExact("prop", "property");

0 comments on commit ca1e787

Please sign in to comment.