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

Side by Side Diff: LayoutTests/fast/dom/domstring-attribute-reflection.html

Issue 60733023: Remove TreatNullAs=NullString for HTMLFormElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/domstring-attribute-reflection-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, treatNullAsString) { 8 function testDOMStringReflection(elementName, contentAttributeName, idlAttribute Name, treatNullAsString) {
9 idlAttributeName = idlAttributeName || contentAttributeName; 9 idlAttributeName = idlAttributeName || contentAttributeName;
10 element = document.createElement(elementName); 10 element = document.createElement(elementName);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 debug('Setting non-string via the content attribute:'); 49 debug('Setting non-string via the content attribute:');
50 shouldBeEqualToString('element.setAttribute("' + contentAttributeName + '", 456); element.' + idlAttributeName, '456'); 50 shouldBeEqualToString('element.setAttribute("' + contentAttributeName + '", 456); element.' + idlAttributeName, '456');
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', 'name', true); 56 testDOMStringReflection('button', 'name', 'name', true);
57 testDOMStringReflection('fieldset', 'name', 'name', true); 57 testDOMStringReflection('fieldset', 'name', 'name', true);
58 testDOMStringReflection('form', 'name'); 58 testDOMStringReflection('form', 'name', 'name', true);
59 testDOMStringReflection('input', 'name'); 59 testDOMStringReflection('input', 'name');
60 testDOMStringReflection('input', 'step'); 60 testDOMStringReflection('input', 'step');
61 testDOMStringReflection('keygen', 'name'); 61 testDOMStringReflection('keygen', 'name');
62 testDOMStringReflection('object', 'name'); 62 testDOMStringReflection('object', 'name');
63 testDOMStringReflection('output', 'name'); 63 testDOMStringReflection('output', 'name');
64 testDOMStringReflection('select', 'name'); 64 testDOMStringReflection('select', 'name');
65 testDOMStringReflection('textarea', 'name'); 65 testDOMStringReflection('textarea', 'name');
66 66
67 // Add more DOMString attributes! 67 // Add more DOMString attributes!
68 68
69 </script> 69 </script>
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/domstring-attribute-reflection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698