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

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

Issue 23992003: blob hacking webcore style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/storage/resources/serialized-script-value.js
diff --git a/LayoutTests/fast/storage/resources/serialized-script-value.js b/LayoutTests/fast/storage/resources/serialized-script-value.js
index 48731e85f5ded40d6e26e811aefe00240dde90c0..b5b150752857f378668846a00fb1d7cacff3b7ce 100644
--- a/LayoutTests/fast/storage/resources/serialized-script-value.js
+++ b/LayoutTests/fast/storage/resources/serialized-script-value.js
@@ -93,3 +93,13 @@ function _testSerialization(bytesPerElement, obj, values, oldFormat, serializeEx
}
expectBufferValue(bytesPerElement, values, serialized);
}
+
+function _testBlobSerialization() {
kinuko 2013/10/02 15:41:39 nit: Unlike _testSerialization we're calling this
michaeln 2013/10/02 20:09:01 Do you know the reasons for that layer of indirect
+ debug("");
+ self.blobObj1 = new Blob(['Hi'], {type: 'text/plain'});
+ self.blobObj2 = internals.deserializeBuffer(internals.serializeObject(blobObj1));
+ shouldBeTrue("areValuesIdentical(blobObj1, blobObj2)");
kinuko 2013/10/02 15:41:39 areValuesIdentical only checks object properties,
michaeln 2013/10/02 20:09:01 i could use sync xhr with public blob urls to test
michaeln 2013/10/02 20:30:40 Done.
+ self.dictionaryWithBlob1 = {blob: blobObj1, string: 'stringValue'};
+ self.dictionaryWithBlob2 = internals.deserializeBuffer(internals.serializeObject(dictionaryWithBlob1));
+ shouldBeTrue("areValuesIdentical(dictionaryWithBlob1, dictionaryWithBlob2)");
+}

Powered by Google App Engine
This is Rietveld 408576698