1 This test checks construction of objects with custom constructors.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS new Image() is non-null.
7 PASS new Image().tagName is "IMG"
8 PASS new Image().height 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
12 PASS new Image(100).width is 100
13 PASS new Image(100, 200).height is 200
14 PASS new Image(-100).width is -100
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
22 PASS new Image().outerHTML is "<img>"
23 PASS new Image(100, 100).outerHTML.replace(/"/g, "'") is "<img width='100' height='100'>"
24 PASS new Option() is non-null.
25 PASS new Option().tagName is "OPTION"
26 PASS new Option().innerText is ""
27 PASS new Option(null).innerText is "null"
28 PASS new Option(undefined).innerText is ""
29 PASS new Option('somedata').innerText is "somedata"
30 PASS new Option().value is ""
31 PASS new Option('somedata', null).value is "null"
32 PASS new Option('somedata', undefined).value is "somedata"
33 PASS new Option('somedata', 'somevalue').value is "somevalue"
34 PASS new Option().defaultSelected is false
35 PASS new Option('somedata', 'somevalue').defaultSelected is false
36 PASS new Option('somedata', 'somevalue', false).defaultSelected is false
37 PASS new Option('somedata', 'somevalue', false, false).defaultSelected is false
38 PASS new Option('somedata', 'somevalue', true).defaultSelected is true
39 PASS new Option('somedata', 'somevalue', true, false).defaultSelected is true
40 PASS new Option('somedata', 'somevalue', true, true).defaultSelected is true
41 PASS new Option().selected is false
42 PASS new Option('somedata', 'somevalue').selected is false
43 PASS new Option('somedata', 'somevalue', false).selected is false
44 PASS new Option('somedata', 'somevalue', true).selected is false
45 PASS new Option('somedata', 'somevalue', true, false).selected is false
46 PASS new Option('somedata', 'somevalue', true, true).selected is true
47 PASS new Option().outerHTML is "<option></option>"
48 PASS new Option('somedata', 'somevalue', false).outerHTML.replace(/"/g,"'") is "<option value='somevalue'>somedata</option>"
49 PASS new Option('somedata', 'somevalue', true).outerHTML.replace(/"/g,"'") is "<option value='somevalue' selected=''>somedata</option>"
50 PASS new Audio() is non-null.
51 PASS new Audio().tagName is "AUDIO"
52 PASS new Audio().src is ""
53 PASS new Audio().preload is "auto"
54 PASS new Audio('http://127.0.0.1/someurl').src is "http://127.0.0.1/someurl"
55 PASS new Audio('http://127.0.0.1/someurl').preload is "auto"
56 PASS successfullyParsed is true