From ab689a61847be2ac3b7cfc8463b846b1448ccdee Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 3 Oct 2019 18:08:44 +0000 Subject: [PATCH] Bug 1503216 [wpt PR 13779] - XMLHttpRequest: manipulate Content-Type less, a=testonly Automatic update from web-platform-testsXMLHttpRequest: manipulate Content-Type less For https://github.com/whatwg/xhr/pull/224 and in particular https://github.com/whatwg/mimesniff/issues/84. This supersedes and closes #13544. -- wpt-commits: 99f4fdcd906411c036e96c055e28b3e6ca84a1cc wpt-pr: 13779 UltraBlame original commit: f5b3c921363e751e6ad363970bd7727701d59525 --- .../tests/xhr/send-content-type-charset.htm | 264 ++++++------------ 1 file changed, 85 insertions(+), 179 deletions(-) diff --git a/testing/web-platform/tests/xhr/send-content-type-charset.htm b/testing/web-platform/tests/xhr/send-content-type-charset.htm index b409e98f9c383..621d6a11404d9 100644 --- a/testing/web-platform/tests/xhr/send-content-type-charset.htm +++ b/testing/web-platform/tests/xhr/send-content-type-charset.htm @@ -63,168 +63,6 @@ script > < -link -rel -= -" -help -" -href -= -" -https -: -/ -/ -xhr -. -spec -. -whatwg -. -org -/ -# -the -- -send -( -) -- -method -" -data -- -tested -- -assertations -= -" -following -: -: -ol -[ -1 -] -/ -li -[ -4 -] -/ -p -/ -code -[ -contains -( -text -( -) -' -Content -- -Type -' -) -] -/ -. -. -following -: -: -ol -[ -1 -] -/ -li -[ -4 -] -/ -p -/ -code -[ -contains -( -text -( -) -' -Content -- -Type -' -) -] -/ -. -. -/ -following -- -sibling -: -: -p -" -/ -> -< -link -rel -= -" -help -" -href -= -" -https -: -/ -/ -xhr -. -spec -. -whatwg -. -org -/ -# -dom -- -XMLHttpRequest -- -send -- -a -- -string -" -data -- -tested -- -assertations -= -" -following -: -: -p -[ -2 -] -" -/ -> -< / head > @@ -472,18 +310,29 @@ ; charset = -UTF +utf - 8 " " -Correct -text -/ -plain -MIME -with +If charset += +param +is +UTF +- +8 +( +case +- +insensitive +) +it +should +not +be +changed " ) request @@ -661,20 +510,34 @@ ; charset = -UTF +utf - 8 +; +charset += +waddup " " +If charset -given -but -wrong -fix += +param +is +UTF +- +8 +( +case +- +insensitive +) it +should +not +be +changed ( -known -MIME bogus charset ) @@ -763,6 +626,11 @@ " " Multiple +non +- +UTF +- +8 charset parameters deduplicate @@ -816,7 +684,7 @@ ; charset = -UTF +utf - 8 " @@ -824,6 +692,14 @@ charset with space +that +is +UTF +- +8 +does +not +change " ) request @@ -850,15 +726,27 @@ ; charset = -UTF +\ +" +utf - 8 +\ +" " " charset in double quotes +that +is +UTF +- +8 +does +not +change " ) request @@ -928,9 +816,19 @@ ; charset = -UTF +\ +" +u +\ +\ +t +\ +\ +f - 8 +\ +" " " charset @@ -939,6 +837,14 @@ quotes with backslashes +that +is +UTF +- +8 +does +not +change " ) request