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

Unified Diff: tests/html/element_types_constructors6_test.dart

Issue 988243005: Fix element_types_constructors split out tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/element_types_constructors5_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
}
« no previous file with comments | « tests/html/element_types_constructors5_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698