1 This test checks the names of all sorts of different functions.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS new Function(' return 1; ').toString().replace(/[ \n]+/g, ' ') is 'function anonymous() { return 1; }'
7 PASS document.documentElement.onclick.toString().replace(/[ \n]+/g, ' ') is 'function onclick(event) { return 2; }'
8 PASS ''.constructor is String
9 FAIL Boolean.toString() should be function Boolean() {
11 }. Was function Boolean() { [native code] }.
12 FAIL Date.toString() should be function Date() {
14 }. Was function Date() { [native code] }.
15 FAIL Error.toString() should be function Error() {
17 }. Was function Error() { [native code] }.
18 FAIL EvalError.toString() should be function EvalError() {
20 }. Was function EvalError() { [native code] }.
21 FAIL Function.toString() should be function Function() {
23 }. Was function Function() { [native code] }.
24 FAIL Number.toString() should be function Number() {
26 }. Was function Number() { [native code] }.
27 FAIL Object.toString() should be function Object() {
29 }. Was function Object() { [native code] }.
30 FAIL RangeError.toString() should be function RangeError() {
32 }. Was function RangeError() { [native code] }.
33 FAIL ReferenceError.toString() should be function ReferenceError() {
35 }. Was function ReferenceError() { [native code] }.
36 FAIL RegExp.toString() should be function RegExp() {
38 }. Was function RegExp() { [native code] }.
39 FAIL String.toString() should be function String() {
41 }. Was function String() { [native code] }.
42 FAIL SyntaxError.toString() should be function SyntaxError() {
44 }. Was function SyntaxError() { [native code] }.
45 FAIL TypeError.toString() should be function TypeError() {
47 }. Was function TypeError() { [native code] }.
48 FAIL URIError.toString() should be function URIError() {
50 }. Was function URIError() { [native code] }.
51 PASS successfullyParsed is true