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

Unified Diff: chrome/test/data/indexeddb/transaction_run_forever.js

Issue 8414002: Update chromium tests for new IDBDatabase.transaction() restrictions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-enables the test Created 9 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
« no previous file with comments | « chrome/test/data/indexeddb/quota_test.js ('k') | chrome/test/data/indexeddb/transaction_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/indexeddb/transaction_run_forever.js
diff --git a/chrome/test/data/indexeddb/transaction_run_forever.js b/chrome/test/data/indexeddb/transaction_run_forever.js
index 74042b2a929f53a61b631f84e9b33002482f482f..5b3d395058204978a8d6550a05451d0d38712950 100644
--- a/chrome/test/data/indexeddb/transaction_run_forever.js
+++ b/chrome/test/data/indexeddb/transaction_run_forever.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -22,7 +22,8 @@ function newTransactionComplete()
{
debug('The transaction completed.');
- var finalTransaction = db.transaction([], IDBTransaction.READ_ONLY);
+ var finalTransaction = db.transaction(['employees'],
+ IDBTransaction.READ_ONLY);
finalTransaction.oncomplete = unexpectedCompleteCallback;
finalTransaction.onabort = unexpectedErrorCallback;
@@ -34,7 +35,7 @@ function newTransactionComplete()
function onSetVersionComplete()
{
debug('Creating new transaction.');
- var newTransaction = db.transaction([], IDBTransaction.READ_WRITE);
+ var newTransaction = db.transaction(['employees'], IDBTransaction.READ_WRITE);
newTransaction.oncomplete = newTransactionComplete;
newTransaction.onabort = unexpectedAbortCallback;
« no previous file with comments | « chrome/test/data/indexeddb/quota_test.js ('k') | chrome/test/data/indexeddb/transaction_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698