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

Unified Diff: tests/html/indexeddb_2_test.dart

Issue 10540016: indexedDB work (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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_2_test.dart
diff --git a/tests/html/indexeddb_2_test.dart b/tests/html/indexeddb_2_test.dart
index 9deaace3219d1be7913098d342b7a1080218f1a8..4c518d254a2568f8fd14c6cdda10c65433ae1041 100644
--- a/tests/html/indexeddb_2_test.dart
+++ b/tests/html/indexeddb_2_test.dart
@@ -29,7 +29,7 @@ testReadWrite(key, value, check,
}
step2(e) {
- var transaction = db.transaction(storeName, IDBTransaction.READ_ONLY);
+ var transaction = db.transaction(storeName, 'readonly');
var request = transaction.objectStore(storeName).getObject(key);
request.on.success.add(expectAsync1((e) {
var object = e.target.result;
@@ -40,7 +40,7 @@ testReadWrite(key, value, check,
}
step1() {
- var transaction = db.transaction([storeName], IDBTransaction.READ_WRITE);
+ var transaction = db.transaction([storeName], 'readwrite');
var request = transaction.objectStore(storeName).put(value, key);
request.on.success.add(expectAsync1(step2));
request.on.error.add(fail);
@@ -65,7 +65,7 @@ testReadWrite(key, value, check,
}
}
- var request = window.webkitIndexedDB.open(dbName);
+ var request = window.indexedDB.open(dbName);
Expect.isNotNull(request);
request.on.success.add(expectAsync1(initDb));
request.on.error.add(fail);

Powered by Google App Engine
This is Rietveld 408576698