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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/input_element_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 unified diff | Download patch
OLDNEW
1 library input_element_test;
2 import 'package:unittest/unittest.dart';
3 import 'package:unittest/html_individual_config.dart';
4 import 'dart:html'; 1 import 'dart:html';
5 2
3 import 'package:minitest/minitest.dart';
4
6 void check(InputElement element, String type, [bool supported = true]) { 5 void check(InputElement element, String type, [bool supported = true]) {
7 expect(element is InputElement, true); 6 expect(element is InputElement, true);
8 if (supported) { 7 if (supported) {
9 expect(element.type, type); 8 expect(element.type, type);
10 } else { 9 } else {
11 expect(element.type, 'text'); 10 expect(element.type, 'text');
12 } 11 }
13 } 12 }
14 13
15 main() { 14 main() {
16 useHtmlIndividualConfiguration();
17
18 group('supported_search', () { 15 group('supported_search', () {
19 test('supported', () { 16 test('supported', () {
20 expect(SearchInputElement.supported, true); 17 expect(SearchInputElement.supported, true);
21 }); 18 });
22 }); 19 });
23 20
24 group('supported_url', () { 21 group('supported_url', () {
25 test('supported', () { 22 test('supported', () {
26 expect(UrlInputElement.supported, true); 23 expect(UrlInputElement.supported, true);
27 }); 24 });
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 }); 183 });
187 test('valueSetNullProxy', () { 184 test('valueSetNullProxy', () {
188 final e = new TextInputElement(); 185 final e = new TextInputElement();
189 e.value = _undefined; 186 e.value = _undefined;
190 expect(e.value, ''); 187 expect(e.value, '');
191 }); 188 });
192 }); 189 });
193 } 190 }
194 191
195 var _undefined = (() => new List(5)[0])(); 192 var _undefined = (() => new List(5)[0])();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698