| 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>
|
|
|