OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <div id="description"></div> | 6 <div id="description"></div> |
7 <div id="console"></div> | 7 <div id="console"></div> |
8 <script> | 8 <script> |
9 description('Test constructors for classes in Window'); | 9 description('Test constructors for classes in Window'); |
10 if (window.testRunner) { | 10 if (window.testRunner) { |
11 testRunner.dumpAsText(); | 11 testRunner.dumpAsText(); |
12 } | 12 } |
13 | 13 |
14 shouldBe("Audio.prototype.toString.call(new Audio)", "'[object HTMLAudioElem
ent]'"); | 14 shouldBe("Audio.prototype.toString.call(new Audio)", "'[object HTMLAudioElem
ent]'"); |
15 shouldBe("Image.prototype.toString.call(new Image)", "'[object HTMLImageElem
ent]'"); | 15 shouldBe("Image.prototype.toString.call(new Image)", "'[object HTMLImageElem
ent]'"); |
16 shouldBe("Option.prototype.toString.call(new Option)", "'[object HTMLOptionE
lement]'"); | 16 shouldBe("Option.prototype.toString.call(new Option)", "'[object HTMLOptionE
lement]'"); |
17 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix)", "'m
atrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)'"); | 17 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix)", "'m
atrix(1, 0, 0, 1, 0, 0)'"); |
18 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix())", "
'matrix(1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000)'"); | 18 shouldBe("WebKitCSSMatrix.prototype.toString.call(new WebKitCSSMatrix())", "
'matrix(1, 0, 0, 1, 0, 0)'"); |
19 shouldThrow("new WebKitCSSMatrix(null)"); | 19 shouldThrow("new WebKitCSSMatrix(null)"); |
20 shouldThrow("new WebKitCSSMatrix(undefined)"); | 20 shouldThrow("new WebKitCSSMatrix(undefined)"); |
21 shouldBe("XMLHttpRequest.prototype.toString.call(new XMLHttpRequest)", "'[ob
ject XMLHttpRequest]'"); | 21 shouldBe("XMLHttpRequest.prototype.toString.call(new XMLHttpRequest)", "'[ob
ject XMLHttpRequest]'"); |
22 shouldBe("XSLTProcessor.prototype.toString.call(new XSLTProcessor)", "'[obje
ct XSLTProcessor]'"); | 22 shouldBe("XSLTProcessor.prototype.toString.call(new XSLTProcessor)", "'[obje
ct XSLTProcessor]'"); |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |