Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-tests.js

Issue 57483002: Implement File constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed most feedback. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698