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

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

Issue 1146393003: Make Attr.value/nodeValue/textContent not nullable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add [TreatNullAs=EmptyString] to Attr.nodeValue/textContent Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
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 type="text/javascript" charset="utf-8"> 7 <script type="text/javascript" charset="utf-8">
8 function printOut(msg) 8 function printOut(msg)
9 { 9 {
10 var console = document.getElementById("console"); 10 var console = document.getElementById("console");
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 function runTests() 43 function runTests()
44 { 44 {
45 if (window.testRunner) 45 if (window.testRunner)
46 testRunner.dumpAsText(); 46 testRunner.dumpAsText();
47 47
48 var listing = [ 48 var listing = [
49 { 49 {
50 type: 'Attr', 50 type: 'Attr',
51 elementToUse: document.createAttributeNS('http://www.w3.org/ 1999/xhtml','anAttribute'), 51 elementToUse: document.createAttributeNS('http://www.w3.org/ 1999/xhtml','anAttribute'),
52 attributes: [ 52 attributes: [
53 {name: 'value', expectedNull: null} 53 {name: 'value', expectedNull: 'null'},
54 {name: 'nodeValue', expectedNull: ''},
55 {name: 'textContent', expectedNull: ''}
54 ] 56 ]
55 }, 57 },
56 { 58 {
57 type: 'ProcessingInstruction', 59 type: 'ProcessingInstruction',
58 elementToUse: document.createProcessingInstruction('target', 'data'), 60 elementToUse: document.createProcessingInstruction('target', 'data'),
59 attributes: [ 61 attributes: [
60 {name: 'data', expectedNull: ''} 62 {name: 'data', expectedNull: ''}
61 ] 63 ]
62 }, 64 },
63 { 65 {
(...skipping 17 matching lines...) Expand all
81 } 83 }
82 84
83 </script> 85 </script>
84 </head> 86 </head>
85 87
86 <body onload="runTests();"> 88 <body onload="runTests();">
87 <p>This test setting various attributes of a elements to JavaScript null.</p > 89 <p>This test setting various attributes of a elements to JavaScript null.</p >
88 <div id="console"></div> 90 <div id="console"></div>
89 </body> 91 </body>
90 </html> 92 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698