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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/custom/document_register_type_extensions_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library document_register_type_extensions_test;
6 import 'package:unittest/unittest.dart';
7 import 'package:unittest/html_individual_config.dart';
8 import 'dart:html'; 5 import 'dart:html';
6
7 import 'package:expect/minitest.dart';
8
9 import '../utils.dart'; 9 import '../utils.dart';
10 10
11 class Foo extends HtmlElement { 11 class Foo extends HtmlElement {
12 static const tag = 'x-foo'; 12 static const tag = 'x-foo';
13 static final List outerHtmlStrings = [ 13 static final List outerHtmlStrings = [
14 '<x-foo></x-foo>', 14 '<x-foo></x-foo>',
15 '<?XML:NAMESPACE PREFIX = PUBLIC NS = "URN:COMPONENT" /><x-foo></x-foo>']; 15 '<?XML:NAMESPACE PREFIX = PUBLIC NS = "URN:COMPONENT" /><x-foo></x-foo>'];
16 factory Foo() => new Element.tag(tag); 16 factory Foo() => new Element.tag(tag);
17 Foo.created() : super.created(); 17 Foo.created() : super.created();
18 } 18 }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 group('functional', () { 309 group('functional', () {
310 setUp(registerTypes); 310 setUp(registerTypes);
311 311
312 test('canvas', () { 312 test('canvas', () {
313 var canvas = new MyCanvas(); 313 var canvas = new MyCanvas();
314 canvas.fillAsRed(); 314 canvas.fillAsRed();
315 }); 315 });
316 }); 316 });
317 } 317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698