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

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

Issue 1180793002: Document attribute charset and its aliases to return UTF-8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 var htmlDoc = document.implementation.createHTMLDocument('A Title'); 59 var htmlDoc = document.implementation.createHTMLDocument('A Title');
60 htmlDoc.body = htmlDoc.createElement('body'); 60 htmlDoc.body = htmlDoc.createElement('body');
61 61
62 var listing = [ 62 var listing = [
63 { 63 {
64 typeName: 'Document', 64 typeName: 'Document',
65 docToUse: xmlDoc, 65 docToUse: xmlDoc,
66 attributes: [ 66 attributes: [
67 {name: 'xmlVersion', expectedExceptionCode: 9}, 67 {name: 'xmlVersion', expectedExceptionCode: 9},
68 {name: 'documentURI', expectedNull: null}, 68 {name: 'documentURI', expectedNull: null},
69 {name: 'charset', expectedNull: undefined}, 69 {name: 'charset', expectedNull: ''},
philipj_slow 2015/06/11 11:42:54 Can you also add characterSet, inputEncoding and d
Habib Virji 2015/06/12 16:46:30 Done.
70 {name: 'selectedStylesheetSet', expectedNull: null} 70 {name: 'selectedStylesheetSet', expectedNull: null}
71 ] 71 ]
72 }, 72 },
73 { 73 {
74 typeName: 'HTMLDocument', 74 typeName: 'HTMLDocument',
75 docToUse: htmlDoc, 75 docToUse: htmlDoc,
76 attributes: [ 76 attributes: [
77 {name: 'title', expectedNull: ''}, 77 {name: 'title', expectedNull: ''},
78 {name: 'cookie', expectedNull: ''}, 78 {name: 'cookie', expectedNull: ''},
79 {name: 'bgColor', expectedNull: ''}, 79 {name: 'bgColor', expectedNull: ''},
(...skipping 17 matching lines...) Expand all
97 printOut(''); 97 printOut('');
98 } 98 }
99 } 99 }
100 </script> 100 </script>
101 </head> 101 </head>
102 <body onload="runTests()"> 102 <body onload="runTests()">
103 <p>This test setting various attributes of documents to JavaScript null.</p> 103 <p>This test setting various attributes of documents to JavaScript null.</p>
104 <div id="console"></div> 104 <div id="console"></div>
105 </body> 105 </body>
106 </html> 106 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-attribute-js-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698