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

Unified Diff: tests/html/indexeddb_3_test.dart

Issue 10513006: Fix indexeddb_3_test. (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
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/indexeddb_3_test.dart
diff --git a/tests/html/indexeddb_3_test.dart b/tests/html/indexeddb_3_test.dart
index cf6f08a50d934fa48652d758006d100545248125..d6e85147329f70f9add79f5ac9ca3a70c25e6c55 100644
--- a/tests/html/indexeddb_3_test.dart
+++ b/tests/html/indexeddb_3_test.dart
@@ -70,7 +70,7 @@ class Test {
lastKey = cursor.key;
itemCount += 1;
sumKeys += cursor.key;
- Expect.equals('Item ${cursor.key.toStringAsFixed(0)}', cursor.value);
+ Expect.equals('Item ${cursor.key}', cursor.value);
cursor.continueFunction();
} else {
// Done
@@ -83,10 +83,9 @@ class Test {
}
readAllReversedViaCursor() {
- IDBTransaction txn = db.transaction(STORE_NAME, IDBTransaction.READ_ONLY);
+ IDBTransaction txn = db.transaction(STORE_NAME, 'readonly');
IDBObjectStore objectStore = txn.objectStore(STORE_NAME);
- // TODO: create a IDBKeyRange(0,100)
- IDBRequest cursorRequest = objectStore.openCursor(null, IDBCursor.PREV);
+ IDBRequest cursorRequest = objectStore.openCursor(new IDBKeyRange.bound(0, 100), 'prev');
int itemCount = 0;
int sumKeys = 0;
int lastKey = null;
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698