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 #import('dart:coreimpl'); | 5 #import('dart:coreimpl'); |
5 | 6 |
6 // Write and re-read Maps: simple Maps; Maps with DAGs; Maps with cycles. | 7 // Write and re-read Maps: simple Maps; Maps with DAGs; Maps with cycles. |
7 | 8 |
8 final String DB_NAME = 'Test'; | 9 final String DB_NAME = 'Test'; |
9 final String STORE_NAME = 'TEST'; | 10 final String STORE_NAME = 'TEST'; |
10 final String VERSION = '1'; | 11 final String VERSION = '1'; |
11 | 12 |
12 testReadWrite(key, value, check, | 13 testReadWrite(key, value, check, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 obj4['a'] = 100; | 139 obj4['a'] = 100; |
139 obj4['b'] = 's'; | 140 obj4['b'] = 's'; |
140 | 141 |
141 asyncTest('test_simple', 1, testReadWrite(123, obj1, verifyGraph)); | 142 asyncTest('test_simple', 1, testReadWrite(123, obj1, verifyGraph)); |
142 asyncTest('test_DAG', 1, testReadWrite(123, obj2, verifyGraph)); | 143 asyncTest('test_DAG', 1, testReadWrite(123, obj2, verifyGraph)); |
143 asyncTest('test_cycle', 1, testReadWrite(123, obj3, verifyGraph)); | 144 asyncTest('test_cycle', 1, testReadWrite(123, obj3, verifyGraph)); |
144 asyncTest('test_simple_splay', 1, testReadWrite(123, obj4, verifyGraph)); | 145 asyncTest('test_simple_splay', 1, testReadWrite(123, obj4, verifyGraph)); |
145 } | 146 } |
146 | 147 |
147 main() { | 148 main() { |
148 forLayoutTests(); | 149 useDomConfiguration(isLayoutTest: true); |
149 | 150 |
150 tests_dynamic(); | 151 tests_dynamic(); |
151 } | 152 } |
OLD | NEW |