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

Side by Side Diff: LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-constructor-expected.txt

Issue 1235213004: Blob/File constructors/slice method shouldn't throw on invalid types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove debugging spew Created 5 years, 5 months 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 | Annotate | Revision Log
OLDNEW
1 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 PASS Blob interface object 2 PASS Blob interface object
3 PASS no-argument Blob constructor 3 PASS no-argument Blob constructor
4 PASS no-argument Blob constructor without 'new' 4 PASS no-argument Blob constructor without 'new'
5 PASS no-argument Blob constructor without brackets 5 PASS no-argument Blob constructor without brackets
6 PASS Passing non-objects, Dates and RegExps for blobParts should throw a TypeErr or. 6 PASS Passing non-objects, Dates and RegExps for blobParts should throw a TypeErr or.
7 FAIL A plain object should be treated as a sequence for the blobParts argument. Failed to construct 'Blob': The 1st argument is neither an array, nor does it ha ve indexed properties. 7 FAIL A plain object should be treated as a sequence for the blobParts argument. Failed to construct 'Blob': The 1st argument is neither an array, nor does it ha ve indexed properties.
8 PASS A plain object with a length property should be treated as a sequence for t he blobParts argument. 8 PASS A plain object with a length property should be treated as a sequence for t he blobParts argument.
9 PASS A String object should be treated as a sequence for the blobParts argument. 9 PASS A String object should be treated as a sequence for the blobParts argument.
10 PASS A Uint8Array object should be treated as a sequence for the blobParts argum ent. 10 PASS A Uint8Array object should be treated as a sequence for the blobParts argum ent.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 PASS Passing object "/regex/" (index 4) for options should use the defaults (wit h newlines). 44 PASS Passing object "/regex/" (index 4) for options should use the defaults (wit h newlines).
45 PASS Passing function "function () {}" (index 5) for options should use the defa ults. 45 PASS Passing function "function () {}" (index 5) for options should use the defa ults.
46 PASS Passing function "function () {}" (index 5) for options should use the defa ults (with newlines). 46 PASS Passing function "function () {}" (index 5) for options should use the defa ults (with newlines).
47 PASS Newlines should not change when endings is 'transparent'. 47 PASS Newlines should not change when endings is 'transparent'.
48 FAIL Newlines should not change when endings is 'native'. assert_equals: expecte d 9 but got 8 48 FAIL Newlines should not change when endings is 'native'. assert_equals: expecte d 9 but got 8
49 PASS Blob with type "" 49 PASS Blob with type ""
50 PASS Blob with type "a" 50 PASS Blob with type "a"
51 PASS Blob with type "A" 51 PASS Blob with type "A"
52 PASS Blob with type "text/html" 52 PASS Blob with type "text/html"
53 PASS Blob with type "TEXT/HTML" 53 PASS Blob with type "TEXT/HTML"
54 FAIL Blob with type "å" Failed to construct 'Blob': The 'type' property must con sist of ASCII characters. 54 PASS Blob with type "å"
55 FAIL Blob with type "𐑾" Failed to construct 'Blob': The 'type' property must con sist of ASCII characters. 55 PASS Blob with type "𐑾"
56 PASS Blob with type " image/gif " 56 PASS Blob with type " image/gif "
57 PASS Blob with type "\timage/gif\t" 57 PASS Blob with type "\timage/gif\t"
58 PASS Blob with type "image/gif;" 58 PASS Blob with type "image/gif;"
59 FAIL Blob with type "İmage/gif" Failed to construct 'Blob': The 'type' property must consist of ASCII characters. 59 PASS Blob with type "İmage/gif"
60 FAIL Blob with type "ımage/gif" Failed to construct 'Blob': The 'type' property must consist of ASCII characters. 60 PASS Blob with type "ımage/gif"
61 PASS Blob with type "image/gif\0" 61 PASS Blob with type "image/gif\0"
62 PASS Blob with type "unknown/unknown" 62 PASS Blob with type "unknown/unknown"
63 PASS Blob with type "text/plain" 63 PASS Blob with type "text/plain"
64 PASS Blob with type "image/png" 64 PASS Blob with type "image/png"
65 Harness: the test ran to completion. 65 Harness: the test ran to completion.
66 66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698