Index: tests/html/selectelement_test.dart |
diff --git a/tests/html/selectelement_test.dart b/tests/html/selectelement_test.dart |
deleted file mode 100644 |
index 4f375510a09fa6af35c5446a84e415fada2b36dd..0000000000000000000000000000000000000000 |
--- a/tests/html/selectelement_test.dart |
+++ /dev/null |
@@ -1,40 +0,0 @@ |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
-#library('selectelement_test'); |
-#import('../../pkg/unittest/unittest.dart'); |
-#import('../../pkg/unittest/html_config.dart'); |
-#import('dart:html'); |
- |
-main() { |
- useHtmlConfiguration(); |
- |
- test('selectedOptions', () { |
- var element = new SelectElement(); |
- var options = [ |
- new OptionElement(), |
- new OptionElement('data', 'two', false, true), |
- new OptionElement('data', 'two', false, true), |
- new OptionElement(), |
- ]; |
- element.elements.addAll(options); |
- expect(element.selectedOptions.length, 1); |
- expect(element.selectedOptions[0] == options[2]); |
- }); |
- |
- test('multiple selectedOptions', () { |
- var element = new SelectElement(); |
- element.multiple = true; |
- var options = [ |
- new OptionElement(), |
- new OptionElement('data', 'two', false, true), |
- new OptionElement('data', 'two', false, true), |
- new OptionElement(), |
- ]; |
- element.elements.addAll(options); |
- expect(element.selectedOptions.length, 2); |
- expect(element.selectedOptions[0] == options[1]); |
- expect(element.selectedOptions[1] == options[2]); |
- }); |
-} |