mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 21:07:52 -05:00
Amended test for quoted module names.
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
////declare module "X.Y.Z" {
|
||||
////}
|
||||
////
|
||||
////{| "itemName": "'X2.Y2.Z2'", "kind": "module" |}
|
||||
////declare module 'X2.Y2.Z2' {
|
||||
////}
|
||||
////
|
||||
////{| "itemName": "A.B.C", "kind": "module" |}
|
||||
////module A.B.C {
|
||||
//// {| "itemName": "x", "kind": "var", "parent": "A.B.C" |}
|
||||
@@ -38,7 +42,7 @@ test.markers().forEach((marker) => {
|
||||
verify.getScriptLexicalStructureListContains(marker.data.itemName, marker.data.kind, marker.fileName, marker.data.parentName);
|
||||
});
|
||||
|
||||
/// We have 7 module keywords, and 4 var keywords.
|
||||
/// We have 8 module keywords, and 4 var keywords.
|
||||
/// The declarations of A.B.C.x do not get merged, so the 4 vars are independent.
|
||||
/// The two 'A' modules, however, do get merged, so in reality we have 6 modules.
|
||||
verify.getScriptLexicalStructureListCount(10);
|
||||
/// The two 'A' modules, however, do get merged, so in reality we have 7 modules.
|
||||
verify.getScriptLexicalStructureListCount(11);
|
||||
|
||||
Reference in New Issue
Block a user