GeezerVison is showing github.com — test: add upstream test cases to encoding · nodejs/node@0aba122
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: test/fixtures/wpt/README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ See [test/wpt](../../wpt/README.md) for information on how these tests are run. | 11 | 11 | Last update: | 12 | 12 |
| 13 | 13 | - console: https://github.com/web-platform-tests/wpt/tree/9786a4b131/console | 14 | | -- encoding: https://github.com/web-platform-tests/wpt/tree/d7f9e16c9a/encoding | | 14 | +- encoding: https://github.com/web-platform-tests/wpt/tree/1821fb5f77/encoding | 15 | 15 | - url: https://github.com/web-platform-tests/wpt/tree/418f7fabeb/url | 16 | 16 | - resources: https://github.com/web-platform-tests/wpt/tree/e1fddfbf80/resources | 17 | 17 | - interfaces: https://github.com/web-platform-tests/wpt/tree/8ada332aea/interfaces | |
Collapse file Copy file name to clipboardExpand all lines: test/fixtures/wpt/encoding/iso-2022-jp-encoder.html +11-3Lines changed: 11 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | }, "iso-2022-jp encoder: " + desc) | 13 | 13 | } | 14 | 14 |
| 15 | | - encode("s", "s", "very basic") | 16 | | - encode("\u00A5\u203Es\\\uFF90\u4F69", "%1B(J\\~s%1B(B\\%1B$B%_PP%1B(B", "basics") | 17 | | - encode("\x0E\x0F\x1Bx", "%0E%0F%1Bx", "SO/SI ESC") | | 15 | + encode("s", "s", "very basic"); | | 16 | + encode("\u00A5\u203Es\\\uFF90\u4F69", "%1B(J\\~s%1B(B\\%1B$B%_PP%1B(B", "basics"); | | 17 | + encode("\uFF61", "%1B$B!%23%1B(B", "Katakana"); | | 18 | + encode("\u0393", "%1B$B&%23%1B(B", "jis0208"); | | 19 | + encode("\x0E\x0F\x1Bx", "%26%2365533%3B%26%2365533%3B%26%2365533%3Bx", "SO/SI ESC"); | | 20 | + encode("\u203E\x0E\x0F\x1Bx", "%1B(J~%26%2365533%3B%26%2365533%3B%26%2365533%3Bx%1B(B", "Roman SO/SI ESC"); | | 21 | + encode("\uFF61\x0E\x0F\x1Bx", "%1B$B!%23%1B(B%26%2365533%3B%26%2365533%3B%26%2365533%3Bx", "Katakana SO/SI ESC"); | | 22 | + encode("\u0393\x0E\x0F\x1Bx", "%1B$B&%23%1B(B%26%2365533%3B%26%2365533%3B%26%2365533%3Bx", "jis0208 SO/SI ESC"); | 18 | 23 | encode("\uFFFD", "%26%2365533%3B", "U+FFFD"); | | 24 | + encode("\u203E\uFFFD", "%1B(J~%26%2365533%3B%1B(B", "Roman U+FFFD"); | | 25 | + encode("\uFF61\uFFFD", "%1B$B!%23%1B(B%26%2365533%3B", "Katakana U+FFFD"); | | 26 | + encode("\u0393\uFFFD", "%1B$B&%23%1B(B%26%2365533%3B", "jis0208 U+FFFD"); | 19 | 27 | </script> |
Collapse file Copy file name to clipboardExpand all lines: test/fixtures/wpt/encoding/streams/decode-non-utf8.any.js +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,6 +25,12 @@ const encodings = [ | 25 | 25 | expected: "\u{6c34}", | 26 | 26 | invalid: [255] | 27 | 27 | }, | | 28 | + { | | 29 | + name: 'ISO-2022-JP', | | 30 | + value: [65, 66, 67, 0x1B, 65, 66, 67], | | 31 | + expected: "ABC\u{fffd}ABC", | | 32 | + invalid: [0x0E] | | 33 | + }, | 28 | 34 | { | 29 | 35 | name: 'ISO-8859-14', | 30 | 36 | value: [100, 240, 114], | |
Collapse file Copy file name to clipboardExpand all lines: test/fixtures/wpt/versions.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | "path": "console" | 5 | 5 | }, | 6 | 6 | "encoding": { | 7 | | - "commit": "d7f9e16c9a9d578a05b59787ba4de68b710de725", | | 7 | + "commit": "1821fb5f77723b5361058c6a8ed0b71f9d2d6b8d", | 8 | 8 | "path": "encoding" | 9 | 9 | }, | 10 | 10 | "url": { | |
|