OLD | NEW |
1 var xhrBlobTestUrl = '/xmlhttprequest/resources/access-control-allow-lists.php'; | 1 var xhrBlobTestUrl = '/xmlhttprequest/resources/access-control-allow-lists.php'; |
2 | 2 |
3 var xhrBlobTestCases = [{ | 3 var xhrBlobTestCases = [{ |
4 mime: 'text/plain;charset=utf-8', | 4 mime: 'text/plain;charset=utf-8', |
5 expectedMime: 'text/plain;charset=utf-8' | 5 expectedMime: 'text/plain;charset=utf-8' |
6 }, { | 6 }, { |
7 mime: 'Invalid/Type\r\n;charset=koi8-r', | 7 mime: 'Invalid/Type\r\n;charset=koi8-r', |
8 expectedMime: '' | 8 expectedMime: '' |
9 }, { | 9 }, { |
10 mime: 'ASCII/CR\r;charset=invalid', | 10 mime: 'ASCII/CR\r;charset=invalid', |
(...skipping 27 matching lines...) Expand all Loading... |
38 mime: 'text/plain;charset=utf-8', | 38 mime: 'text/plain;charset=utf-8', |
39 expectedMime: 'text/plain;charset=utf-8', | 39 expectedMime: 'text/plain;charset=utf-8', |
40 shouldThrow: true, | 40 shouldThrow: true, |
41 url: 'http://localhost:8000', | 41 url: 'http://localhost:8000', |
42 allowOrigin: '' | 42 allowOrigin: '' |
43 }, { | 43 }, { |
44 mime: 'text/plain;charset=utf-8', | 44 mime: 'text/plain;charset=utf-8', |
45 expectedMime: 'text/plain;charset=utf-8', | 45 expectedMime: 'text/plain;charset=utf-8', |
46 url: 'http://localhost:8000', | 46 url: 'http://localhost:8000', |
47 allowOrigin: '?origin=http://127.0.0.1:8000' | 47 allowOrigin: '?origin=http://127.0.0.1:8000' |
48 }]; | 48 }, { |
| 49 mime: 'text/plain;charset=utf-8', |
| 50 expectedMime: 'text/plain;charset=utf-8', |
| 51 file: 'hello.txt' |
| 52 }, { |
| 53 mime: 'ASCII/CR\r;charset=invalid', |
| 54 expectedMime: '', |
| 55 file: 'hello.txt' |
| 56 }, { |
| 57 mime: '', |
| 58 expectedMime: '', |
| 59 file: 'hello.txt' |
| 60 }, { |
| 61 mime: 'multipart/mixed;boundary="--blob-boundary"', |
| 62 expectedMime: 'multipart/mixed;boundary="--blob-boundary"', |
| 63 file: 'hello.txt' |
| 64 }, { |
| 65 mime: '\u0422\u0435\u0441\u0442', |
| 66 expectedMime: '', |
| 67 shouldThrow: true, |
| 68 file: 'hello.txt' |
| 69 }]; |
OLD | NEW |