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

Unified Diff: tests/html/indexeddb_3_test.dart

Issue 12194026: Specify named parameters for optional parameter in tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/indexeddb_2_test.dart ('k') | tests/html/indexeddb_4_test.dart » ('j') | 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 436b12591897ef1d323778ac9dace6cd7592efca..260cdd7ac20b5361fbdc2dbc68a599471fbbf8b9 100644
--- a/tests/html/indexeddb_3_test.dart
+++ b/tests/html/indexeddb_3_test.dart
@@ -75,7 +75,7 @@ class Test {
writeItems(int index) {
if (index < 100) {
- var transaction = db.transaction([STORE_NAME], 'readwrite');
+ var transaction = db.transaction([STORE_NAME], mode : 'readwrite');
var request = transaction.objectStore(STORE_NAME)
.put('Item $index', index);
request.onSuccess.listen(expectAsync1((e) {
@@ -89,7 +89,7 @@ class Test {
setupDb() { _createAndOpenDb(() => writeItems(0)); }
readAllViaCursor() {
- Transaction txn = db.transaction(STORE_NAME, 'readonly');
+ Transaction txn = db.transaction(STORE_NAME, mode : 'readonly');
ObjectStore objectStore = txn.objectStore(STORE_NAME);
Request cursorRequest = objectStore.openCursor();
int itemCount = 0;
@@ -115,7 +115,7 @@ class Test {
}
readAllReversedViaCursor() {
- Transaction txn = db.transaction(STORE_NAME, 'readonly');
+ Transaction txn = db.transaction(STORE_NAME, mode : 'readonly');
ObjectStore objectStore = txn.objectStore(STORE_NAME);
// TODO: create a KeyRange(0,100)
Request cursorRequest = objectStore.openCursor(null, 'prev');
« no previous file with comments | « tests/html/indexeddb_2_test.dart ('k') | tests/html/indexeddb_4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698