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

Unified Diff: third_party/WebKit/LayoutTests/fast/files/blob-paging.html

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added back transport controller test, small cleanups Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/files/blob-paging.html
diff --git a/third_party/WebKit/LayoutTests/fast/files/blob-paging.html b/third_party/WebKit/LayoutTests/fast/files/blob-paging.html
new file mode 100644
index 0000000000000000000000000000000000000000..82d151743b797776b6425d5d61ed4289fa2e550b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-paging.html
@@ -0,0 +1,43 @@
+<!doctype html>
+<script src="../../resources/js-test.js"></script>
+<script>
+description("Test the Blob.close() method, basic functionality.");
+
+function runTests() {
+ var blobs = new Array();
+ var totalMemory = 500 * 1024 * 1024;
+ var totalBlobs = 1001;
+ var size = totalMemory / totalBlobs;
+ var memory = new ArrayBuffer(size);
+ for (let i = 0; i < totalBlobs; i++) {
+ let blob = new Blob([memory], {type: 'application/octet-string'});
+ blobs.push(blob);
+ }
+ blobs.push(new Blob([new ArrayBuffer(totalMemory)], {type: 'application/octet-string'}));
+
+ var blobsRead = 0;
+ blobs.forEach(function(blob) {
+ var reader = new FileReader();
+ reader.onloadend = function(event) {
+ var error = event.target.error;
+ if (error) {
+ testFailed("File read error " + error);
+ finishJSTest();
+ return;
+ }
+ blobsRead++;
+ if (blobsRead == blobs.length) {
+ finishJSTest();
+ }
+ };
+ reader.readAsText(blob);
+ });
+}
+
+window.jsTestIsAsync = true;
+</script>
+</head>
+<body onload="runTests()">
+<pre id='console'></pre>
+</body>
+</html>
« storage/browser/blob/shareable_blob_data_item.h ('K') | « storage/storage_browser.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698