| 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 13 matching lines...) Expand all Loading... |
| 24 }, { | 24 }, { |
| 25 mime: 'multipart/mixed;boundary="--blob-boundary', | 25 mime: 'multipart/mixed;boundary="--blob-boundary', |
| 26 expectedMime: '' | 26 expectedMime: '' |
| 27 }, { | 27 }, { |
| 28 mime: 'multipart/mixed;boundary="--blob-boundary"', | 28 mime: 'multipart/mixed;boundary="--blob-boundary"', |
| 29 expectedMime: 'multipart/mixed;boundary="--blob-boundary"' | 29 expectedMime: 'multipart/mixed;boundary="--blob-boundary"' |
| 30 }, { | 30 }, { |
| 31 mime: '', | 31 mime: '', |
| 32 expectedMime: '' | 32 expectedMime: '' |
| 33 }, { | 33 }, { |
| 34 mime: '', |
| 35 expectedMime: '', |
| 36 closeBeforeSend: true |
| 37 }, { |
| 34 mime: '\u0422\u0435\u0441\u0442', | 38 mime: '\u0422\u0435\u0441\u0442', |
| 35 expectedMime: '', | 39 expectedMime: '', |
| 36 shouldThrow: true | 40 shouldThrow: true |
| 37 }, { | 41 }, { |
| 38 mime: 'text/plain;charset=utf-8', | 42 mime: 'text/plain;charset=utf-8', |
| 39 expectedMime: 'text/plain;charset=utf-8', | 43 expectedMime: 'text/plain;charset=utf-8', |
| 40 shouldThrow: true, | 44 shouldThrow: true, |
| 41 url: 'http://localhost:8000', | 45 url: 'http://localhost:8000', |
| 42 allowOrigin: '' | 46 allowOrigin: '' |
| 43 }, { | 47 }, { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 59 file: 'hello.txt' | 63 file: 'hello.txt' |
| 60 }, { | 64 }, { |
| 61 mime: 'multipart/mixed;boundary="--blob-boundary"', | 65 mime: 'multipart/mixed;boundary="--blob-boundary"', |
| 62 expectedMime: 'multipart/mixed;boundary="--blob-boundary"', | 66 expectedMime: 'multipart/mixed;boundary="--blob-boundary"', |
| 63 file: 'hello.txt' | 67 file: 'hello.txt' |
| 64 }, { | 68 }, { |
| 65 mime: '\u0422\u0435\u0441\u0442', | 69 mime: '\u0422\u0435\u0441\u0442', |
| 66 expectedMime: '', | 70 expectedMime: '', |
| 67 shouldThrow: true, | 71 shouldThrow: true, |
| 68 file: 'hello.txt' | 72 file: 'hello.txt' |
| 73 }, { |
| 74 mime: '', |
| 75 expectedMime: '', |
| 76 file: 'hello.txt', |
| 77 closeBeforeSend: true |
| 69 }]; | 78 }]; |
| OLD | NEW |