OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |