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

Side by Side Diff: LayoutTests/fast/storage/resources/serialized-script-value.js

Issue 1205973002: Support structured cloning of ES'15 Map and Set (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add new test for Map/Set serialization format Created 5 years, 6 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 var kSerializedScriptValueVersion = 8; 1 var kSerializedScriptValueVersion = 9;
2 2
3 function forVersion(version, values) { 3 function forVersion(version, values) {
4 var versionTag = 0xff; 4 var versionTag = 0xff;
5 var versionPrefix = [ (version << 8) | versionTag ]; 5 var versionPrefix = [ (version << 8) | versionTag ];
6 6
7 return versionPrefix.concat(values) 7 return versionPrefix.concat(values)
8 } 8 }
9 9
10 function expectBufferValue(bytesPerElement, expectedValues, buffer) { 10 function expectBufferValue(bytesPerElement, expectedValues, buffer) {
11 expectedBufferValues = expectedValues; 11 expectedBufferValues = expectedValues;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 function testFileSerialization() { 205 function testFileSerialization() {
206 window.jsTestIsAsync = true; 206 window.jsTestIsAsync = true;
207 testConstructedFileSerialization(function () { 207 testConstructedFileSerialization(function () {
208 testUserSelectedFileSerialization(function () { 208 testUserSelectedFileSerialization(function () {
209 finishJSTest(); 209 finishJSTest();
210 }); 210 });
211 }); 211 });
212 } 212 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/structured-clone.html ('k') | LayoutTests/fast/storage/serialized-script-value-collections.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698