Bug 1450945 [wpt PR 10279] - New MIME type parsing tests, a=testonly
authorAnne van Kesteren <annevk@annevk.nl>
Mon, 09 Apr 2018 22:05:24 +0000
changeset 413738 c35053a6372f9c1c7ef2ccf31adce23c5b4733d3
parent 413737 366210378fc547535f3dd9fe7add2e1a8c70541a
child 413739 6e1d4eb09d668dd466dfa880b85adf210e2ad7d7
push id33850
push userapavel@mozilla.com
push dateMon, 16 Apr 2018 09:53:48 +0000
treeherdermozilla-central@6276ec7ebbf3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1450945, 10279
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1450945 [wpt PR 10279] - New MIME type parsing tests, a=testonly Automatic update from web-platform-testsNew MIME type parsing tests Tests suggested at https://github.com/w3c/web-platform-tests/issues/1851#issuecomment-378032606. Co-Authored-By: Matt Menke <mmenke@google.com> wpt-commits: ef7fe9a35d808528f92f29b70e4b7ee273c75c85 wpt-pr: 10279 wpt-commits: ef7fe9a35d808528f92f29b70e4b7ee273c75c85 wpt-pr: 10279
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/mimesniff/mime-types/resources/mime-types.json
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -576013,17 +576013,17 @@
    "1a3357e9bd14bc90cfa45f6844a270b7b3b93db4",
    "support"
   ],
   "mimesniff/mime-types/resources/mime-charset.py": [
    "635c7dd3564ddec8c7a18c9eb1dae4c01cab75c4",
    "support"
   ],
   "mimesniff/mime-types/resources/mime-types.json": [
-   "e036eb74e27d8f35c411bb4d29d0b0621778e882",
+   "9271134541b22f4af44b6d179606c7a6cb8f3227",
    "support"
   ],
   "mixed-content/OWNERS": [
    "167112f19752c9c180831820b6e348427606b63b",
    "support"
   ],
   "mixed-content/audio-tag/http-csp/cross-origin-http/top-level/keep-scheme-redirect/optionally-blockable/opt-in-blocks.https.html": [
    "9219890ab0efa31e4f2db0646e12882da3a5443d",
--- a/testing/web-platform/tests/mimesniff/mime-types/resources/mime-types.json
+++ b/testing/web-platform/tests/mimesniff/mime-types/resources/mime-types.json
@@ -27,16 +27,22 @@
   },
   "Duplicate parameter",
   {
     "input": "text/html;charset=gbk;charset=windows-1255",
     "output": "text/html;charset=gbk",
     "navigable": true,
     "encoding": "GBK"
   },
+  {
+    "input": "text/html;charset=();charset=GBK",
+    "output": "text/html;charset=\"()\"",
+    "navigable": true,
+    "encoding": null
+  },
   "Spaces",
   {
     "input": "text/html;charset =gbk",
     "output": "text/html",
     "navigable": true,
     "encoding": null
   },
   {
@@ -52,16 +58,22 @@
     "encoding": "GBK"
   },
   {
     "input": "text/html;charset= gbk",
     "output": "text/html;charset=\" gbk\"",
     "navigable": true,
     "encoding": "GBK"
   },
+  {
+    "input": "text/html;charset= \"gbk\"",
+    "output": "text/html;charset=\" \\\"gbk\\\"\"",
+    "navigable": true,
+    "encoding": null
+  },
   "Single quotes are a token, not a delimiter",
   {
     "input": "text/html;charset='gbk'",
     "output": "text/html;charset='gbk'",
     "navigable": true,
     "encoding": null
   },
   {
@@ -71,16 +83,22 @@
     "encoding": null
   },
   {
     "input": "text/html;charset=gbk'",
     "output": "text/html;charset=gbk'",
     "navigable": true,
     "encoding": null
   },
+  {
+    "input": "text/html;charset=';charset=GBK",
+    "output": "text/html;charset='",
+    "navigable": true,
+    "encoding": null
+  },
   "Invalid parameters",
   {
     "input": "text/html;test;charset=gbk",
     "output": "text/html;charset=gbk",
     "navigable": true,
     "encoding": "GBK"
   },
   {
@@ -108,16 +126,28 @@
     "encoding": "GBK"
   },
   {
     "input": "text/html;;;;charset=gbk",
     "output": "text/html;charset=gbk",
     "navigable": true,
     "encoding": "GBK"
   },
+  {
+    "input": "text/html;charset= \"\u007F;charset=GBK",
+    "output": "text/html;charset=GBK",
+    "navigable": true,
+    "encoding": "GBK"
+  },
+  {
+    "input": "text/html;charset=\"\u007F;charset=foo\";charset=GBK",
+    "output": "text/html;charset=GBK",
+    "navigable": true,
+    "encoding": "GBK"
+  },
   "Double quotes",
   {
     "input": "text/html;charset=\"gbk\"",
     "output": "text/html;charset=gbk",
     "navigable": true,
     "encoding": "GBK"
   },
   {
@@ -134,16 +164,22 @@
   },
   {
     "input": "text/html;charset=\" gbk\"",
     "output": "text/html;charset=\" gbk\"",
     "navigable": true,
     "encoding": "GBK"
   },
   {
+    "input": "text/html;charset=\"gbk \"",
+    "output": "text/html;charset=\"gbk \"",
+    "navigable": true,
+    "encoding": "GBK"
+  },
+  {
     "input": "text/html;charset=\"\\ gbk\"",
     "output": "text/html;charset=\" gbk\"",
     "navigable": true,
     "encoding": "GBK"
   },
   {
     "input": "text/html;charset=\"\\g\\b\\k\"",
     "output": "text/html;charset=gbk",
@@ -151,16 +187,28 @@
     "encoding": "GBK"
   },
   {
     "input": "text/html;charset=\"gbk\"x",
     "output": "text/html;charset=gbk",
     "navigable": true,
     "encoding": "GBK"
   },
+  {
+    "input": "text/html;charset=\"\";charset=GBK",
+    "output": "text/html;charset=GBK",
+    "navigable": true,
+    "encoding": "GBK"
+  },
+  {
+    "input": "text/html;charset=\";charset=GBK",
+    "output": "text/html;charset=\";charset=GBK\"",
+    "navigable": true,
+    "encoding": null
+  },
   "Unexpected code points",
   {
     "input": "text/html;charset={gbk}",
     "output": "text/html;charset=\"{gbk}\"",
     "navigable": true,
     "encoding": null
   },
   "Parameter name longer than 127",