Index: tests/lib_strong/html/custom_elements_23127_test.dart |
diff --git a/tests/lib_strong/html/custom_elements_23127_test.dart b/tests/lib_strong/html/custom_elements_23127_test.dart |
index 7b0f5764e272c36ed14410b3e97cf531064f8cbd..559dbb1060502d06c4b0cb2d17f56969e0d08af8 100644 |
--- a/tests/lib_strong/html/custom_elements_23127_test.dart |
+++ b/tests/lib_strong/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]; |
@@ -56,29 +56,35 @@ abstract class B2T<T> extends HtmlElement { |
class C1 extends B1 { |
int z; |
C1.created() : super.created(); |
- action() { z = 3; } |
+ action() { |
+ z = 3; |
+ } |
} |
class C1T extends B1T { |
int z; |
C1T.created() : super.created(); |
- action() { z = 3; } |
+ action() { |
+ z = 3; |
+ } |
} |
class C2 extends B2 { |
int z; |
C2.created() : super.created(20); |
- action() { z = 3; } |
+ action() { |
+ z = 3; |
+ } |
} |
class C2T extends B2T { |
int z; |
C2T.created() : super.created(20); |
- action() { z = 3; } |
+ action() { |
+ z = 3; |
+ } |
} |
- |
- |
var callTwice; |
main() { |
@@ -86,7 +92,10 @@ main() { |
setUp(() => customElementsReady); |
- callTwice = (f) { f(); return f(); }; |
+ callTwice = (f) { |
+ f(); |
+ return f(); |
+ }; |
group('baseline', () { |
test('C1', () { |
@@ -122,5 +131,4 @@ main() { |
expect(e.qq, [true, 88, 22, 4, 3]); |
}); |
}); |
- |
} |