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

Unified Diff: tests/html/input_element_test.dart

Issue 11692011: Fixing up input element support checks for IE9. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/html.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/input_element_test.dart
diff --git a/tests/html/input_element_test.dart b/tests/html/input_element_test.dart
index c4946cf6944a22dd49df57f15a2c3b0aeb38e209..8f63658a8db044fa92b02e76cc8bc40402ad19d6 100644
--- a/tests/html/input_element_test.dart
+++ b/tests/html/input_element_test.dart
@@ -15,6 +15,30 @@ void check(InputElement element, String type, [bool supported = true]) {
main() {
useHtmlIndividualConfiguration();
+ group('supported_search', () {
+ test('supported', () {
+ expect(SearchInputElement.supported, true);
+ });
+ });
+
+ group('supported_url', () {
+ test('supported', () {
+ expect(UrlInputElement.supported, true);
+ });
+ });
+
+ group('supported_tel', () {
+ test('supported', () {
+ expect(TelephoneInputElement.supported, true);
+ });
+ });
+
+ group('supported_email', () {
+ test('supported', () {
+ expect(EmailInputElement.supported, true);
+ });
+ });
+
group('supported_datetime', () {
test('supported', () {
expect(DateTimeInputElement.supported, true);
@@ -69,7 +93,7 @@ main() {
});
test('search', () {
- check(new SearchInputElement(), 'search');
+ check(new SearchInputElement(), 'search', SearchInputElement.supported);
});
test('text', () {
@@ -77,15 +101,16 @@ main() {
});
test('url', () {
- check(new UrlInputElement(), 'url');
+ check(new UrlInputElement(), 'url', UrlInputElement.supported);
});
test('telephone', () {
- check(new TelephoneInputElement(), 'tel');
+ check(new TelephoneInputElement(), 'tel',
+ TelephoneInputElement.supported);
});
test('email', () {
- check(new EmailInputElement(), 'email');
+ check(new EmailInputElement(), 'email', EmailInputElement.supported);
});
test('password', () {
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698