-
Notifications
You must be signed in to change notification settings - Fork 1
/
_vs2012.intellisense.Test.js
69 lines (57 loc) · 1.67 KB
/
_vs2012.intellisense.Test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/// <reference path="namespacesandenumsupport.js" />
/// <reference path="_vs2012.intellisense.js" />
/// <reference path="~/scripts/jquery-1.9.1.js" />
!function () {
namespace("Demo.controllers")
function Class() {
this.onClick = function () { },
this.thisUndefined = undefined;
this.thisNumber = 1;
this.thisString = "";
this.thisBoolean = true;
this.thisNull = null;
this.thisObject = {};
this.thisFunction = function () { };
this.thisRegExp = /a/g;
this.thisDomElement = document.body;
this.thisClass = Class;
this.thisClassInstance = new Enumerator();
this.thisNamespace = Namespace;
this.thisEnum = Color.Red;
}
Class.__map = true;
Demo.a = Class;
Class.__class = true;
Class.prototype.protoMethod = function () { };
Class.prototype.protoFieldObject = {};
Class.prototype.protoFieldBool = false;
function IUser() { }
IUser.__interface = true;
Demo.controllers.function = function () { };
var map = {}
map.__map = true;
var colors = new Enum({ Red: 1, Yellow: 2, Green: 3 });
colors.Red;
Demo.Class = Class;
Demo.colors = colors;
Demo.IUser = IUser;
Demo.map = map;
Demo.fieldFunction = function () { }
Demo.fieldBoolean = false;
Demo.fieldString = "";
Demo.fieldNumber = 1;
var c = new Class();
//uncomment any of these lines to test:
//Demo.
//Class.
//c.
//call and apply correct description and parameter hints!!
function method(name, options) {
/// <summary>Does that</summary>
/// <param name="name" type="String">The name of the method</param>
/// <param name="options" type="Object" optional="true">Extra options for this method</param>
}
method("abc")
method.call(this, "abc")
method.apply(this, ["abc"])
}();