Closed Bug 1450945 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 10279 - New MIME type parsing tests

Categories

(Testing :: web-platform-tests, enhancement, P4)

enhancement

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 10279 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/w3c/web-platform-tests/pull/10279
Details from upstream follow.

Anne van Kesteren <annevk@annevk.nl> wrote:
>  New 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>
>  
>  I didn't add these for now:
>  
>  > text/html;charset=" gbk"
>  
>  Already tested.
>  
>  > text/html;charset= ";charset=GBK
>  
>  I didn't see why this would end up as GBK. We'd have `" \""` as charset parameter value and that would simply not result in an encoding. Why would we consult the second parameter?
>  
>  > text/html;charset=";charset=GBK";charset=GBK
>  
>  Semi-colons are allowed, so this would not parse as GBK.
Ran 3 tests and 3773 subtests
OK     : 3
PASS   : 1314
FAIL   : 2459

New tests that have failures or other problems:
/mimesniff/mime-types/charset-parameter.window.html
    text/html;charset= "gbk": FAIL
    text/html;charset=';charset=GBK: FAIL
/mimesniff/mime-types/parsing.any.html
    text/html;charset= "gbk" (Blob/File): FAIL
    text/html;charset= "gbk" (Request/Response): FAIL
    text/html;charset="";charset=GBK (Blob/File): FAIL
    text/html;charset="";charset=GBK (Request/Response): FAIL
    text/html;charset=";charset=GBK (Blob/File): FAIL
    text/html;charset=";charset=GBK (Request/Response): FAIL
    text/html;charset=';charset=GBK (Blob/File): FAIL
    text/html;charset=';charset=GBK (Request/Response): FAIL
    text/html;charset=();charset=GBK (Blob/File): FAIL
    text/html;charset=();charset=GBK (Request/Response): FAIL
/mimesniff/mime-types/parsing.any.worker.html
    text/html;charset= "gbk" (Blob/File): FAIL
    text/html;charset= "gbk" (Request/Response): FAIL
    text/html;charset="";charset=GBK (Blob/File): FAIL
    text/html;charset="";charset=GBK (Request/Response): FAIL
    text/html;charset=";charset=GBK (Blob/File): FAIL
    text/html;charset=";charset=GBK (Request/Response): FAIL
    text/html;charset=';charset=GBK (Blob/File): FAIL
    text/html;charset=';charset=GBK (Request/Response): FAIL
    text/html;charset=();charset=GBK (Blob/File): FAIL
    text/html;charset=();charset=GBK (Request/Response): FAIL
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c35053a6372f
[wpt PR 10279] - New MIME type parsing tests, a=testonly
https://hg.mozilla.org/mozilla-central/rev/c35053a6372f
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.