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

Unified Diff: tests/html/custom/element_upgrade_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/html/custom/element_upgrade_test.dart
diff --git a/tests/html/custom/element_upgrade_test.dart b/tests/html/custom/element_upgrade_test.dart
index c8e7376ea4516a109427c02b646694f50427ce21..a8bdee13f410b083b4e7a9185741da30a6215369 100644
--- a/tests/html/custom/element_upgrade_test.dart
+++ b/tests/html/custom/element_upgrade_test.dart
@@ -33,16 +33,16 @@ main() {
var registered = false;
var upgrader;
setUp(() => customElementsReady.then((_) {
- if (!registered) {
- registered = true;
- upgrader = document.createElementUpgrader(FooElement);
- js.context['upgradeListener'] = (e) {
- upgrader.upgrade(e);
- };
+ if (!registered) {
+ registered = true;
+ upgrader = document.createElementUpgrader(FooElement);
+ js.context['upgradeListener'] = (e) {
+ upgrader.upgrade(e);
+ };
- document.registerElement('custom-element', CustomElement);
- }
- }));
+ document.registerElement('custom-element', CustomElement);
+ }
+ }));
test('created gets proxied', () {
var element = document.createElement(FooElement.tag);
@@ -99,8 +99,7 @@ main() {
});
test('can upgrade with extendsTag', () {
- var upgrader =
- document.createElementUpgrader(CustomDiv, extendsTag: 'div');
+ var upgrader = document.createElementUpgrader(CustomDiv, extendsTag: 'div');
var div = new DivElement();
var customDiv = upgrader.upgrade(div);
expect(customDiv is CustomDiv, isTrue);

Powered by Google App Engine
This is Rietveld 408576698