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

Unified Diff: content/test/data/indexeddb/write_20mb_blob.html

Issue 2855943003: Reduce the in-memory blob storgae limit on Android (Closed)
Patch Set: Fix IndexedDBBrowserTest. Created 3 years, 7 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: content/test/data/indexeddb/write_20mb_blob.html
diff --git a/content/test/data/indexeddb/write_20mb_blob.html b/content/test/data/indexeddb/write_20mb_blob.html
deleted file mode 100644
index 70720d6ea74c3334427d7b3b69e8a2ed0960c007..0000000000000000000000000000000000000000
--- a/content/test/data/indexeddb/write_20mb_blob.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!--
- Copyright 2014 The Chromium Authors. All rights reserved.
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file.
--->
-<head>
-<title>IDB Test that blobs use space when created and free up space when deleted</title>
-<script src="common.js"></script>
-<script>
-
-// Constants.
-var store_name = 'blobs';
-var blob_key = 'blob_key';
-var blob_size = 20 * 1024 * 1024; // 20MB
-
-// Shared variables.
-var db;
-
-function test() {
- indexedDBTest(prepareDatabase, putBlob);
-}
-
-function prepareDatabase() {
- db = event.target.result;
- db.createObjectStore(store_name);
-}
-
-function putBlob() {
- debug("Writing blob.");
-
- var trans = db.transaction(store_name, 'readwrite');
- trans.onabort = unexpectedAbortCallback;
- trans.oncomplete = done;
-
- var data = new Array(1 + blob_size).join("X");
- var blob = new Blob([data]);
- var request = trans.objectStore(store_name).put(blob, blob_key);
- request.onerror = unexpectedErrorCallback;
-}
-
-</script>
-</head>
-<body onLoad="test()">
- <div id="status">Starting...<br></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698