• Home
  • Raw
  • Download

Lines Matching refs:assert

19 assert (e.name === "Error");
20 assert (e.message === "");
21 assert (e.toString() === "Error");
24 assert (e.name === "Error");
25 assert (e.message === "some message");
26 assert (e.toString() === "Error: some message");
29 assert (e.toString() === "some message");
31 assert (e.toString() === "");
33 assert (Error.prototype.toString !== Object.prototype.toString);
34 assert (Error.prototype.constructor === Error);
35 assert (Error.prototype.name === "Error");
36 assert (Error.prototype.message === "");
37 assert (Error.prototype.toString() === "Error");
41 assert (e.name === "TypeError");
42 assert (e.message === "");
43 assert (e.toString() === "TypeError");
46 assert (e.name === "TypeError");
47 assert (e.message === "some message");
48 assert (e.toString() === "TypeError: some message");
51 assert (e.toString() === "some message");
53 assert (e.toString() === "");
55 assert (TypeError.prototype.toString === Error.prototype.toString);
56 assert (TypeError.prototype.constructor === TypeError);
57 assert (TypeError.prototype.name === "TypeError");
58 assert (TypeError.prototype.message === "");
59 assert (TypeError.prototype.toString() === "TypeError");
65 assert (false);
69 assert(e instanceof TypeError);
70 assert(e instanceof Error);
71 assert(e instanceof Object);
73 assert(!(e instanceof Function));
79 assert (e.name === "ReferenceError");
80 assert (e.message === "");
81 assert (e.toString() === "ReferenceError");
84 assert (e.name === "ReferenceError");
85 assert (e.message === "some message");
86 assert (e.toString() === "ReferenceError: some message");
89 assert (e.toString() === "some message");
91 assert (e.toString() === "");
93 assert (ReferenceError.prototype.toString === Error.prototype.toString);
94 assert (ReferenceError.prototype.constructor === ReferenceError);
95 assert (ReferenceError.prototype.name === "ReferenceError");
96 assert (ReferenceError.prototype.message === "");
97 assert (ReferenceError.prototype.toString() === "ReferenceError");
103 assert (false);
107 assert(e instanceof ReferenceError);
108 assert(e instanceof Error);
109 assert(e instanceof Object);
111 assert(!(e instanceof Function));
116 assert (e.name === "EvalError");
117 assert (e.message === "");
118 assert (e.toString() === "EvalError");
121 assert (e.name === "EvalError");
122 assert (e.message === "some message");
123 assert (e.toString() === "EvalError: some message");
126 assert (e.toString() === "some message");
128 assert (e.toString() === "");
130 assert (EvalError.prototype.toString === Error.prototype.toString);
131 assert (EvalError.prototype.constructor === EvalError);
132 assert (EvalError.prototype.name === "EvalError");
133 assert (EvalError.prototype.message === "");
134 assert (EvalError.prototype.toString() === "EvalError");
138 assert (e.name === "RangeError");
139 assert (e.message === "");
140 assert (e.toString() === "RangeError");
143 assert (e.name === "RangeError");
144 assert (e.message === "some message");
145 assert (e.toString() === "RangeError: some message");
148 assert (e.toString() === "some message");
150 assert (e.toString() === "");
152 assert (RangeError.prototype.toString === Error.prototype.toString);
153 assert (RangeError.prototype.constructor === RangeError);
154 assert (RangeError.prototype.name === "RangeError");
155 assert (RangeError.prototype.message === "");
156 assert (RangeError.prototype.toString() === "RangeError");
160 assert (e.name === "SyntaxError");
161 assert (e.message === "");
162 assert (e.toString() === "SyntaxError");
165 assert (e.name === "SyntaxError");
166 assert (e.message === "some message");
167 assert (e.toString() === "SyntaxError: some message");
170 assert (e.toString() === "some message");
172 assert (e.toString() === "");
174 assert (SyntaxError.prototype.toString === Error.prototype.toString);
175 assert (SyntaxError.prototype.constructor === SyntaxError);
176 assert (SyntaxError.prototype.name === "SyntaxError");
177 assert (SyntaxError.prototype.message === "");
178 assert (SyntaxError.prototype.toString() === "SyntaxError");
182 assert (e.name === "URIError");
183 assert (e.message === "");
184 assert (e.toString() === "URIError");
187 assert (e.name === "URIError");
188 assert (e.message === "some message");
189 assert (e.toString() === "URIError: some message");
192 assert (e.toString() === "some message");
194 assert (e.toString() === "");
196 assert (URIError.prototype.toString === Error.prototype.toString);
197 assert (URIError.prototype.constructor === URIError);
198 assert (URIError.prototype.name === "URIError");
199 assert (URIError.prototype.message === "");
200 assert (URIError.prototype.toString() === "URIError");