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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.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/api-surrogates-utf8.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html b/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html
index caa185943c7ebd51c8706278290bcbc46f9644b2..ef0ad4075c8397ef8f2ca33a911a3b1c463abf8c 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/encoding/api-surrogates-utf8.html
@@ -45,7 +45,7 @@ var badStrings = [
badStrings.forEach(function(t) {
test(function() {
- var encoded = new TextEncoder('utf-8').encode(t.input);
+ var encoded = new TextEncoder().encode(t.input);
assert_array_equals([].slice.call(encoded), t.expected);
assert_equals(new TextDecoder('utf-8').decode(encoded), t.decoded);
}, 'Invalid surrogates encoded into UTF-8: ' + t.name);

Powered by Google App Engine
This is Rietveld 408576698