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