| OLD | NEW |
| 1 library IndexedDB1Test; | 1 library IndexedDB1Test; |
| 2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
| 3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import 'package:unittest/html_config.dart'; |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:html' as html; | 5 import 'dart:html' as html; |
| 6 import 'dart:indexed_db' as idb; | 6 import 'dart:indexed_db' as idb; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 useHtmlConfiguration(); | 9 useHtmlConfiguration(); |
| 10 | 10 |
| 11 if (!idb.IdbFactory.supported) { | 11 if (!idb.IdbFactory.supported) { |
| 12 return; | 12 return; |
| 13 } | 13 } |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 }).then((_) { | 174 }).then((_) { |
| 175 transaction = db.transaction(storeName, 'readonly'); | 175 transaction = db.transaction(storeName, 'readonly'); |
| 176 var index = transaction.objectStore(storeName).index(indexName); | 176 var index = transaction.objectStore(storeName).index(indexName); |
| 177 return index.get('two'); | 177 return index.get('two'); |
| 178 }).then((readValue) { | 178 }).then((readValue) { |
| 179 expect(readValue, isNull); | 179 expect(readValue, isNull); |
| 180 return transaction.completed; | 180 return transaction.completed; |
| 181 }); | 181 }); |
| 182 }); | 182 }); |
| 183 } | 183 } |
| OLD | NEW |