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

Unified Diff: content/test/data/indexeddb/common.js

Issue 197333009: Handling LevelDB errors encountered after open. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted two unecessary changes Created 6 years, 9 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/common.js
diff --git a/content/test/data/indexeddb/common.js b/content/test/data/indexeddb/common.js
index 2e12d4447e2aec11c2584d2edeb00d7114199a01..1410a5af055356525b8f7225ab09bc82896342f6 100644
--- a/content/test/data/indexeddb/common.js
+++ b/content/test/data/indexeddb/common.js
@@ -147,3 +147,9 @@ function indexedDBTest(upgradeCallback, optionalOpenCallback) {
openRequest.onsuccess = optionalOpenCallback;
};
}
+
+if (typeof String.prototype.startsWith !== 'function') {
+ String.prototype.startsWith = function (str) {
+ return this.indexOf(str) === 0;
+ };
+}
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_database.cc ('k') | content/test/data/indexeddb/corrupted_open_db_detection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698