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

Unified Diff: tests/html/input_element_test.dart

Issue 216113008: Adding test for InputElement.valueAsNumber (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | 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 43f245cf8156416d9e30be42f9f61db72b93ddf7..a70559ffc207aaeb649d13258824183bae701030 100644
--- a/tests/html/input_element_test.dart
+++ b/tests/html/input_element_test.dart
@@ -143,6 +143,11 @@ main() {
test('number', () {
check(new NumberInputElement(), 'number', NumberInputElement.supported);
+ if (NumberInputElement.supported) {
+ var element = new NumberInputElement();
+ element.value = '123';
+ expect(element.valueAsNumber, 123);
+ }
});
test('range', () {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698