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

Unified Diff: chrome/test/data/indexeddb/transaction_test.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
Index: chrome/test/data/indexeddb/transaction_test.js
diff --git a/chrome/test/data/indexeddb/transaction_test.js b/chrome/test/data/indexeddb/transaction_test.js
index 71f04fa7aed34d44519cd61ea2e8ad41b4c79ef5..afb344fca6a7df485345f17472801ff86b86c370 100644
--- a/chrome/test/data/indexeddb/transaction_test.js
+++ b/chrome/test/data/indexeddb/transaction_test.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.
@@ -23,7 +23,8 @@ function newTransactionAborted()
{
debug('The transaction was aborted.');
- var finalTransaction = db.transaction([], IDBTransaction.READ_ONLY);
+ var finalTransaction = db.transaction(['employees'],
+ IDBTransaction.READ_ONLY);
finalTransaction.oncomplete = finalTransactionCompleted;
finalTransaction.onabort = finalTransactionAborted;
@@ -46,7 +47,8 @@ function employeeAdded()
function onSetVersionComplete()
{
debug('Creating new transaction.');
- window.newTransaction = db.transaction([], IDBTransaction.READ_WRITE);
+ window.newTransaction = db.transaction(['employees'],
+ IDBTransaction.READ_WRITE);
newTransaction.oncomplete = newTransactionCompleted;
newTransaction.onabort = newTransactionAborted;
« no previous file with comments | « chrome/test/data/indexeddb/transaction_run_forever.js ('k') | content/browser/in_process_webkit/indexed_db_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698