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

Unified Diff: tests/lib_strong/html/custom_elements_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 side-by-side diff with in-line comments
Download patch
Index: tests/lib_strong/html/custom_elements_test.dart
diff --git a/tests/lib_strong/html/custom_elements_test.dart b/tests/lib_strong/html/custom_elements_test.dart
index 05fe5d2b2728d2b94681ac387eabb04fc41f3040..233972ea365b6ebf06ed52138dd2be0dc6d31c61 100644
--- a/tests/lib_strong/html/custom_elements_test.dart
+++ b/tests/lib_strong/html/custom_elements_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library custom_elements_test;
+
import 'dart:async';
import 'dart:html';
import 'package:unittest/html_individual_config.dart';
@@ -17,11 +18,11 @@ class CustomMixin {
}
}
-class CustomType extends HtmlElement with CustomMixin{
+class CustomType extends HtmlElement with CustomMixin {
bool createdCalled = false;
factory CustomType() => null;
- CustomType.created(): super.created() {
+ CustomType.created() : super.created() {
createdCalled = true;
customCreatedCount++;
}
@@ -136,7 +137,7 @@ main() {
var element = new DivElement();
element.setInnerHtml('<$tag></$tag>',
treeSanitizer: new NullTreeSanitizer());
- upgradeCustomElements(element);
+ upgradeCustomElements(element);
document.body.nodes.add(element);
var queried = query(tag) as CustomType;
@@ -151,7 +152,7 @@ main() {
var element = new DivElement();
element.setInnerHtml('<$tag id="someid"></$tag>',
treeSanitizer: new NullTreeSanitizer());
- upgradeCustomElements(element);
+ upgradeCustomElements(element);
document.body.nodes.add(element);
var queried = query('#someid') as CustomType;

Powered by Google App Engine
This is Rietveld 408576698