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); |
}); |
} |