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

Side by Side Diff: tests/dom/indexeddb_4_test.dart

Issue 10379010: Properly count number of arguments for statics. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/dom/dom.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('IndexedDB4Test'); 1 #library('IndexedDB4Test');
2 #import('../../lib/unittest/unittest.dart'); 2 #import('../../lib/unittest/unittest.dart');
3 #import('../../lib/unittest/dom_config.dart'); 3 #import('../../lib/unittest/dom_config.dart');
4 #import('dart:dom'); 4 #import('dart:dom');
5 5
6 // Test for IDBKeyRange and IDBCursor. 6 // Test for IDBKeyRange and IDBCursor.
7 7
8 final String DB_NAME = 'Test'; 8 final String DB_NAME = 'Test';
9 final String STORE_NAME = 'TEST'; 9 final String STORE_NAME = 'TEST';
10 final String VERSION = '1'; 10 final String VERSION = '1';
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 IDBRequest cursorRequest = objectStore.openCursor(range); 60 IDBRequest cursorRequest = objectStore.openCursor(range);
61 int itemCount = 0; 61 int itemCount = 0;
62 int firstKey = null; 62 int firstKey = null;
63 int lastKey = null; 63 int lastKey = null;
64 cursorRequest.addEventListener("success", (e) { 64 cursorRequest.addEventListener("success", (e) {
65 var cursor = e.target.result; 65 var cursor = e.target.result;
66 if (cursor != null) { 66 if (cursor != null) {
67 if (firstKey == null) firstKey = cursor.key; 67 if (firstKey == null) firstKey = cursor.key;
68 lastKey = cursor.key; 68 lastKey = cursor.key;
69 itemCount += 1; 69 itemCount += 1;
70 Expect.equals('Item ${cursor.key}', cursor.value); 70 Expect.equals('Item ${cursor.key.toStringAsFixed(0)}', cursor.value);
71 cursor.continueFunction(); 71 cursor.continueFunction();
72 } else { 72 } else {
73 // Done 73 // Done
74 Expect.equals(expectedFirst, firstKey); 74 Expect.equals(expectedFirst, firstKey);
75 Expect.equals(expectedLast, lastKey); 75 Expect.equals(expectedLast, lastKey);
76 if (expectedFirst == null) { 76 if (expectedFirst == null) {
77 Expect.equals(0, itemCount); 77 Expect.equals(0, itemCount);
78 } else { 78 } else {
79 Expect.equals(expectedLast - expectedFirst + 1, itemCount); 79 Expect.equals(expectedLast - expectedFirst + 1, itemCount);
80 } 80 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 asyncTest('upper2', 1, test.upper2); 132 asyncTest('upper2', 1, test.upper2);
133 asyncTest('upper3', 1, test.upper3); 133 asyncTest('upper3', 1, test.upper3);
134 134
135 asyncTest('bound1', 1, test.bound1); 135 asyncTest('bound1', 1, test.bound1);
136 asyncTest('bound2', 1, test.bound2); 136 asyncTest('bound2', 1, test.bound2);
137 asyncTest('bound3', 1, test.bound3); 137 asyncTest('bound3', 1, test.bound3);
138 asyncTest('bound4', 1, test.bound4); 138 asyncTest('bound4', 1, test.bound4);
139 asyncTest('bound5', 1, test.bound5); 139 asyncTest('bound5', 1, test.bound5);
140 140
141 } 141 }
OLDNEW
« no previous file with comments | « tests/dom/dom.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698