Skip to content

Commit

Permalink
Changed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-lenz committed Jan 28, 2015
1 parent 67d862a commit 5fce9fd
Show file tree
Hide file tree
Showing 10 changed files with 1,107 additions and 165 deletions.
10 changes: 0 additions & 10 deletions test/converter/basic/enums.ts

This file was deleted.

10 changes: 0 additions & 10 deletions test/converter/basic/functions.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
/**
* TestClass comment short text.
*
* TestClass comment
* text.
* TestClass comment text.
*
* @see [[TestClass]] @ fixtures
*/
Expand Down
143 changes: 4 additions & 139 deletions test/converter/basic/specs.json → test/converter/class/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"children": [
{
"id": 1,
"name": "\"classes\"",
"name": "\"class\"",
"kind": 1,
"kindString": "External module",
"flags": {
"isExported": true
},
"originalName": "%BASE%/basic/classes.ts",
"originalName": "%BASE%/class/class.ts",
"children": [
{
"id": 2,
Expand All @@ -24,7 +24,7 @@
},
"comment": {
"shortText": "TestClass comment short text.",
"text": "TestClass comment\ntext.\n",
"text": "TestClass comment text.\n",
"tags": [
{
"tag": "see",
Expand Down Expand Up @@ -232,149 +232,14 @@
]
}
]
},
{
"id": 14,
"name": "\"enums\"",
"kind": 1,
"kindString": "External module",
"flags": {
"isExported": true
},
"originalName": "%BASE%/basic/enums.ts",
"children": [
{
"id": 15,
"name": "TestEnum",
"kind": 4,
"kindString": "Enumeration",
"flags": {
"isExported": true
},
"children": [
{
"id": 16,
"name": "EnumValue1",
"kind": 16,
"kindString": "Enumeration member",
"flags": {
"isExported": true
}
},
{
"id": 17,
"name": "EnumValue2",
"kind": 16,
"kindString": "Enumeration member",
"flags": {
"isExported": true
}
},
{
"id": 18,
"name": "EnumValue3",
"kind": 16,
"kindString": "Enumeration member",
"flags": {
"isExported": true
}
}
],
"groups": [
{
"title": "Enumeration members",
"kind": 16,
"children": [
16,
17,
18
]
}
]
}
],
"groups": [
{
"title": "Enumerations",
"kind": 4,
"children": [
15
]
}
]
},
{
"id": 19,
"name": "\"functions\"",
"kind": 1,
"kindString": "External module",
"flags": {
"isExported": true
},
"originalName": "%BASE%/basic/functions.ts",
"children": [
{
"id": 20,
"name": "testFunction",
"kind": 64,
"kindString": "Function",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 21,
"name": "testFunction",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "testFunction comment short text.",
"returns": "Return comment.\n"
},
"parameters": [
{
"id": 22,
"name": "testParam",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"text": "Test parameter."
},
"type": {
"type": "instrinct",
"name": "string"
}
}
],
"type": {
"type": "instrinct",
"name": "boolean"
}
}
]
}
],
"groups": [
{
"title": "Functions",
"kind": 64,
"children": [
20
]
}
]
}
],
"groups": [
{
"title": "External modules",
"kind": 1,
"children": [
1,
14,
19
1
]
}
]
Expand Down
63 changes: 63 additions & 0 deletions test/converter/enum/enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/// <reference path="../lib.core.d.ts" />


/**
* This is a simple enumeration.
*/
export enum SimpleEnum
{
/**
* This is the first enum member.
*/
EnumValue1 = 1,

/**
* This is the second enum member.
*/
EnumValue2 = 2,

/**
* This is the third enum member.
*/
EnumValue3 = 4
}


/**
* This is an enumeration extended by a module.
*/
export enum ModuleEnum
{
/**
* This is the first enum member.
*/
EnumValue1 = 1,

/**
* This is the second enum member.
*/
EnumValue2 = 2,

/**
* This is the third enum member.
*/
EnumValue3 = 4
}


/**
* This is a module extending an enumeration.
*/
export module ModuleEnum
{
/**
* This is a variable appended to an enumeration.
*/
var enumValue:string;


/**
* This is a function appended to an enumeration.
*/
function enumFunction() {}
}
Loading

0 comments on commit 5fce9fd

Please sign in to comment.