summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/url/resources/percent-encoding.json
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/url/resources/percent-encoding.json')
-rw-r--r--testing/web-platform/tests/url/resources/percent-encoding.json56
1 files changed, 56 insertions, 0 deletions
diff --git a/testing/web-platform/tests/url/resources/percent-encoding.json b/testing/web-platform/tests/url/resources/percent-encoding.json
new file mode 100644
index 0000000000..bd81edbdc3
--- /dev/null
+++ b/testing/web-platform/tests/url/resources/percent-encoding.json
@@ -0,0 +1,56 @@
+[
+ "Tests for percent-encoding.",
+ {
+ "input": "\u2020",
+ "output": {
+ "big5": "%26%238224%3B",
+ "euc-kr": "%A2%D3",
+ "utf-8": "%E2%80%A0",
+ "windows-1252": "%86"
+ }
+ },
+ "This uses a trailing A to prevent the URL parser from trimming the C0 control.",
+ {
+ "input": "\u000EA",
+ "output": {
+ "big5": "%0EA",
+ "iso-2022-jp": "%26%2365533%3BA",
+ "utf-8": "%0EA"
+ }
+ },
+ {
+ "input": "\u203E\u005C",
+ "output": {
+ "iso-2022-jp": "%1B(J~%1B(B\\",
+ "utf-8": "%E2%80%BE\\"
+ }
+ },
+ {
+ "input": "\uE5E5",
+ "output": {
+ "gb18030": "%26%2358853%3B",
+ "utf-8": "%EE%97%A5"
+ }
+ },
+ {
+ "input": "\u2212",
+ "output": {
+ "shift_jis": "%81|",
+ "utf-8": "%E2%88%92"
+ }
+ },
+ {
+ "input": "รก|",
+ "output": {
+ "utf-8": "%C3%A1|"
+ }
+ },
+ "Surrogate!",
+ {
+ "input": "\ud800",
+ "output": {
+ "utf-8": "%EF%BF%BD",
+ "windows-1252": "%26%2365533%3B"
+ }
+ }
+]