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

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

Issue 104263002: Remove TreatNullAs=NullString for Element.id and .className (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update SVGElement.id test Created 7 years 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/element-attribute-js-null-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 <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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // XML node (created using createElementNS()) this woul d throw an exception. We 81 // XML node (created using createElementNS()) this woul d throw an exception. We
82 // should test this further as Firefox has a different behavior. 82 // should test this further as Firefox has a different behavior.
83 {name: 'prefix', expectedNull: null}, 83 {name: 'prefix', expectedNull: null},
84 {name: 'textContent', expectedNull: ''} 84 {name: 'textContent', expectedNull: ''}
85 ] 85 ]
86 }, 86 },
87 { 87 {
88 type: 'Element', 88 type: 'Element',
89 elementToUse: document.createElementNS('http://example.com/' , 'example'), 89 elementToUse: document.createElementNS('http://example.com/' , 'example'),
90 attributes: [ 90 attributes: [
91 {name: 'id', expectedNull: ''}, 91 {name: 'id', expectedNull: 'null'},
92 {name: 'className', expectedNull: ''}, 92 {name: 'className', expectedNull: 'null'},
93 {name: 'innerHTML', expectedNull: ''}, 93 {name: 'innerHTML', expectedNull: ''},
94 {name: 'outerHTML', expectedNull: 'exception'} 94 {name: 'outerHTML', expectedNull: 'exception'}
95 ] 95 ]
96 }, 96 },
97 { 97 {
98 type: 'HTMLElement', 98 type: 'HTMLElement',
99 elementToUse: document.createElement('abbr'), 99 elementToUse: document.createElement('abbr'),
100 attributes: [ 100 attributes: [
101 {name: 'accessKey', expectedNull: 'null'}, 101 {name: 'accessKey', expectedNull: 'null'},
102 {name: 'title', expectedNull: 'null'}, 102 {name: 'title', expectedNull: 'null'},
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 printOut(''); 719 printOut('');
720 } 720 }
721 } 721 }
722 </script> 722 </script>
723 </head> 723 </head>
724 <body onload="runTests()"> 724 <body onload="runTests()">
725 <p>This test setting various attributes of a elements to JavaScript null.</p > 725 <p>This test setting various attributes of a elements to JavaScript null.</p >
726 <div id="console"></div> 726 <div id="console"></div>
727 </body> 727 </body>
728 </html> 728 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/element-attribute-js-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698