OLD | NEW |
1 This test checks construction of objects with custom constructors. | 1 This test checks construction of objects with custom constructors. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS new Image() is non-null. | 6 PASS new Image() is non-null. |
7 PASS new Image().tagName is "IMG" | 7 PASS new Image().tagName is "IMG" |
8 PASS new Image().height is 0 | 8 PASS new Image().height is 0 |
9 PASS new Image().width is 0 | 9 PASS new Image().width is 0 |
| 10 PASS new Image(0).width is 0 |
| 11 PASS new Image(0, 0).height is 0 |
10 PASS new Image(100).width is 100 | 12 PASS new Image(100).width is 100 |
11 PASS new Image(100, 200).height is 200 | 13 PASS new Image(100, 200).height is 200 |
12 PASS new Image(-100).width is -100 | 14 PASS new Image(-100).width is -100 |
13 PASS new Image(-100, -200).height is -200 | 15 PASS new Image(-100, -200).height is -200 |
| 16 PASS new Image().hasAttribute('height') is false |
| 17 PASS new Image().hasAttribute('width') is false |
| 18 PASS new Image(0).hasAttribute('height') is false |
| 19 PASS new Image(0).hasAttribute('width') is true |
| 20 PASS new Image(0, 0).hasAttribute('height') is true |
| 21 PASS new Image(0, 0).hasAttribute('width') is true |
14 PASS new Image().outerHTML is "<img>" | 22 PASS new Image().outerHTML is "<img>" |
15 PASS new Image(100, 100).outerHTML.replace(/"/g, "'") is "<img width='100' heigh
t='100'>" | 23 PASS new Image(100, 100).outerHTML.replace(/"/g, "'") is "<img width='100' heigh
t='100'>" |
16 PASS new Option() is non-null. | 24 PASS new Option() is non-null. |
17 PASS new Option().tagName is "OPTION" | 25 PASS new Option().tagName is "OPTION" |
18 PASS new Option().innerText is "" | 26 PASS new Option().innerText is "" |
19 PASS new Option(null).innerText is "null" | 27 PASS new Option(null).innerText is "null" |
20 PASS new Option(undefined).innerText is "" | 28 PASS new Option(undefined).innerText is "" |
21 PASS new Option('somedata').innerText is "somedata" | 29 PASS new Option('somedata').innerText is "somedata" |
22 PASS new Option().value is "" | 30 PASS new Option().value is "" |
23 PASS new Option('somedata', null).value is "null" | 31 PASS new Option('somedata', null).value is "null" |
(...skipping 15 matching lines...) Expand all Loading... |
39 PASS new Audio() is non-null. | 47 PASS new Audio() is non-null. |
40 PASS new Audio().tagName is "AUDIO" | 48 PASS new Audio().tagName is "AUDIO" |
41 PASS new Audio().src is "" | 49 PASS new Audio().src is "" |
42 PASS new Audio().preload is "auto" | 50 PASS new Audio().preload is "auto" |
43 PASS new Audio('http://127.0.0.1/someurl').src is "http://127.0.0.1/someurl" | 51 PASS new Audio('http://127.0.0.1/someurl').src is "http://127.0.0.1/someurl" |
44 PASS new Audio('http://127.0.0.1/someurl').preload is "auto" | 52 PASS new Audio('http://127.0.0.1/someurl').preload is "auto" |
45 PASS successfullyParsed is true | 53 PASS successfullyParsed is true |
46 | 54 |
47 TEST COMPLETE | 55 TEST COMPLETE |
48 | 56 |
OLD | NEW |