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

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

Issue 1707473002: Remove document.defaultCharset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 htmlDoc.body = htmlDoc.createElement('body'); 62 htmlDoc.body = htmlDoc.createElement('body');
63 63
64 var listing = [ 64 var listing = [
65 { 65 {
66 typeName: 'Document', 66 typeName: 'Document',
67 docToUse: xmlDoc, 67 docToUse: xmlDoc,
68 attributes: [ 68 attributes: [
69 {name: 'xmlVersion', expectedExceptionCode: 9}, 69 {name: 'xmlVersion', expectedExceptionCode: 9},
70 {name: 'documentURI', expectedNull: null}, 70 {name: 'documentURI', expectedNull: null},
71 {name: 'charset', expectedNull: 'UTF-8'}, 71 {name: 'charset', expectedNull: 'UTF-8'},
72 {name: 'defaultCharset', expectedNull: undefined},
73 {name: 'characterSet', expectedNull: 'UTF-8'}, 72 {name: 'characterSet', expectedNull: 'UTF-8'},
74 {name: 'inputEncoding', expectedNull: 'UTF-8'}, 73 {name: 'inputEncoding', expectedNull: 'UTF-8'},
75 {name: 'selectedStylesheetSet', expectedNull: null} 74 {name: 'selectedStylesheetSet', expectedNull: null}
76 ] 75 ]
77 }, 76 },
78 { 77 {
79 typeName: 'HTMLDocument', 78 typeName: 'HTMLDocument',
80 docToUse: htmlDoc, 79 docToUse: htmlDoc,
81 attributes: [ 80 attributes: [
82 {name: 'title', expectedNull: 'null'}, 81 {name: 'title', expectedNull: 'null'},
(...skipping 19 matching lines...) Expand all
102 printOut(''); 101 printOut('');
103 } 102 }
104 } 103 }
105 </script> 104 </script>
106 </head> 105 </head>
107 <body onload="runTests()"> 106 <body onload="runTests()">
108 <p>This test setting various attributes of documents to JavaScript null.</p> 107 <p>This test setting various attributes of documents to JavaScript null.</p>
109 <div id="console"></div> 108 <div id="console"></div>
110 </body> 109 </body>
111 </html> 110 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698