Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1224)

Side by Side Diff: LayoutTests/fast/js/custom-constructors-expected.txt

Issue 373043004: IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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(100).width is 100 10 PASS new Image(100).width is 100
11 PASS new Image(100, 200).height is 200 11 PASS new Image(100, 200).height is 200
12 PASS new Image(-100).width is -100 12 PASS new Image(-100).width is -100
13 PASS new Image(-100, -200).height is -200 13 PASS new Image(-100, -200).height is -200
14 PASS new Image().outerHTML is "<img>" 14 PASS new Image().outerHTML is "<img>"
15 PASS new Image(100, 100).outerHTML.replace(/"/g, "'") is "<img width='100' heigh t='100'>" 15 PASS new Image(100, 100).outerHTML.replace(/"/g, "'") is "<img width='100' heigh t='100'>"
16 PASS new Option() is non-null. 16 PASS new Option() is non-null.
17 PASS new Option().tagName is "OPTION" 17 PASS new Option().tagName is "OPTION"
18 PASS new Option().innerText is "" 18 PASS new Option().innerText is ""
19 PASS new Option(null).innerText is "null" 19 PASS new Option(null).innerText is "null"
20 PASS new Option(undefined).innerText is "undefined" 20 PASS new Option(undefined).innerText is ""
21 PASS new Option('somedata').innerText is "somedata" 21 PASS new Option('somedata').innerText is "somedata"
22 PASS new Option().value is "" 22 PASS new Option().value is ""
23 PASS new Option('somedata', null).value is "null" 23 PASS new Option('somedata', null).value is "null"
24 PASS new Option('somedata', undefined).value is "undefined" 24 PASS new Option('somedata', undefined).value is "somedata"
25 PASS new Option('somedata', 'somevalue').value is "somevalue" 25 PASS new Option('somedata', 'somevalue').value is "somevalue"
26 PASS new Option().defaultSelected is false 26 PASS new Option().defaultSelected is false
27 PASS new Option('somedata', 'somevalue').defaultSelected is false 27 PASS new Option('somedata', 'somevalue').defaultSelected is false
28 PASS new Option('somedata', 'somevalue', false).defaultSelected is false 28 PASS new Option('somedata', 'somevalue', false).defaultSelected is false
29 PASS new Option('somedata', 'somevalue', true).defaultSelected is true 29 PASS new Option('somedata', 'somevalue', true).defaultSelected is true
30 PASS new Option().selected is false 30 PASS new Option().selected is false
31 PASS new Option('somedata', 'somevalue').selected is false 31 PASS new Option('somedata', 'somevalue').selected is false
32 PASS new Option('somedata', 'somevalue', false).selected is false 32 PASS new Option('somedata', 'somevalue', false).selected is false
33 PASS new Option('somedata', 'somevalue', true).selected is false 33 PASS new Option('somedata', 'somevalue', true).selected is false
34 PASS new Option('somedata', 'somevalue', true, false).selected is false 34 PASS new Option('somedata', 'somevalue', true, false).selected is false
35 PASS new Option('somedata', 'somevalue', true, true).selected is true 35 PASS new Option('somedata', 'somevalue', true, true).selected is true
36 PASS new Option().outerHTML is "<option></option>" 36 PASS new Option().outerHTML is "<option></option>"
37 PASS new Option('somedata', 'somevalue', false).outerHTML.replace(/"/g,"'") is " <option value='somevalue'>somedata</option>" 37 PASS new Option('somedata', 'somevalue', false).outerHTML.replace(/"/g,"'") is " <option value='somevalue'>somedata</option>"
38 PASS new Option('somedata', 'somevalue', true).outerHTML.replace(/"/g,"'") is "< option value='somevalue' selected=''>somedata</option>" 38 PASS new Option('somedata', 'somevalue', true).outerHTML.replace(/"/g,"'") is "< option value='somevalue' selected=''>somedata</option>"
39 PASS new Audio() is non-null. 39 PASS new Audio() is non-null.
40 PASS new Audio().tagName is "AUDIO" 40 PASS new Audio().tagName is "AUDIO"
41 PASS new Audio().src is "" 41 PASS new Audio().src is ""
42 PASS new Audio().preload is "auto" 42 PASS new Audio().preload is "auto"
43 PASS new Audio('http://127.0.0.1/someurl').src is "http://127.0.0.1/someurl" 43 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" 44 PASS new Audio('http://127.0.0.1/someurl').preload is "auto"
45 PASS successfullyParsed is true 45 PASS successfullyParsed is true
46 46
47 TEST COMPLETE 47 TEST COMPLETE
48 48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698