diff options
author | jsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 20:50:49 +0000 |
---|---|---|
committer | jsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 20:50:49 +0000 |
commit | dc3a1429dd52f5690e0426cae6e140ff56e211de (patch) | |
tree | d11855de67b7603c2966563e5b440b22f89f1532 /tools/page_cycler | |
parent | e8895feb92c9849a328652ff4465510f53eee6ea (diff) | |
download | chromium_src-dc3a1429dd52f5690e0426cae6e140ff56e211de.zip chromium_src-dc3a1429dd52f5690e0426cae6e140ff56e211de.tar.gz chromium_src-dc3a1429dd52f5690e0426cae6e140ff56e211de.tar.bz2 |
Update IndexedDB tests to use strings instead of deprecated numeric constants.
Review URL: https://chromiumcodereview.appspot.com/10560011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142808 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/page_cycler')
-rw-r--r-- | tools/page_cycler/indexed_db/basic_insert/index.html | 2 | ||||
-rw-r--r-- | tools/page_cycler/indexed_db/common.js | 11 |
2 files changed, 4 insertions, 9 deletions
diff --git a/tools/page_cycler/indexed_db/basic_insert/index.html b/tools/page_cycler/indexed_db/basic_insert/index.html index 3edc046..b57f9cc 100644 --- a/tools/page_cycler/indexed_db/basic_insert/index.html +++ b/tools/page_cycler/indexed_db/basic_insert/index.html @@ -48,7 +48,7 @@ } function storeCreated() { - var transaction = db.transaction(['store'], IDBTransaction.READ_WRITE); + var transaction = db.transaction(['store'], 'readwrite'); transaction.oncomplete = insertsDone; transaction.onabort = error; diff --git a/tools/page_cycler/indexed_db/common.js b/tools/page_cycler/indexed_db/common.js index d1b4f72..1af6611 100644 --- a/tools/page_cycler/indexed_db/common.js +++ b/tools/page_cycler/indexed_db/common.js @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -7,13 +7,8 @@ var SETUP_FAILED = -2; var TEST_FAILED = -3; function setup() { - if ('webkitIndexedDB' in window) { - indexedDB = webkitIndexedDB; - IDBCursor = webkitIDBCursor; - IDBKeyRange = webkitIDBKeyRange; - IDBTransaction = webkitIDBTransaction; - return true; - } + window.indexedDB = window.indexedDB || window.webkitIndexedDB; + window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange; if ('indexedDB' in window) return true; |