OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |