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

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

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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 testRunner.dumpAsText(); 45 testRunner.dumpAsText();
46 46
47 var svgNS = 'http://www.w3.org/2000/svg'; 47 var svgNS = 'http://www.w3.org/2000/svg';
48 var svg = document.createElementNS(svgNS, 'svg'); 48 var svg = document.createElementNS(svgNS, 'svg');
49 49
50 var listing = [ 50 var listing = [
51 { 51 {
52 type: 'SVGElement', 52 type: 'SVGElement',
53 elementToUse: svg, 53 elementToUse: svg,
54 attributes: [ 54 attributes: [
55 {name: 'id', expectedNull: ''}, 55 {name: 'id', expectedNull: 'null'},
56 {name: 'xmlbase', expectedNull: ''} 56 {name: 'xmlbase', expectedNull: ''}
57 ] 57 ]
58 }, 58 },
59 { 59 {
60 type: 'SVGAngle', 60 type: 'SVGAngle',
61 elementToUse: svg.createSVGAngle(), 61 elementToUse: svg.createSVGAngle(),
62 attributes: [ 62 attributes: [
63 {name: 'valueAsString', expectedNull: '0'} 63 {name: 'valueAsString', expectedNull: '0'}
64 ] 64 ]
65 }, 65 },
(...skipping 25 matching lines...) Expand all
91 } 91 }
92 92
93 </script> 93 </script>
94 </head> 94 </head>
95 95
96 <body onload="runTests();"> 96 <body onload="runTests();">
97 <p>This test setting various attributes of a SVG elements to JavaScript null .</p> 97 <p>This test setting various attributes of a SVG elements to JavaScript null .</p>
98 <div id="console"></div> 98 <div id="console"></div>
99 </body> 99 </body>
100 </html> 100 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698