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

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

Issue 218283002: tests: import unittest via package: url (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
OLDNEW
1 library WebDBTest; 1 library WebDBTest;
2 import 'dart:async'; 2 import 'dart:async';
3 import 'dart:html'; 3 import 'dart:html';
4 import 'dart:web_sql'; 4 import 'dart:web_sql';
5 import '../../pkg/unittest/lib/unittest.dart'; 5 import 'package:unittest/unittest.dart';
6 import '../../pkg/unittest/lib/html_individual_config.dart'; 6 import 'package:unittest/html_individual_config.dart';
7 7
8 void fail(message) { 8 void fail(message) {
9 guardAsync(() { 9 guardAsync(() {
10 expect(false, isTrue, reason: message); 10 expect(false, isTrue, reason: message);
11 }); 11 });
12 } 12 }
13 13
14 Future<SqlTransaction> transaction(SqlDatabase db) { 14 Future<SqlTransaction> transaction(SqlDatabase db) {
15 final completer = new Completer<SqlTransaction>.sync(); 15 final completer = new Completer<SqlTransaction>.sync();
16 16
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 var row = resultSet.rows.item(0); 138 var row = resultSet.rows.item(0);
139 expect(row.containsKey(columnName), isTrue); 139 expect(row.containsKey(columnName), isTrue);
140 expect(row[columnName], 'Some text data'); 140 expect(row[columnName], 'Some text data');
141 expect(resultSet.rows[0], row); 141 expect(resultSet.rows[0], row);
142 }).then((_) { 142 }).then((_) {
143 return dropTable(tx, tableName); 143 return dropTable(tx, tableName);
144 }); 144 });
145 }); 145 });
146 }); 146 });
147 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698