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

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

Issue 10917275: Update unittest to new package layout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/window_eq_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('../../pkg/unittest/unittest.dart'); 2 #import('../../pkg/unittest/lib/unittest.dart');
3 #import('../../pkg/unittest/html_config.dart'); 3 #import('../../pkg/unittest/lib/html_config.dart');
4 #import('dart:html'); 4 #import('dart:html');
5 5
6 void fail(message) { 6 void fail(message) {
7 guardAsync(() { 7 guardAsync(() {
8 Expect.fail(message); 8 Expect.fail(message);
9 }); 9 });
10 } 10 }
11 11
12 Future<SQLTransaction> createTransaction(Database db) { 12 Future<SQLTransaction> createTransaction(Database db) {
13 final completer = new Completer<SQLTransaction>(); 13 final completer = new Completer<SQLTransaction>();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Expect.equals(1, resultSet.rows.length); 107 Expect.equals(1, resultSet.rows.length);
108 var row = resultSet.rows.item(0); 108 var row = resultSet.rows.item(0);
109 Expect.isTrue(row.containsKey(columnName)); 109 Expect.isTrue(row.containsKey(columnName));
110 Expect.equals('Some text data', row[columnName]); 110 Expect.equals('Some text data', row[columnName]);
111 }); 111 });
112 })) 112 }))
113 .chain(dropTable(tableName)) 113 .chain(dropTable(tableName))
114 .then(expectAsync1((tx) {})); 114 .then(expectAsync1((tx) {}));
115 }); 115 });
116 } 116 }
OLDNEW
« no previous file with comments | « tests/html/websocket_test.dart ('k') | tests/html/window_eq_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698