Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

async_test(t => {
const client = new XMLHttpRequest();
client.overrideMimeType('text/plain;charset=Shift-JIS');
client.onreadystatechange = t.step_func(() => {
if (client.readyState === 4) {
assert_equals( client.responseText, 'ใƒ†ใ‚นใƒˆ' );
t.done();
}
});
client.open("GET", "resources/status.py?type="+encodeURIComponent('text/html;charset=iso-8859-1')+'&content=%83%65%83%58%83%67');
client.send( '' );
}, "XMLHttpRequest: overrideMimeType() in unsent state, enforcing Shift-JIS encoding");