Skip to content

Commit 5fce9fd

Browse files
Changed tests
1 parent 67d862a commit 5fce9fd

File tree

10 files changed

+1107
-165
lines changed

10 files changed

+1107
-165
lines changed

test/converter/basic/enums.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/converter/basic/functions.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/converter/basic/classes.ts renamed to test/converter/class/class.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
/**
44
* TestClass comment short text.
55
*
6-
* TestClass comment
7-
* text.
6+
* TestClass comment text.
87
*
98
* @see [[TestClass]] @ fixtures
109
*/

test/converter/basic/specs.json renamed to test/converter/class/specs.json

Lines changed: 4 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"children": [
77
{
88
"id": 1,
9-
"name": "\"classes\"",
9+
"name": "\"class\"",
1010
"kind": 1,
1111
"kindString": "External module",
1212
"flags": {
1313
"isExported": true
1414
},
15-
"originalName": "%BASE%/basic/classes.ts",
15+
"originalName": "%BASE%/class/class.ts",
1616
"children": [
1717
{
1818
"id": 2,
@@ -24,7 +24,7 @@
2424
},
2525
"comment": {
2626
"shortText": "TestClass comment short text.",
27-
"text": "TestClass comment\ntext.\n",
27+
"text": "TestClass comment text.\n",
2828
"tags": [
2929
{
3030
"tag": "see",
@@ -232,149 +232,14 @@
232232
]
233233
}
234234
]
235-
},
236-
{
237-
"id": 14,
238-
"name": "\"enums\"",
239-
"kind": 1,
240-
"kindString": "External module",
241-
"flags": {
242-
"isExported": true
243-
},
244-
"originalName": "%BASE%/basic/enums.ts",
245-
"children": [
246-
{
247-
"id": 15,
248-
"name": "TestEnum",
249-
"kind": 4,
250-
"kindString": "Enumeration",
251-
"flags": {
252-
"isExported": true
253-
},
254-
"children": [
255-
{
256-
"id": 16,
257-
"name": "EnumValue1",
258-
"kind": 16,
259-
"kindString": "Enumeration member",
260-
"flags": {
261-
"isExported": true
262-
}
263-
},
264-
{
265-
"id": 17,
266-
"name": "EnumValue2",
267-
"kind": 16,
268-
"kindString": "Enumeration member",
269-
"flags": {
270-
"isExported": true
271-
}
272-
},
273-
{
274-
"id": 18,
275-
"name": "EnumValue3",
276-
"kind": 16,
277-
"kindString": "Enumeration member",
278-
"flags": {
279-
"isExported": true
280-
}
281-
}
282-
],
283-
"groups": [
284-
{
285-
"title": "Enumeration members",
286-
"kind": 16,
287-
"children": [
288-
16,
289-
17,
290-
18
291-
]
292-
}
293-
]
294-
}
295-
],
296-
"groups": [
297-
{
298-
"title": "Enumerations",
299-
"kind": 4,
300-
"children": [
301-
15
302-
]
303-
}
304-
]
305-
},
306-
{
307-
"id": 19,
308-
"name": "\"functions\"",
309-
"kind": 1,
310-
"kindString": "External module",
311-
"flags": {
312-
"isExported": true
313-
},
314-
"originalName": "%BASE%/basic/functions.ts",
315-
"children": [
316-
{
317-
"id": 20,
318-
"name": "testFunction",
319-
"kind": 64,
320-
"kindString": "Function",
321-
"flags": {
322-
"isExported": true
323-
},
324-
"signatures": [
325-
{
326-
"id": 21,
327-
"name": "testFunction",
328-
"kind": 4096,
329-
"kindString": "Call signature",
330-
"flags": {},
331-
"comment": {
332-
"shortText": "testFunction comment short text.",
333-
"returns": "Return comment.\n"
334-
},
335-
"parameters": [
336-
{
337-
"id": 22,
338-
"name": "testParam",
339-
"kind": 32768,
340-
"kindString": "Parameter",
341-
"flags": {},
342-
"comment": {
343-
"text": "Test parameter."
344-
},
345-
"type": {
346-
"type": "instrinct",
347-
"name": "string"
348-
}
349-
}
350-
],
351-
"type": {
352-
"type": "instrinct",
353-
"name": "boolean"
354-
}
355-
}
356-
]
357-
}
358-
],
359-
"groups": [
360-
{
361-
"title": "Functions",
362-
"kind": 64,
363-
"children": [
364-
20
365-
]
366-
}
367-
]
368235
}
369236
],
370237
"groups": [
371238
{
372239
"title": "External modules",
373240
"kind": 1,
374241
"children": [
375-
1,
376-
14,
377-
19
242+
1
378243
]
379244
}
380245
]

test/converter/enum/enum.ts

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/// <reference path="../lib.core.d.ts" />
2+
3+
4+
/**
5+
* This is a simple enumeration.
6+
*/
7+
export enum SimpleEnum
8+
{
9+
/**
10+
* This is the first enum member.
11+
*/
12+
EnumValue1 = 1,
13+
14+
/**
15+
* This is the second enum member.
16+
*/
17+
EnumValue2 = 2,
18+
19+
/**
20+
* This is the third enum member.
21+
*/
22+
EnumValue3 = 4
23+
}
24+
25+
26+
/**
27+
* This is an enumeration extended by a module.
28+
*/
29+
export enum ModuleEnum
30+
{
31+
/**
32+
* This is the first enum member.
33+
*/
34+
EnumValue1 = 1,
35+
36+
/**
37+
* This is the second enum member.
38+
*/
39+
EnumValue2 = 2,
40+
41+
/**
42+
* This is the third enum member.
43+
*/
44+
EnumValue3 = 4
45+
}
46+
47+
48+
/**
49+
* This is a module extending an enumeration.
50+
*/
51+
export module ModuleEnum
52+
{
53+
/**
54+
* This is a variable appended to an enumeration.
55+
*/
56+
var enumValue:string;
57+
58+
59+
/**
60+
* This is a function appended to an enumeration.
61+
*/
62+
function enumFunction() {}
63+
}

0 commit comments

Comments
 (0)