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

Side by Side Diff: LayoutTests/fast/storage/serialized-script-value-expected.txt

Issue 100023005: Make cloning of File objects more useful. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reupload Created 7 years 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 1
2 Deserialize to {"foo":"zoo","bar":{"baz":"myNewKey"}}: 2 Deserialize to {"foo":"zoo","bar":{"baz":"myNewKey"}}:
3 PASS JSON.stringify(newObj) is JSON.stringify(obj) 3 PASS JSON.stringify(newObj) is JSON.stringify(obj)
4 PASS areValuesIdentical(newObj, obj) is true 4 PASS areValuesIdentical(newObj, obj) is true
5 Serialize {"foo":"zoo","bar":{"baz":"myNewKey"}}: 5 Serialize {"foo":"zoo","bar":{"baz":"myNewKey"}}:
6 PASS bufferView.length is expectedBufferValues.length 6 PASS bufferView.length is expectedBufferValues.length
7 7
8 Backwards compatibility with version 3 serialization.
9
10 Deserialize to {"foo":"zoo","bar":{"baz":"myNewKey"}}:
11 PASS JSON.stringify(newObj) is JSON.stringify(obj)
12 PASS areValuesIdentical(newObj, obj) is true
13 PASS JSON.stringify(newObj) is JSON.stringify(obj)
14 PASS areValuesIdentical(newObj, obj) is true
15 Serialize {"foo":"zoo","bar":{"baz":"myNewKey"}}:
16 PASS bufferView.length is expectedBufferValues.length
17
8 Deserialize to {"foo":"zoo","bar":"myNewKey"}: 18 Deserialize to {"foo":"zoo","bar":"myNewKey"}:
9 PASS JSON.stringify(newObj) is JSON.stringify(obj) 19 PASS JSON.stringify(newObj) is JSON.stringify(obj)
10 PASS areValuesIdentical(newObj, obj) is true 20 PASS areValuesIdentical(newObj, obj) is true
11 Serialize {"foo":"zoo","bar":"myNewKey"}: 21 Serialize {"foo":"zoo","bar":"myNewKey"}:
12 PASS bufferView.length is expectedBufferValues.length 22 PASS bufferView.length is expectedBufferValues.length
13 23
24 Backwards compatibility with version 3 serialization.
25
26 Deserialize to {"foo":"zoo","bar":"myNewKey"}:
27 PASS JSON.stringify(newObj) is JSON.stringify(obj)
28 PASS areValuesIdentical(newObj, obj) is true
29 PASS JSON.stringify(newObj) is JSON.stringify(obj)
30 PASS areValuesIdentical(newObj, obj) is true
31 Serialize {"foo":"zoo","bar":"myNewKey"}:
32 PASS bufferView.length is expectedBufferValues.length
33
14 Deserialize to []: 34 Deserialize to []:
15 PASS JSON.stringify(newObj) is JSON.stringify(obj) 35 PASS JSON.stringify(newObj) is JSON.stringify(obj)
16 PASS areValuesIdentical(newObj, obj) is true 36 PASS areValuesIdentical(newObj, obj) is true
17 Serialize []: 37 Serialize []:
18 PASS bufferView.length is expectedBufferValues.length 38 PASS bufferView.length is expectedBufferValues.length
19 39
40 Backwards compatibility with version 3 serialization.
41
42 Deserialize to []:
43 PASS JSON.stringify(newObj) is JSON.stringify(obj)
44 PASS areValuesIdentical(newObj, obj) is true
45 PASS JSON.stringify(newObj) is JSON.stringify(obj)
46 PASS areValuesIdentical(newObj, obj) is true
47 Serialize []:
48 PASS bufferView.length is expectedBufferValues.length
49
20 Deserialize to {"foo":"zoo"}: 50 Deserialize to {"foo":"zoo"}:
21 PASS JSON.stringify(newObj) is JSON.stringify(obj) 51 PASS JSON.stringify(newObj) is JSON.stringify(obj)
22 PASS areValuesIdentical(newObj, obj) is true 52 PASS areValuesIdentical(newObj, obj) is true
23 PASS JSON.stringify(newObj) is JSON.stringify(obj) 53 PASS JSON.stringify(newObj) is JSON.stringify(obj)
24 PASS areValuesIdentical(newObj, obj) is true 54 PASS areValuesIdentical(newObj, obj) is true
25 Serialize {"foo":"zoo"}: 55 Serialize {"foo":"zoo"}:
26 PASS bufferView.length is expectedBufferValues.length 56 PASS bufferView.length is expectedBufferValues.length
27 57
28 Deserialize to {"foo":null}: 58 Deserialize to {"foo":null}:
29 PASS JSON.stringify(newObj) is JSON.stringify(obj) 59 PASS JSON.stringify(newObj) is JSON.stringify(obj)
(...skipping 10 matching lines...) Expand all
40 PASS areValuesIdentical(newObj, obj) is true 70 PASS areValuesIdentical(newObj, obj) is true
41 Serialize {}: 71 Serialize {}:
42 PASS bufferView.length is expectedBufferValues.length 72 PASS bufferView.length is expectedBufferValues.length
43 73
44 Deserialize to undefined: 74 Deserialize to undefined:
45 PASS JSON.stringify(newObj) is JSON.stringify(obj) 75 PASS JSON.stringify(newObj) is JSON.stringify(obj)
46 PASS areValuesIdentical(newObj, obj) is true 76 PASS areValuesIdentical(newObj, obj) is true
47 Serialize undefined: 77 Serialize undefined:
48 PASS bufferView.length is expectedBufferValues.length 78 PASS bufferView.length is expectedBufferValues.length
49 79
80 Backwards compatibility with version 3 serialization.
81
82 Deserialize to undefined:
83 PASS JSON.stringify(newObj) is JSON.stringify(obj)
84 PASS areValuesIdentical(newObj, obj) is true
85 PASS JSON.stringify(newObj) is JSON.stringify(obj)
86 PASS areValuesIdentical(newObj, obj) is true
87 Serialize undefined:
88 PASS bufferView.length is expectedBufferValues.length
89
50 Deserialize to true: 90 Deserialize to true:
51 PASS JSON.stringify(newObj) is JSON.stringify(obj) 91 PASS JSON.stringify(newObj) is JSON.stringify(obj)
52 PASS areValuesIdentical(newObj, obj) is true 92 PASS areValuesIdentical(newObj, obj) is true
53 Serialize true: 93 Serialize true:
54 PASS bufferView.length is expectedBufferValues.length 94 PASS bufferView.length is expectedBufferValues.length
55 95
96 Backwards compatibility with version 3 serialization.
97
98 Deserialize to true:
99 PASS JSON.stringify(newObj) is JSON.stringify(obj)
100 PASS areValuesIdentical(newObj, obj) is true
101 PASS JSON.stringify(newObj) is JSON.stringify(obj)
102 PASS areValuesIdentical(newObj, obj) is true
103 Serialize true:
104 PASS bufferView.length is expectedBufferValues.length
105
56 Deserialize to false: 106 Deserialize to false:
57 PASS JSON.stringify(newObj) is JSON.stringify(obj) 107 PASS JSON.stringify(newObj) is JSON.stringify(obj)
58 PASS areValuesIdentical(newObj, obj) is true 108 PASS areValuesIdentical(newObj, obj) is true
59 Serialize false: 109 Serialize false:
60 PASS bufferView.length is expectedBufferValues.length 110 PASS bufferView.length is expectedBufferValues.length
61 111
112 Backwards compatibility with version 3 serialization.
113
114 Deserialize to false:
115 PASS JSON.stringify(newObj) is JSON.stringify(obj)
116 PASS areValuesIdentical(newObj, obj) is true
117 PASS JSON.stringify(newObj) is JSON.stringify(obj)
118 PASS areValuesIdentical(newObj, obj) is true
119 Serialize false:
120 PASS bufferView.length is expectedBufferValues.length
121
62 Deserialize to 10: 122 Deserialize to 10:
63 PASS JSON.stringify(newObj) is JSON.stringify(obj) 123 PASS JSON.stringify(newObj) is JSON.stringify(obj)
64 PASS areValuesIdentical(newObj, obj) is true 124 PASS areValuesIdentical(newObj, obj) is true
65 Serialize 10: 125 Serialize 10:
66 PASS bufferView.length is expectedBufferValues.length 126 PASS bufferView.length is expectedBufferValues.length
67 127
128 Backwards compatibility with version 3 serialization.
129
130 Deserialize to 10:
131 PASS JSON.stringify(newObj) is JSON.stringify(obj)
132 PASS areValuesIdentical(newObj, obj) is true
133 PASS JSON.stringify(newObj) is JSON.stringify(obj)
134 PASS areValuesIdentical(newObj, obj) is true
135 Serialize 10:
136 PASS bufferView.length is expectedBufferValues.length
137
68 Deserialize to -10: 138 Deserialize to -10:
69 PASS JSON.stringify(newObj) is JSON.stringify(obj) 139 PASS JSON.stringify(newObj) is JSON.stringify(obj)
70 PASS areValuesIdentical(newObj, obj) is true 140 PASS areValuesIdentical(newObj, obj) is true
71 Serialize -10: 141 Serialize -10:
72 PASS bufferView.length is expectedBufferValues.length 142 PASS bufferView.length is expectedBufferValues.length
73 143
144 Backwards compatibility with version 3 serialization.
145
146 Deserialize to -10:
147 PASS JSON.stringify(newObj) is JSON.stringify(obj)
148 PASS areValuesIdentical(newObj, obj) is true
149 PASS JSON.stringify(newObj) is JSON.stringify(obj)
150 PASS areValuesIdentical(newObj, obj) is true
151 Serialize -10:
152 PASS bufferView.length is expectedBufferValues.length
153
74 Deserialize to 1073741824: 154 Deserialize to 1073741824:
75 PASS JSON.stringify(newObj) is JSON.stringify(obj) 155 PASS JSON.stringify(newObj) is JSON.stringify(obj)
76 PASS areValuesIdentical(newObj, obj) is true 156 PASS areValuesIdentical(newObj, obj) is true
77 Serialize 1073741824: 157 Serialize 1073741824:
78 PASS bufferView.length is expectedBufferValues.length 158 PASS bufferView.length is expectedBufferValues.length
79 159
160 Backwards compatibility with version 3 serialization.
161
162 Deserialize to 1073741824:
163 PASS JSON.stringify(newObj) is JSON.stringify(obj)
164 PASS areValuesIdentical(newObj, obj) is true
165 PASS JSON.stringify(newObj) is JSON.stringify(obj)
166 PASS areValuesIdentical(newObj, obj) is true
167 Serialize 1073741824:
168 PASS bufferView.length is expectedBufferValues.length
169
80 Deserialize to 36028797018963970: 170 Deserialize to 36028797018963970:
81 PASS JSON.stringify(newObj) is JSON.stringify(obj) 171 PASS JSON.stringify(newObj) is JSON.stringify(obj)
82 PASS areValuesIdentical(newObj, obj) is true 172 PASS areValuesIdentical(newObj, obj) is true
83 Serialize 36028797018963970: 173 Serialize 36028797018963970:
84 PASS bufferView.length is expectedBufferValues.length 174 PASS bufferView.length is expectedBufferValues.length
85 175
176 Backwards compatibility with version 3 serialization.
177
178 Deserialize to 36028797018963970:
179 PASS JSON.stringify(newObj) is JSON.stringify(obj)
180 PASS areValuesIdentical(newObj, obj) is true
181 PASS JSON.stringify(newObj) is JSON.stringify(obj)
182 PASS areValuesIdentical(newObj, obj) is true
183 Serialize 36028797018963970:
184 PASS bufferView.length is expectedBufferValues.length
185
86 Deserialize to 1.23: 186 Deserialize to 1.23:
87 PASS JSON.stringify(newObj) is JSON.stringify(obj) 187 PASS JSON.stringify(newObj) is JSON.stringify(obj)
88 PASS areValuesIdentical(newObj, obj) is true 188 PASS areValuesIdentical(newObj, obj) is true
89 Serialize 1.23: 189 Serialize 1.23:
90 PASS bufferView.length is expectedBufferValues.length 190 PASS bufferView.length is expectedBufferValues.length
91 191
192 Backwards compatibility with version 3 serialization.
193
194 Deserialize to 1.23:
195 PASS JSON.stringify(newObj) is JSON.stringify(obj)
196 PASS areValuesIdentical(newObj, obj) is true
197 PASS JSON.stringify(newObj) is JSON.stringify(obj)
198 PASS areValuesIdentical(newObj, obj) is true
199 Serialize 1.23:
200 PASS bufferView.length is expectedBufferValues.length
201
92 Deserialize to 2147483647: 202 Deserialize to 2147483647:
93 PASS JSON.stringify(newObj) is JSON.stringify(obj) 203 PASS JSON.stringify(newObj) is JSON.stringify(obj)
94 PASS areValuesIdentical(newObj, obj) is true 204 PASS areValuesIdentical(newObj, obj) is true
95 Serialize 2147483647: 205 Serialize 2147483647:
96 PASS bufferView.length is expectedBufferValues.length 206 PASS bufferView.length is expectedBufferValues.length
97 207
208 Backwards compatibility with version 3 serialization.
209
210 Deserialize to 2147483647:
211 PASS JSON.stringify(newObj) is JSON.stringify(obj)
212 PASS areValuesIdentical(newObj, obj) is true
213 PASS JSON.stringify(newObj) is JSON.stringify(obj)
214 PASS areValuesIdentical(newObj, obj) is true
215 Serialize 2147483647:
216 PASS bufferView.length is expectedBufferValues.length
217
98 Deserialize to -2147483648: 218 Deserialize to -2147483648:
99 PASS JSON.stringify(newObj) is JSON.stringify(obj) 219 PASS JSON.stringify(newObj) is JSON.stringify(obj)
100 PASS areValuesIdentical(newObj, obj) is true 220 PASS areValuesIdentical(newObj, obj) is true
101 Serialize -2147483648: 221 Serialize -2147483648:
102 PASS bufferView.length is expectedBufferValues.length 222 PASS bufferView.length is expectedBufferValues.length
103 223
224 Backwards compatibility with version 3 serialization.
225
226 Deserialize to -2147483648:
227 PASS JSON.stringify(newObj) is JSON.stringify(obj)
228 PASS areValuesIdentical(newObj, obj) is true
229 PASS JSON.stringify(newObj) is JSON.stringify(obj)
230 PASS areValuesIdentical(newObj, obj) is true
231 Serialize -2147483648:
232 PASS bufferView.length is expectedBufferValues.length
233
104 Deserialize to 2147483648: 234 Deserialize to 2147483648:
105 PASS JSON.stringify(newObj) is JSON.stringify(obj) 235 PASS JSON.stringify(newObj) is JSON.stringify(obj)
106 PASS areValuesIdentical(newObj, obj) is true 236 PASS areValuesIdentical(newObj, obj) is true
107 Serialize 2147483648: 237 Serialize 2147483648:
108 PASS bufferView.length is expectedBufferValues.length 238 PASS bufferView.length is expectedBufferValues.length
109 239
240 Backwards compatibility with version 3 serialization.
241
242 Deserialize to 2147483648:
243 PASS JSON.stringify(newObj) is JSON.stringify(obj)
244 PASS areValuesIdentical(newObj, obj) is true
245 PASS JSON.stringify(newObj) is JSON.stringify(obj)
246 PASS areValuesIdentical(newObj, obj) is true
247 Serialize 2147483648:
248 PASS bufferView.length is expectedBufferValues.length
249
110 Deserialize to 4294967295: 250 Deserialize to 4294967295:
111 PASS JSON.stringify(newObj) is JSON.stringify(obj) 251 PASS JSON.stringify(newObj) is JSON.stringify(obj)
112 PASS areValuesIdentical(newObj, obj) is true 252 PASS areValuesIdentical(newObj, obj) is true
113 Serialize 4294967295: 253 Serialize 4294967295:
114 PASS bufferView.length is expectedBufferValues.length 254 PASS bufferView.length is expectedBufferValues.length
115 255
256 Backwards compatibility with version 3 serialization.
257
258 Deserialize to 4294967295:
259 PASS JSON.stringify(newObj) is JSON.stringify(obj)
260 PASS areValuesIdentical(newObj, obj) is true
261 PASS JSON.stringify(newObj) is JSON.stringify(obj)
262 PASS areValuesIdentical(newObj, obj) is true
263 Serialize 4294967295:
264 PASS bufferView.length is expectedBufferValues.length
265
116 Deserialize to "": 266 Deserialize to "":
117 PASS JSON.stringify(newObj) is JSON.stringify(obj) 267 PASS JSON.stringify(newObj) is JSON.stringify(obj)
118 PASS areValuesIdentical(newObj, obj) is true 268 PASS areValuesIdentical(newObj, obj) is true
119 Serialize "": 269 Serialize "":
120 PASS bufferView.length is expectedBufferValues.length 270 PASS bufferView.length is expectedBufferValues.length
121 271
272 Backwards compatibility with version 3 serialization.
273
274 Deserialize to "":
275 PASS JSON.stringify(newObj) is JSON.stringify(obj)
276 PASS areValuesIdentical(newObj, obj) is true
277 PASS JSON.stringify(newObj) is JSON.stringify(obj)
278 PASS areValuesIdentical(newObj, obj) is true
279 Serialize "":
280 PASS bufferView.length is expectedBufferValues.length
281
122 Deserialize to "abc": 282 Deserialize to "abc":
123 PASS JSON.stringify(newObj) is JSON.stringify(obj) 283 PASS JSON.stringify(newObj) is JSON.stringify(obj)
124 PASS areValuesIdentical(newObj, obj) is true 284 PASS areValuesIdentical(newObj, obj) is true
125 Serialize "abc": 285 Serialize "abc":
126 PASS bufferView.length is expectedBufferValues.length 286 PASS bufferView.length is expectedBufferValues.length
127 287
288 Backwards compatibility with version 3 serialization.
289
290 Deserialize to "abc":
291 PASS JSON.stringify(newObj) is JSON.stringify(obj)
292 PASS areValuesIdentical(newObj, obj) is true
293 PASS JSON.stringify(newObj) is JSON.stringify(obj)
294 PASS areValuesIdentical(newObj, obj) is true
295 Serialize "abc":
296 PASS bufferView.length is expectedBufferValues.length
297
128 Deserialize to {"integer":123}: 298 Deserialize to {"integer":123}:
129 PASS JSON.stringify(newObj) is JSON.stringify(obj) 299 PASS JSON.stringify(newObj) is JSON.stringify(obj)
130 PASS areValuesIdentical(newObj, obj) is true 300 PASS areValuesIdentical(newObj, obj) is true
131 Serialize {"integer":123}: 301 Serialize {"integer":123}:
132 PASS bufferView.length is expectedBufferValues.length 302 PASS bufferView.length is expectedBufferValues.length
133 303
304 Backwards compatibility with version 3 serialization.
305
306 Deserialize to {"integer":123}:
307 PASS JSON.stringify(newObj) is JSON.stringify(obj)
308 PASS areValuesIdentical(newObj, obj) is true
309 PASS JSON.stringify(newObj) is JSON.stringify(obj)
310 PASS areValuesIdentical(newObj, obj) is true
311 Serialize {"integer":123}:
312 PASS bufferView.length is expectedBufferValues.length
313
134 Deserialize to {"string":"str"}: 314 Deserialize to {"string":"str"}:
135 PASS JSON.stringify(newObj) is JSON.stringify(obj) 315 PASS JSON.stringify(newObj) is JSON.stringify(obj)
136 PASS areValuesIdentical(newObj, obj) is true 316 PASS areValuesIdentical(newObj, obj) is true
137 Serialize {"string":"str"}: 317 Serialize {"string":"str"}:
138 PASS bufferView.length is expectedBufferValues.length 318 PASS bufferView.length is expectedBufferValues.length
139 319
320 Backwards compatibility with version 3 serialization.
321
322 Deserialize to {"string":"str"}:
323 PASS JSON.stringify(newObj) is JSON.stringify(obj)
324 PASS areValuesIdentical(newObj, obj) is true
325 PASS JSON.stringify(newObj) is JSON.stringify(obj)
326 PASS areValuesIdentical(newObj, obj) is true
327 Serialize {"string":"str"}:
328 PASS bufferView.length is expectedBufferValues.length
329
140 Deserialize to {"list":[1,2,3]}: 330 Deserialize to {"list":[1,2,3]}:
141 PASS JSON.stringify(newObj) is JSON.stringify(obj) 331 PASS JSON.stringify(newObj) is JSON.stringify(obj)
142 PASS areValuesIdentical(newObj, obj) is true 332 PASS areValuesIdentical(newObj, obj) is true
143 Serialize {"list":[1,2,3]}: 333 Serialize {"list":[1,2,3]}:
144 PASS bufferView.length is expectedBufferValues.length 334 PASS bufferView.length is expectedBufferValues.length
145 335
336 Backwards compatibility with version 3 serialization.
337
338 Deserialize to {"list":[1,2,3]}:
339 PASS JSON.stringify(newObj) is JSON.stringify(obj)
340 PASS areValuesIdentical(newObj, obj) is true
341 PASS JSON.stringify(newObj) is JSON.stringify(obj)
342 PASS areValuesIdentical(newObj, obj) is true
343 Serialize {"list":[1,2,3]}:
344 PASS bufferView.length is expectedBufferValues.length
345
146 Deserialize to null: 346 Deserialize to null:
147 PASS JSON.stringify(newObj) is JSON.stringify(obj) 347 PASS JSON.stringify(newObj) is JSON.stringify(obj)
148 PASS areValuesIdentical(newObj, obj) is true 348 PASS areValuesIdentical(newObj, obj) is true
149 Serialize null: 349 Serialize null:
150 PASS bufferView.length is expectedBufferValues.length 350 PASS bufferView.length is expectedBufferValues.length
151 351
352 Backwards compatibility with version 3 serialization.
353
354 Deserialize to null:
355 PASS JSON.stringify(newObj) is JSON.stringify(obj)
356 PASS areValuesIdentical(newObj, obj) is true
357 PASS JSON.stringify(newObj) is JSON.stringify(obj)
358 PASS areValuesIdentical(newObj, obj) is true
359 Serialize null:
360 PASS bufferView.length is expectedBufferValues.length
361
152 Deserialize to {}: 362 Deserialize to {}:
153 PASS JSON.stringify(newObj) is JSON.stringify(obj) 363 PASS JSON.stringify(newObj) is JSON.stringify(obj)
154 PASS areValuesIdentical(newObj, obj) is true 364 PASS areValuesIdentical(newObj, obj) is true
155 Serialize {}: 365 Serialize {}:
156 PASS bufferView.length is expectedBufferValues.length 366 PASS bufferView.length is expectedBufferValues.length
157 367
368 Backwards compatibility with version 3 serialization.
369
370 Deserialize to {}:
371 PASS JSON.stringify(newObj) is JSON.stringify(obj)
372 PASS areValuesIdentical(newObj, obj) is true
373 PASS JSON.stringify(newObj) is JSON.stringify(obj)
374 PASS areValuesIdentical(newObj, obj) is true
375 Serialize {}:
376 PASS bufferView.length is expectedBufferValues.length
377
158 Deserialize to {"inner":{"hello":"there"},"outer":{"hello":"there"}}: 378 Deserialize to {"inner":{"hello":"there"},"outer":{"hello":"there"}}:
159 PASS JSON.stringify(newObj) is JSON.stringify(obj) 379 PASS JSON.stringify(newObj) is JSON.stringify(obj)
160 PASS areValuesIdentical(newObj, obj) is true 380 PASS areValuesIdentical(newObj, obj) is true
161 Serialize {"inner":{"hello":"there"},"outer":{"hello":"there"}}: 381 Serialize {"inner":{"hello":"there"},"outer":{"hello":"there"}}:
162 PASS bufferView.length is expectedBufferValues.length 382 PASS bufferView.length is expectedBufferValues.length
163 383
384 Backwards compatibility with version 3 serialization.
385
386 Deserialize to {"inner":{"hello":"there"},"outer":{"hello":"there"}}:
387 PASS JSON.stringify(newObj) is JSON.stringify(obj)
388 PASS areValuesIdentical(newObj, obj) is true
389 PASS JSON.stringify(newObj) is JSON.stringify(obj)
390 PASS areValuesIdentical(newObj, obj) is true
391 Serialize {"inner":{"hello":"there"},"outer":{"hello":"there"}}:
392 PASS bufferView.length is expectedBufferValues.length
393
164 Deserialize to {"hello":"there"}: 394 Deserialize to {"hello":"there"}:
165 PASS JSON.stringify(newObj) is JSON.stringify(obj) 395 PASS JSON.stringify(newObj) is JSON.stringify(obj)
166 PASS areValuesIdentical(newObj, obj) is true 396 PASS areValuesIdentical(newObj, obj) is true
167 Serialize {"hello":"there"}: 397 Serialize {"hello":"there"}:
168 PASS bufferView.length is expectedBufferValues.length 398 PASS bufferView.length is expectedBufferValues.length
169 399
400 Backwards compatibility with version 3 serialization.
401
402 Deserialize to {"hello":"there"}:
403 PASS JSON.stringify(newObj) is JSON.stringify(obj)
404 PASS areValuesIdentical(newObj, obj) is true
405 PASS JSON.stringify(newObj) is JSON.stringify(obj)
406 PASS areValuesIdentical(newObj, obj) is true
407 Serialize {"hello":"there"}:
408 PASS bufferView.length is expectedBufferValues.length
409
170 Deserialize to {"a":"a","u":"αβ","d":42}: 410 Deserialize to {"a":"a","u":"αβ","d":42}:
171 PASS JSON.stringify(newObj) is JSON.stringify(obj) 411 PASS JSON.stringify(newObj) is JSON.stringify(obj)
172 PASS areValuesIdentical(newObj, obj) is true 412 PASS areValuesIdentical(newObj, obj) is true
173 PASS JSON.stringify(newObj) is JSON.stringify(obj) 413 PASS JSON.stringify(newObj) is JSON.stringify(obj)
174 PASS areValuesIdentical(newObj, obj) is true 414 PASS areValuesIdentical(newObj, obj) is true
175 Serialize {"a":"a","u":"αβ","d":42}: 415 Serialize {"a":"a","u":"αβ","d":42}:
176 PASS bufferView.length is expectedBufferValues.length 416 PASS bufferView.length is expectedBufferValues.length
177 417
178 Deserialize to {"a":"ab","u":"αβ","d":42}: 418 Deserialize to {"a":"ab","u":"αβ","d":42}:
179 PASS JSON.stringify(newObj) is JSON.stringify(obj) 419 PASS JSON.stringify(newObj) is JSON.stringify(obj)
(...skipping 18 matching lines...) Expand all
198 PASS areValuesIdentical(newObj, obj) is true 438 PASS areValuesIdentical(newObj, obj) is true
199 Serialize ["foo","bar"]: 439 Serialize ["foo","bar"]:
200 PASS bufferView.length is expectedBufferValues.length 440 PASS bufferView.length is expectedBufferValues.length
201 441
202 Serialize undefined: 442 Serialize undefined:
203 PASS thrownException.code is expectedException 443 PASS thrownException.code is expectedException
204 444
205 PASS areValuesIdentical(blobObj1, blobObj2) is true 445 PASS areValuesIdentical(blobObj1, blobObj2) is true
206 PASS areValuesIdentical(dictionaryWithBlob1, dictionaryWithBlob2) is true 446 PASS areValuesIdentical(dictionaryWithBlob1, dictionaryWithBlob2) is true
207 PASS self.blobContent1 is self.blobContent2 447 PASS self.blobContent1 is self.blobContent2
448
449 Test deserialization of File objects
450 PASS areValuesIdentical(fileObj1, fileObj2) is true
451 PASS areValuesIdentical(dictionaryWithFile1, dictionaryWithFile2) is true
452 PASS self.fileContents1 is self.fileContents2
208 PASS successfullyParsed is true 453 PASS successfullyParsed is true
209 454
210 TEST COMPLETE 455 TEST COMPLETE
211 456
OLDNEW
« no previous file with comments | « LayoutTests/fast/storage/serialized-script-value.html ('k') | Source/bindings/v8/SerializedScriptValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698