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