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

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

Issue 12388094: Removing futureTest test method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
OLDNEW
1 library IndexedDB3Test; 1 library IndexedDB3Test;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart'; 3 import '../../pkg/unittest/lib/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'; 6 import 'dart:indexed_db';
7 import 'utils.dart'; 7 import 'utils.dart';
8 8
9 // Read with cursor. 9 // Read with cursor.
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return cursors.last.then((_) => db); 93 return cursors.last.then((_) => db);
94 } 94 }
95 95
96 main() { 96 main() {
97 useHtmlConfiguration(); 97 useHtmlConfiguration();
98 98
99 // Don't bother with these tests if it's unsupported. 99 // Don't bother with these tests if it's unsupported.
100 // Support is tested in indexeddb_1_test 100 // Support is tested in indexeddb_1_test
101 if (IdbFactory.supported) { 101 if (IdbFactory.supported) {
102 var db; 102 var db;
103 futureTest('prepare', () { 103 test('prepare', () {
104 return setupDb().then((result) { db = result; }); 104 return setupDb().then((result) { db = result; });
105 }); 105 });
106 futureTest('readAll1', () { 106 test('readAll1', () {
107 return readAllViaCursor(db); 107 return readAllViaCursor(db);
108 }); 108 });
109 109
110 futureTest('readAll2', () { 110 test('readAll2', () {
111 return readAllReversedViaCursor(db); 111 return readAllReversedViaCursor(db);
112 }); 112 });
113 } 113 }
114 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698