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

Side by Side Diff: tests/html/input_element_test.dart

Issue 14190019: Allow null assignments if there is a corresponding marker. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/dom/scripts/systemnative.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library input_element_test; 1 library input_element_test;
2 import '../../pkg/unittest/lib/unittest.dart'; 2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_individual_config.dart'; 3 import '../../pkg/unittest/lib/html_individual_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 5
6 void check(InputElement element, String type, [bool supported = true]) { 6 void check(InputElement element, String type, [bool supported = true]) {
7 expect(element is InputElement, true); 7 expect(element is InputElement, true);
8 if (supported) { 8 if (supported) {
9 expect(element.type, type); 9 expect(element.type, type);
10 } else { 10 } else {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 }); 170 });
171 171
172 test('reset', () { 172 test('reset', () {
173 check(new ResetButtonInputElement(), 'reset'); 173 check(new ResetButtonInputElement(), 'reset');
174 }); 174 });
175 175
176 test('button', () { 176 test('button', () {
177 check(new ButtonInputElement(), 'button'); 177 check(new ButtonInputElement(), 'button');
178 }); 178 });
179 }); 179 });
180
181 group('attributes', () {
182 test('value = null', () {
podivilov1 2013/04/26 08:14:05 test name might be confusing, valueSetNull maybe?
Anton Muhin 2013/04/26 08:47:53 Done.
183 final e = new TextInputElement();
184 e.value = null;
185 expect(e.value, '');
186 });
187 });
180 } 188 }
OLDNEW
« no previous file with comments | « no previous file | tools/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698