Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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); |
|
philipj_slow
2015/06/23 08:32:57
I think that this should simply be |assertEquals("
Habib Virji
2015/06/23 13:58:09
Done.
| |
| 108 assertEquals("documentgetinputencoding02", "utf8", encodingName); | |
| 109 assertEquals("documentgetinputencoding02", "unicode-1-1-utf-8", encodingNa me); | |
| 108 | 110 |
| 109 } | 111 } |
| 110 | 112 |
| 111 function runTest() { | 113 function runTest() { |
| 112 documentgetinputencoding02(); | 114 documentgetinputencoding02(); |
| 113 } | 115 } |
| OLD | NEW |