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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/htmloptionscollection_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 side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/test/codegen/lib/html/htmloptionscollection_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/htmloptionscollection_test.dart b/pkg/dev_compiler/test/codegen/lib/html/htmloptionscollection_test.dart
index cc5166a32fa26d052d93d7ca24cc4b9c90880381..264dc23effb1fc9b601196d6c33ef3bb1a5a0a1a 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/htmloptionscollection_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/htmloptionscollection_test.dart
@@ -2,18 +2,15 @@
// 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 HTMLOptionsCollectionTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
-main() {
- useHtmlConfiguration();
+import 'package:minitest/minitest.dart';
+main() {
test('indexedAccessTest', () {
// FIXME: we need some massaging to dart:html to enable HTMLOptionsCollection.add
// and hence programatic building of collection.
- final selectElement = new Element.html('''
+ SelectElement selectElement = new Element.html('''
<select>
<option value="0">Option0</option>
<option value="1">Option1</option>
@@ -29,7 +26,7 @@ main() {
expect(optionsCollection[1].text, equals('Option1'));
expect(optionsCollection[2].text, equals('Option2'));
- expect(() { optionsCollection[0] = 1; }, throws);
+ expect(() { (optionsCollection as dynamic)[0] = 1; }, throws);
// OPTIONALS optionsCollection[0] = new OptionElement(value: '42', data: 'Option42');
expect(() {

Powered by Google App Engine
This is Rietveld 408576698