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

Side by Side Diff: tests/html/websql_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/websocket_test.dart ('k') | tests/html/wheelevent_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 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 Future<SqlTransaction> transaction(SqlDatabase db) { 8 Future<SqlTransaction> transaction(SqlDatabase db) {
9 final completer = new Completer<SqlTransaction>.sync(); 9 final completer = new Completer<SqlTransaction>.sync();
10 10
11 db.transaction((SqlTransaction transaction) { 11 db.transaction((SqlTransaction transaction) {
12 completer.complete(transaction); 12 completer.complete(transaction);
13 }, (SqlError error) { 13 }, (SqlError error) {
14 completer.completeError(error); 14 completer.completeError(error);
15 }); 15 });
16 16
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 var row = resultSet.rows.item(0); 132 var row = resultSet.rows.item(0);
133 expect(row.containsKey(columnName), isTrue); 133 expect(row.containsKey(columnName), isTrue);
134 expect(row[columnName], 'Some text data'); 134 expect(row[columnName], 'Some text data');
135 expect(resultSet.rows[0], row); 135 expect(resultSet.rows[0], row);
136 }).then((_) { 136 }).then((_) {
137 return dropTable(tx, tableName); 137 return dropTable(tx, tableName);
138 }); 138 });
139 }); 139 });
140 }); 140 });
141 } 141 }
OLDNEW
« no previous file with comments | « tests/html/websocket_test.dart ('k') | tests/html/wheelevent_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698