Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / instanceof-test.js
blob6cff7d2c213a6d2826d45e6a99e51f245ae7bc4a
1 description(
2 "instanceof test"
3 );
5 shouldBeTrue("(new Audio()) instanceof Audio");
6 shouldBeFalse("(new Array()) instanceof Audio");
8 shouldBeTrue("(new Image()) instanceof Image");
9 shouldBeFalse("(new Array()) instanceof Image");
11 // MessageChannel is not available yet.
12 //shouldBeTrue("(new MessageChannel()) instanceof MessageChannel");
13 //shouldBeFalse("(new Array()) instanceof MessageChannel");
15 shouldBeTrue("(new Option()) instanceof Option");
16 shouldBeFalse("(new Array()) instanceof Option");
18 shouldBeTrue("(new WebKitCSSMatrix()) instanceof WebKitCSSMatrix");
19 shouldBeFalse("(new Array()) instanceof WebKitCSSMatrix");
21 shouldBeTrue("(new Worker('instanceof-operator-dummy-worker.js')) instanceof Worker");
22 shouldBeFalse("(new Array()) instanceof Worker");
24 shouldBeTrue("(new XSLTProcessor()) instanceof XSLTProcessor");
25 shouldBeFalse("(new Array()) instanceof XSLTProcessor");