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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/svgelement_test.dart

Issue 2419863002: Remove uses of unittest in the HTML tests where possible. (Closed)
Patch Set: Remove TODO. 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/svgelement_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/svgelement_test.dart b/pkg/dev_compiler/test/codegen/lib/html/svgelement_test.dart
index 1fa725996ad1ed9f94e2484e4ba5739678b83a8f..bd664207ca8bba9d7333d635f43bfe4fe6850c73 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/svgelement_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/svgelement_test.dart
@@ -2,16 +2,12 @@
// 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 SvgElementTest;
import 'dart:html';
import 'dart:svg' as svg;
-import 'package:expect/expect.dart';
-import 'package:unittest/html_individual_config.dart';
-import 'package:unittest/unittest.dart';
-main() {
- useHtmlIndividualConfiguration();
+import 'package:expect/minitest.dart';
+main() {
var isSvgSvgElement =
predicate((x) => x is svg.SvgSvgElement, 'is a SvgSvgElement');
@@ -47,12 +43,12 @@ main() {
"</svg>";
final el = new svg.SvgElement.svg(svgContent);
expect(el, isSvgSvgElement);
- expect(el.innerHtml, anyOf("<circle></circle><path></path>", '<circle '
+ expect(el.innerHtml, anyOf(["<circle></circle><path></path>", '<circle '
'xmlns="http://www.w3.org/2000/svg" /><path '
- 'xmlns="http://www.w3.org/2000/svg" />'));
- expect(el.outerHtml, anyOf(svgContent,
+ 'xmlns="http://www.w3.org/2000/svg" />']));
+ expect(el.outerHtml, anyOf([svgContent,
'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">\n '
- '<circle />\n <path />\n</svg>'));
+ '<circle />\n <path />\n</svg>']));
});
test('has no parent', () =>

Powered by Google App Engine
This is Rietveld 408576698