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

Unified Diff: tests/html/form_data_test.dart

Issue 226903002: tests/html: removed usage of deprecated unittest features (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/dromaeo_smoke_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/form_data_test.dart
diff --git a/tests/html/form_data_test.dart b/tests/html/form_data_test.dart
index af17116dd2c315fbd2e5de4572857b168424cdbf..0435f864794568ee1a7cc251747ba04349d775e7 100644
--- a/tests/html/form_data_test.dart
+++ b/tests/html/form_data_test.dart
@@ -8,12 +8,6 @@ import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:html';
-void fail(message) {
- guardAsync(() {
- expect(false, isTrue, reason: message);
- });
-}
-
void main() {
// TODO(efortuna): This is a bad test. Revisit when we have tests that can run
// both a server and fire up a browser.
@@ -79,7 +73,7 @@ void main() {
'${window.location.protocol}//${window.location.host}/echo');
xhr.onLoad.listen(expectAsync((e) {
- expect(xhr.responseText.contains(blobString), true);
+ expect(xhr.responseText, contains(blobString));
}));
xhr.onError.listen((e) {
fail('$e');
« no previous file with comments | « tests/html/dromaeo_smoke_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698