blob: 6a3029e1d31c374ab8138335cc49a8df5c38cad2 [file] [log] [blame]
This is a testharness.js-based test.
FAIL header with invalid MIME type is not changed assert_equals: expected "text; charset=ascii" but got "text; charset=UTF-8"
PASS known charset but bogus header - missing MIME type
PASS bogus charset and bogus header - missing MIME type
FAIL Correct text/plain MIME with charset assert_equals: expected "text/plain;charset=utf-8" but got "text/plain;charset=UTF-8"
PASS If no charset= param is given, implementation should not add one - unknown MIME
PASS If no charset= param is given, implementation should not add one - known MIME
FAIL charset given but wrong, fix it (unknown MIME, bogus charset) assert_equals: expected "text/x-thepiano;charset=UTF-8" but got "text/x-thepiano;charset= UTF-8"
FAIL charset given but wrong, fix it (known MIME, bogus charset) assert_equals: expected "text/plain;charset=utf-8;charset=UTF-8" but got "text/plain;charset=UTF-8;charset=UTF-8"
PASS charset given but wrong, fix it (known MIME, actual charset)
PASS If multiple charset parameters are given, all should be rewritten
PASS No content type set, give MIME and charset
Harness: the test ran to completion.