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

Unified 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: Add utf-8, utf8 and unicode-1-1-utf-8 as the return type 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02.js
diff --git a/LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02.js b/LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02.js
index 7e31b6af714b86b4b975608ba6f2d6e32ba02f92..30635da6e089b2c71310e65f134ca5440c052be3 100644
--- a/LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02.js
+++ b/LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02.js
@@ -95,7 +95,7 @@ function documentgetinputencoding02() {
}
doc = load(docRef, "doc", "barfoo");
domImpl = doc.implementation;
-docElem = doc.documentElement;
+ docElem = doc.documentElement;
rootNS = docElem.namespaceURI;
@@ -104,7 +104,9 @@ docElem = doc.documentElement;
newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
encodingName = newDoc.inputEncoding;
- assertNull("documentgetinputencoding02",encodingName);
+ 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.
+ assertEquals("documentgetinputencoding02", "utf8", encodingName);
+ assertEquals("documentgetinputencoding02", "unicode-1-1-utf-8", encodingName);
}
« no previous file with comments | « no previous file | LayoutTests/dom/xhtml/level3/core/documentgetinputencoding02-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698