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

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

Issue 240243004: Update HTMLElement.dir / Document.dir to return only known values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use fastGetAttribute Created 6 years, 8 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> 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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'},
103 {name: 'lang', expectedNull: 'null'}, 103 {name: 'lang', expectedNull: 'null'},
104 {name: 'dir', expectedNull: 'null'}, 104 {name: 'dir', expectedNull: ''},
105 {name: 'innerText', expectedNull: ''}, 105 {name: 'innerText', expectedNull: ''},
106 {name: 'outerText', expectedNull: 'exception'}, 106 {name: 'outerText', expectedNull: 'exception'},
107 {name: 'contentEditable', expectedNull: 'exception'} 107 {name: 'contentEditable', expectedNull: 'exception'}
108 ] 108 ]
109 }, 109 },
110 { 110 {
111 type: 'HTMLAnchorElement', 111 type: 'HTMLAnchorElement',
112 elementToUse: document.createElement('a'), 112 elementToUse: document.createElement('a'),
113 attributes: [ 113 attributes: [
114 {name: 'charset', expectedNull: 'null'}, 114 {name: 'charset', expectedNull: 'null'},
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 printOut(''); 716 printOut('');
717 } 717 }
718 } 718 }
719 </script> 719 </script>
720 </head> 720 </head>
721 <body onload="runTests()"> 721 <body onload="runTests()">
722 <p>This test setting various attributes of a elements to JavaScript null.</p > 722 <p>This test setting various attributes of a elements to JavaScript null.</p >
723 <div id="console"></div> 723 <div id="console"></div>
724 </body> 724 </body>
725 </html> 725 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/document-dir-property-expected.txt ('k') | LayoutTests/fast/dom/element-attribute-js-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698