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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02.js

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: Updated as per philipj suggestions 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.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright © 2001-2004 World Wide Web Consortium, 2 Copyright © 2001-2004 World Wide Web Consortium,
3 (Massachusetts Institute of Technology, European Research Consortium 3 (Massachusetts Institute of Technology, European Research Consortium
4 for Informatics and Mathematics, Keio University). All 4 for Informatics and Mathematics, Keio University). All
5 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the 5 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the
6 hope that it will be useful, but WITHOUT ANY WARRANTY; without even 6 hope that it will be useful, but WITHOUT ANY WARRANTY; without even
7 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 7 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8 8
9 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 9 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
10 */ 10 */
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 var docElem; 88 var docElem;
89 var rootNS; 89 var rootNS;
90 var rootName; 90 var rootName;
91 91
92 var docRef = null; 92 var docRef = null;
93 if (typeof(this.doc) != 'undefined') { 93 if (typeof(this.doc) != 'undefined') {
94 docRef = this.doc; 94 docRef = this.doc;
95 } 95 }
96 doc = load(docRef, "doc", "barfoo"); 96 doc = load(docRef, "doc", "barfoo");
97 domImpl = doc.implementation; 97 domImpl = doc.implementation;
98 docElem = doc.documentElement; 98 docElem = doc.documentElement;
99 99
100 rootNS = docElem.namespaceURI; 100 rootNS = docElem.namespaceURI;
101 101
102 rootName = docElem.tagName; 102 rootName = docElem.tagName;
103 103
104 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); 104 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
105 encodingName = newDoc.inputEncoding; 105 encodingName = newDoc.inputEncoding;
106 106
107 assertNull("documentgetinputencoding02",encodingName); 107 assertEquals("documentgetinputencoding02", "UTF-8", encodingName);
108
109 } 108 }
110 109
111 function runTest() { 110 function runTest() {
112 documentgetinputencoding02(); 111 documentgetinputencoding02();
113 } 112 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-attribute-js-null.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698