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

Side by Side Diff: tests/html/custom/document_register_template_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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 import 'package:unittest/unittest.dart'; 1 import 'package:unittest/unittest.dart';
2 import 'package:unittest/html_config.dart'; 2 import 'package:unittest/html_config.dart';
3 import 'dart:html'; 3 import 'dart:html';
4 import '../utils.dart'; 4 import '../utils.dart';
5 5
6 main() { 6 main() {
7 useHtmlConfiguration(); 7 useHtmlConfiguration();
8 8
9 setUp(() => customElementsReady); 9 setUp(() => customElementsReady);
10 10
11 test('can register custom template with webcomponents-lite polyfill', () { 11 test('can register custom template with webcomponents-lite polyfill', () {
12 document.registerElement('my-element', MyElement, extendsTag: 'template'); 12 document.registerElement('my-element', MyElement, extendsTag: 'template');
13 var e = new Element.tag('template', 'my-element'); 13 var e = new Element.tag('template', 'my-element');
14 document.body.append(e); 14 document.body.append(e);
15 expect(e is TemplateElement, isTrue); 15 expect(e is TemplateElement, isTrue);
16 expect(e.method(), 'value'); 16 expect(e.method(), 'value');
17 }); 17 });
18 } 18 }
19 19
20
21 class MyElement extends TemplateElement { 20 class MyElement extends TemplateElement {
22 MyElement.created() : super.created(); 21 MyElement.created() : super.created();
23 method() => 'value'; 22 method() => 'value';
24 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698