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

Side by Side Diff: LayoutTests/fast/files/blob-parts-slice-test-expected.txt

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
(Empty)
1 Test the Blob.slice() behavior for Blobs made of multiple parts.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Blob .slice(2, 3)
7 PASS blobContents is "2"
8 File .slice(2, 3)
9 PASS fileContents is "2"
10 Blob .slice(2, 12)
11 PASS blobContents is "23456789"
12 File .slice(2, 12)
13 PASS fileContents is "23456789"
14 Blob .slice(2, 2)
15 PASS blobContents is ""
16 File .slice(2, 2)
17 PASS fileContents is ""
18 Blob .slice(2, 1)
19 PASS blobContents is ""
20 File .slice(2, 1)
21 PASS fileContents is ""
22 Blob .slice(2, -12)
23 PASS blobContents is ""
24 File .slice(2, -12)
25 PASS fileContents is ""
26 Blob .slice(2, 2147483647)
27 PASS blobContents is "23456789"
28 File .slice(2, 2147483647)
29 PASS fileContents is "23456789"
30 Blob .slice(2, -2147483648)
31 PASS blobContents is ""
32 File .slice(2, -2147483648)
33 PASS fileContents is ""
34 Blob .slice(2, 9223372036854775000)
35 PASS blobContents is "23456789"
36 File .slice(2, 9223372036854775000)
37 PASS fileContents is "23456789"
38 Blob .slice(2, -9223372036854775000)
39 PASS blobContents is ""
40 File .slice(2, -9223372036854775000)
41 PASS fileContents is ""
42 Blob .slice(-2, -1)
43 PASS blobContents is "8"
44 File .slice(-2, -1)
45 PASS fileContents is "8"
46 Blob .slice(-2, -2)
47 PASS blobContents is ""
48 File .slice(-2, -2)
49 PASS fileContents is ""
50 Blob .slice(-2, -3)
51 PASS blobContents is ""
52 File .slice(-2, -3)
53 PASS fileContents is ""
54 Blob .slice(-2, -12)
55 PASS blobContents is ""
56 File .slice(-2, -12)
57 PASS fileContents is ""
58 Blob .slice(-2, 2147483647)
59 PASS blobContents is "89"
60 File .slice(-2, 2147483647)
61 PASS fileContents is "89"
62 Blob .slice(-2, -2147483648)
63 PASS blobContents is ""
64 File .slice(-2, -2147483648)
65 PASS fileContents is ""
66 Blob .slice(-2, 9223372036854775000)
67 PASS blobContents is "89"
68 File .slice(-2, 9223372036854775000)
69 PASS fileContents is "89"
70 Blob .slice(-2, -9223372036854775000)
71 PASS blobContents is ""
72 File .slice(-2, -9223372036854775000)
73 PASS fileContents is ""
74 Blob .slice(0)
75 PASS blobContents is "0123456789"
76 File .slice(0)
77 PASS fileContents is "0123456789"
78 Blob .slice(2)
79 PASS blobContents is "23456789"
80 File .slice(2)
81 PASS fileContents is "23456789"
82 Blob .slice(-2)
83 PASS blobContents is "89"
84 File .slice(-2)
85 PASS fileContents is "89"
86 Blob .slice(12)
87 PASS blobContents is ""
88 File .slice(12)
89 PASS fileContents is ""
90 Blob .slice(-12)
91 PASS blobContents is "0123456789"
92 File .slice(-12)
93 PASS fileContents is "0123456789"
94 Blob .slice(2147483647)
95 PASS blobContents is ""
96 File .slice(2147483647)
97 PASS fileContents is ""
98 Blob .slice(-2147483648)
99 PASS blobContents is "0123456789"
100 File .slice(-2147483648)
101 PASS fileContents is "0123456789"
102 Blob .slice(9223372036854775000)
103 PASS blobContents is ""
104 File .slice(9223372036854775000)
105 PASS fileContents is ""
106 Blob .slice(-9223372036854775000)
107 PASS blobContents is "0123456789"
108 File .slice(-9223372036854775000)
109 PASS fileContents is "0123456789"
110 Blob .slice()
111 PASS blobContents is "0123456789"
112 File .slice()
113 PASS fileContents is "0123456789"
114 PASS successfullyParsed is true
115
116 TEST COMPLETE
117
OLDNEW
« no previous file with comments | « LayoutTests/fast/files/blob-parts-slice-test.html ('k') | LayoutTests/fast/files/blob-slice-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698