OLD | NEW |
1 description( | 1 description( |
2 "instanceof XMLHttpRequest test" | 2 "instanceof test" |
3 ); | 3 ); |
4 | 4 |
5 shouldBeTrue("(new Audio()) instanceof Audio"); | 5 shouldBeTrue("(new Audio()) instanceof Audio"); |
6 shouldBeFalse("(new Array()) instanceof Audio"); | 6 shouldBeFalse("(new Array()) instanceof Audio"); |
7 | 7 |
8 shouldBeTrue("(new Image()) instanceof Image"); | 8 shouldBeTrue("(new Image()) instanceof Image"); |
9 shouldBeFalse("(new Array()) instanceof Image"); | 9 shouldBeFalse("(new Array()) instanceof Image"); |
10 | 10 |
11 // MessageChannel is not available yet. | 11 // MessageChannel is not available yet. |
12 //shouldBeTrue("(new MessageChannel()) instanceof MessageChannel"); | 12 //shouldBeTrue("(new MessageChannel()) instanceof MessageChannel"); |
13 //shouldBeFalse("(new Array()) instanceof MessageChannel"); | 13 //shouldBeFalse("(new Array()) instanceof MessageChannel"); |
14 | 14 |
15 shouldBeTrue("(new Option()) instanceof Option"); | 15 shouldBeTrue("(new Option()) instanceof Option"); |
16 shouldBeFalse("(new Array()) instanceof Option"); | 16 shouldBeFalse("(new Array()) instanceof Option"); |
17 | 17 |
18 shouldBeTrue("(new WebKitCSSMatrix()) instanceof WebKitCSSMatrix"); | 18 shouldBeTrue("(new WebKitCSSMatrix()) instanceof WebKitCSSMatrix"); |
19 shouldBeFalse("(new Array()) instanceof WebKitCSSMatrix"); | 19 shouldBeFalse("(new Array()) instanceof WebKitCSSMatrix"); |
20 | 20 |
21 shouldBeTrue("(new Worker('instanceof-operator-dummy-worker.js')) instanceof Wor
ker"); | 21 shouldBeTrue("(new Worker('instanceof-operator-dummy-worker.js')) instanceof Wor
ker"); |
22 shouldBeFalse("(new Array()) instanceof Worker"); | 22 shouldBeFalse("(new Array()) instanceof Worker"); |
23 | 23 |
24 shouldBeTrue("(new XMLHttpRequest()) instanceof XMLHttpRequest") | |
25 shouldBeFalse("(new Array()) instanceof XMLHttpRequest") | |
26 | |
27 shouldBeTrue("(new XSLTProcessor()) instanceof XSLTProcessor"); | 24 shouldBeTrue("(new XSLTProcessor()) instanceof XSLTProcessor"); |
28 shouldBeFalse("(new Array()) instanceof XSLTProcessor"); | 25 shouldBeFalse("(new Array()) instanceof XSLTProcessor"); |
OLD | NEW |