Skip to content

Commit

Permalink
XMLHttpRequest: overrideMimeType and workers
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Nov 1, 2018
1 parent d77d556 commit 0468155
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 27 deletions.
12 changes: 12 additions & 0 deletions xhr/overridemimetype-unsent-state-force-shiftjis.any.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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");
27 changes: 0 additions & 27 deletions xhr/overridemimetype-unsent-state-force-shiftjis.htm

This file was deleted.

0 comments on commit 0468155

Please sign in to comment.