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

Unified Diff: tests/html/custom_elements_23127_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_elements_23127_test.dart
diff --git a/tests/html/custom_elements_23127_test.dart b/tests/html/custom_elements_23127_test.dart
index 6386690e2e0eb5c5d1aafcc552e590a7ba458c00..6595ea53ab185b53c8a0ff748ac3f7a03f274fe6 100644
--- a/tests/html/custom_elements_23127_test.dart
+++ b/tests/html/custom_elements_23127_test.dart
@@ -2,12 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
// Regression test for http://dartbug.com/23127
// Tests super calls to a custom element upgrade constructor with various
// combinations of parameters and type arguments.
library custom_elements_23127_test;
+
import 'dart:async';
import 'dart:html';
import 'package:unittest/html_individual_config.dart';
@@ -35,7 +35,7 @@ abstract class B2 extends HtmlElement {
void action();
var qq;
B2.created([a = 1, b = 2, c = 3])
- : qq = callTwice(() => ++a * ++b), // [a] and [b] are boxed.
+ : qq = callTwice(() => ++a * ++b), // [a] and [b] are boxed.
super.created() {
action();
qq = [qq, a, b, c];
@@ -77,8 +77,6 @@ class C2T extends B2T {
action() => z = 3;
}
-
-
var callTwice;
main() {
@@ -86,7 +84,10 @@ main() {
setUp(() => customElementsReady);
- callTwice = (f) { f(); return f(); };
+ callTwice = (f) {
+ f();
+ return f();
+ };
group('baseline', () {
test('C1', () {
@@ -122,5 +123,4 @@ main() {
expect(e.qq, [true, 88, 22, 4, 3]);
});
});
-
}

Powered by Google App Engine
This is Rietveld 408576698