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

Side by Side Diff: LayoutTests/fast/dom/element-attribute-js-null.html

Issue 59903003: Remove TreatNullAs=NullString for HTMLButtonElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@nullb
Patch Set: update tests 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style type="text/css"> 3 <style type="text/css">
4 .pass { color: green; } 4 .pass { color: green; }
5 .fail { color: red; } 5 .fail { color: red; }
6 </style> 6 </style>
7 <script> 7 <script>
8 function printOut(msg) 8 function printOut(msg)
9 { 9 {
10 var console = document.getElementById("console"); 10 var console = document.getElementById("console");
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 elementToUse: document.createElement('br'), 191 elementToUse: document.createElement('br'),
192 attributes: [ 192 attributes: [
193 {name: 'clear', expectedNull: 'null'} 193 {name: 'clear', expectedNull: 'null'}
194 ] 194 ]
195 }, 195 },
196 { 196 {
197 type: 'HTMLButtonElement', 197 type: 'HTMLButtonElement',
198 elementToUse: document.createElement('button'), 198 elementToUse: document.createElement('button'),
199 attributes: [ 199 attributes: [
200 {name: 'accessKey', expectedNull: ''}, 200 {name: 'accessKey', expectedNull: ''},
201 {name: 'name', expectedNull: ''}, 201 {name: 'formAction', expectedNull: 'null', isUrl:true},
202 {name: 'value', expectedNull: ''} 202 {name: 'formEnctype', expectedNull: 'application/x-www-f orm-urlencoded'},
203 {name: 'formMethod', expectedNull: 'get'},
204 {name: 'formTarget', expectedNull: 'null'},
205 {name: 'name', expectedNull: 'null'},
206 {name: 'type', expectedNull: 'submit'},
207 {name: 'value', expectedNull: 'null'}
203 ] 208 ]
204 }, 209 },
205 { 210 {
206 type: 'HTMLDivElement', 211 type: 'HTMLDivElement',
207 elementToUse: document.createElement('div'), 212 elementToUse: document.createElement('div'),
208 attributes: [ 213 attributes: [
209 {name: 'align', expectedNull: ''} 214 {name: 'align', expectedNull: ''}
210 ] 215 ]
211 }, 216 },
212 217
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 printOut(''); 653 printOut('');
649 } 654 }
650 } 655 }
651 </script> 656 </script>
652 </head> 657 </head>
653 <body onload="runTests()"> 658 <body onload="runTests()">
654 <p>This test setting various attributes of a elements to JavaScript null.</p > 659 <p>This test setting various attributes of a elements to JavaScript null.</p >
655 <div id="console"></div> 660 <div id="console"></div>
656 </body> 661 </body>
657 </html> 662 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698