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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html

Issue 2086283003: Update web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into wpt_import Created 4 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
Index: third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html
index d1f92eab33ee2ef1c84a49a11a8ba63e6a8ff945..46407528f70c75e7f911b4ff180a372007918122 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/encoding/textencoder-utf16-surrogates.html
@@ -37,18 +37,16 @@ var bad = [
}
];
-var encoding = 'utf-8';
-
bad.forEach(function(t) {
test(function() {
- var encoded = new TextEncoder(encoding).encode(t.input);
- var decoded = new TextDecoder(encoding).decode(encoded);
+ var encoded = new TextEncoder().encode(t.input);
+ var decoded = new TextDecoder().decode(encoded);
assert_equals(decoded, t.expected);
}, 'USVString handling: ' + t.name);
});
test(function() {
- assert_equals(new TextEncoder(encoding).encode().length, 0, 'Should default to empty string');
+ assert_equals(new TextEncoder().encode().length, 0, 'Should default to empty string');
}, 'USVString default');
</script>

Powered by Google App Engine
This is Rietveld 408576698