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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/filteredelementlist_test.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 years, 2 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
Index: pkg/dev_compiler/test/codegen/lib/html/filteredelementlist_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/filteredelementlist_test.dart b/pkg/dev_compiler/test/codegen/lib/html/filteredelementlist_test.dart
index b4110f74a5ca5e590e109cd4452922d33a25a6eb..a9edf1b3629b6b2a874d1ef6c1a94b9e4ab86c54 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/filteredelementlist_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/filteredelementlist_test.dart
@@ -1,10 +1,8 @@
-library filteredelementlist_test;
-
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
import 'dart:html_common';
+import 'package:minitest/minitest.dart';
+
main() {
var t1 = new Text('T1'),
t2 = new Text('T2'),
@@ -28,8 +26,6 @@ main() {
return testDiv;
}
- useHtmlConfiguration();
-
test('FilteredElementList.insert test', () {
var i = new DivElement();
@@ -95,8 +91,8 @@ main() {
test('FilteredElementList.insertAndRemove', () {
var emptyDiv = new DivElement();
var elementList = new FilteredElementList(emptyDiv);
- expect(() => elementList[0], throwsA(isRangeError));
- expect(() => elementList.insert(2, new BRElement()), throwsA(isRangeError));
+ expect(() => elementList[0], throwsRangeError);
+ expect(() => elementList.insert(2, new BRElement()), throwsRangeError);
var br = new BRElement();
elementList.insert(0, br);
expect(elementList.removeLast(), br);
@@ -106,6 +102,6 @@ main() {
elementList.add(br);
expect(elementList.remove(br2), isFalse);
expect(elementList[0], br);
- expect(() => elementList[1], throwsA(isRangeError));
+ expect(() => elementList[1], throwsRangeError);
});
}
« no previous file with comments | « pkg/dev_compiler/test/codegen/lib/html/exceptions_test.dart ('k') | pkg/dev_compiler/test/codegen/lib/html/fontface_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698