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

Side by Side Diff: tests/html/indexeddb_5_test.dart

Issue 231413003: using unittest via package import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 6 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 | « tests/html/indexeddb_4_test.dart ('k') | tests/html/input_element_test.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 '../../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
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 }
OLDNEW
« no previous file with comments | « tests/html/indexeddb_4_test.dart ('k') | tests/html/input_element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698