Index: tests/html/element_types_constructors6_test.dart |
diff --git a/tests/html/element_types_constructors6_test.dart b/tests/html/element_types_constructors6_test.dart |
index f294c4fa3dd86497695991f9b152cce4c203be6a..6049ffc72e736bb4a0e0dd3caf7b3eedfd71d9ed 100644 |
--- a/tests/html/element_types_constructors6_test.dart |
+++ b/tests/html/element_types_constructors6_test.dart |
@@ -11,6 +11,15 @@ import 'dart:html'; |
main() { |
useHtmlIndividualConfiguration(); |
+ check(String name, bool fn(), [bool supported = true]) { |
+ test(name, () { |
+ var expectation = supported ? returnsNormally : throws; |
+ expect(() { |
+ expect(fn(), isTrue); |
+ }, expectation); |
+ }); |
+ } |
+ |
group('ul', () { |
check('ul', () => new UListElement() is UListElement); |
@@ -20,6 +29,8 @@ main() { |
ul.append(li); |
}); |
}); |
- check('video', () => new VideoElement() is VideoElement); |
- check('unknown', () => new Element.tag('someunknown') is UnknownElement); |
+ group('constructors', () { |
+ check('video', () => new VideoElement() is VideoElement); |
+ check('unknown', () => new Element.tag('someunknown') is UnknownElement); |
+ }); |
} |