OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 var element; | 6 var element; |
7 | 7 |
8 function testDOMStringReflection(elementName, contentAttributeName, idlAttribute
Name, treatNullAsEmptyString) { | 8 function testDOMStringReflection(elementName, contentAttributeName, idlAttribute
Name, treatNullAsEmptyString) { |
9 idlAttributeName = idlAttributeName || contentAttributeName; | 9 idlAttributeName = idlAttributeName || contentAttributeName; |
10 element = document.createElement(elementName); | 10 element = document.createElement(elementName); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 shouldBeEqualToString('element.getAttribute("' + contentAttributeName + '")'
, '456'); | 51 shouldBeEqualToString('element.getAttribute("' + contentAttributeName + '")'
, '456'); |
52 | 52 |
53 debug('\n'); | 53 debug('\n'); |
54 } | 54 } |
55 | 55 |
56 testDOMStringReflection('button', 'name'); | 56 testDOMStringReflection('button', 'name'); |
57 testDOMStringReflection('fieldset', 'name'); | 57 testDOMStringReflection('fieldset', 'name'); |
58 testDOMStringReflection('form', 'name'); | 58 testDOMStringReflection('form', 'name'); |
59 testDOMStringReflection('input', 'name'); | 59 testDOMStringReflection('input', 'name'); |
60 testDOMStringReflection('input', 'step'); | 60 testDOMStringReflection('input', 'step'); |
61 testDOMStringReflection('menu', 'label'); | |
62 testDOMStringReflection('menuitem', 'label'); | |
63 testDOMStringReflection('object', 'name'); | 61 testDOMStringReflection('object', 'name'); |
64 testDOMStringReflection('output', 'name'); | 62 testDOMStringReflection('output', 'name'); |
65 testDOMStringReflection('select', 'name'); | 63 testDOMStringReflection('select', 'name'); |
66 testDOMStringReflection('textarea', 'name'); | 64 testDOMStringReflection('textarea', 'name'); |
67 | 65 |
68 // [TreatNullAs=EmptyString] | 66 // [TreatNullAs=EmptyString] |
69 testDOMStringReflection('frame', 'marginheight', 'marginHeight', true); | 67 testDOMStringReflection('frame', 'marginheight', 'marginHeight', true); |
70 testDOMStringReflection('frame', 'marginwidth', 'marginWidth', true); | 68 testDOMStringReflection('frame', 'marginwidth', 'marginWidth', true); |
71 testDOMStringReflection('iframe', 'marginheight', 'marginHeight', true); | 69 testDOMStringReflection('iframe', 'marginheight', 'marginHeight', true); |
72 testDOMStringReflection('iframe', 'marginwidth', 'marginWidth', true); | 70 testDOMStringReflection('iframe', 'marginwidth', 'marginWidth', true); |
(...skipping 11 matching lines...) Expand all Loading... |
84 testDOMStringReflection('td', 'bgcolor', 'bgColor', true); | 82 testDOMStringReflection('td', 'bgcolor', 'bgColor', true); |
85 testDOMStringReflection('th', 'bgcolor', 'bgColor', true); | 83 testDOMStringReflection('th', 'bgcolor', 'bgColor', true); |
86 testDOMStringReflection('tr', 'bgcolor', 'bgColor', true); | 84 testDOMStringReflection('tr', 'bgcolor', 'bgColor', true); |
87 | 85 |
88 | 86 |
89 // Add more DOMString attributes! | 87 // Add more DOMString attributes! |
90 | 88 |
91 </script> | 89 </script> |
92 </body> | 90 </body> |
93 </html> | 91 </html> |
OLD | NEW |