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

Unified Diff: tests/html/indexeddb_3_test.dart

Issue 10448075: Fix indexeddb_4_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: tests/html/indexeddb_3_test.dart
diff --git a/tests/html/indexeddb_3_test.dart b/tests/html/indexeddb_3_test.dart
index 8df40145bd2c0a00119ce7f0d15731721c3d7fc6..cf6f08a50d934fa48652d758006d100545248125 100644
--- a/tests/html/indexeddb_3_test.dart
+++ b/tests/html/indexeddb_3_test.dart
@@ -40,7 +40,7 @@ class Test {
writeItems(int index) {
if (index < 100) {
- var transaction = db.transaction([STORE_NAME], IDBTransaction.READ_WRITE);
+ var transaction = db.transaction([STORE_NAME], 'readwrite');
var request = transaction.objectStore(STORE_NAME)
.put('Item $index', index);
request.on.success.add(expectAsync1((e) {
@@ -58,7 +58,7 @@ class Test {
};
readAllViaCursor() {
- IDBTransaction txn = db.transaction(STORE_NAME, IDBTransaction.READ_ONLY);
+ IDBTransaction txn = db.transaction(STORE_NAME, 'readonly');
IDBObjectStore objectStore = txn.objectStore(STORE_NAME);
IDBRequest cursorRequest = objectStore.openCursor();
int itemCount = 0;

Powered by Google App Engine
This is Rietveld 408576698