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

Side by Side Diff: client/tests/client/dom/IndexedDB1Test.dart

Issue 10037027: unittest step2: bye bye to multiple entrypoints for unittest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « client/tests/client/dom/HistoryTest.dart ('k') | client/tests/client/dom/IndexedDB2Test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('IndexedDB1Test'); 1 #library('IndexedDB1Test');
2 #import('../../../../lib/unittest/unittest_dom.dart'); 2 #import('../../../../lib/unittest/unittest.dart');
3 #import('../../../../lib/unittest/dom_config.dart');
3 #import('dart:dom'); 4 #import('dart:dom');
4 5
5 final String DB_NAME = 'Test'; 6 final String DB_NAME = 'Test';
6 final String STORE_NAME = 'TEST'; 7 final String STORE_NAME = 'TEST';
7 final String VERSION = '1'; 8 final String VERSION = '1';
8 9
9 testReadWrite(key, value, check, 10 testReadWrite(key, value, check,
10 [dbName = DB_NAME, 11 [dbName = DB_NAME,
11 storeName = STORE_NAME, 12 storeName = STORE_NAME,
12 version = VERSION]) => () { 13 version = VERSION]) => () {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 125
125 tests_typed() { 126 tests_typed() {
126 asyncTest('test1', 1, testReadWriteTyped(123, 'Hoot!', Expect.equals)); 127 asyncTest('test1', 1, testReadWriteTyped(123, 'Hoot!', Expect.equals));
127 asyncTest('test2', 1, testReadWriteTyped(123, 12345, Expect.equals)); 128 asyncTest('test2', 1, testReadWriteTyped(123, 12345, Expect.equals));
128 asyncTest('test3', 1, testReadWriteTyped(123, [1,2,3], Expect.listEquals)); 129 asyncTest('test3', 1, testReadWriteTyped(123, [1,2,3], Expect.listEquals));
129 asyncTest('test4', 1, 130 asyncTest('test4', 1,
130 testReadWriteTyped(123, const [2, 3, 4], Expect.listEquals)); 131 testReadWriteTyped(123, const [2, 3, 4], Expect.listEquals));
131 } 132 }
132 133
133 main() { 134 main() {
134 forLayoutTests(); 135 useDomConfiguration();
135 136
136 tests_dynamic(); 137 tests_dynamic();
137 tests_typed(); 138 tests_typed();
138 } 139 }
OLDNEW
« no previous file with comments | « client/tests/client/dom/HistoryTest.dart ('k') | client/tests/client/dom/IndexedDB2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698