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

Side by Side Diff: tests/language/super_bound_closure_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 @AssumeDynamic() 7 @AssumeDynamic()
8 @NoInline() 8 @NoInline()
9 confuse(x) => x; 9 confuse(x) => x;
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 fooIntercept21() => confuse(super.shuffle)(); 70 fooIntercept21() => confuse(super.shuffle)();
71 fooIntercept22() => confuse(super.shuffle)(2); 71 fooIntercept22() => confuse(super.shuffle)(2);
72 fooIntercept23() => confuse(super.toList)(); 72 fooIntercept23() => confuse(super.toList)();
73 fooIntercept24() => confuse(super.toList)(growable: 77); 73 fooIntercept24() => confuse(super.toList)(growable: 77);
74 fooIntercept25() => confuse(super.lastIndexOf)(-3); 74 fooIntercept25() => confuse(super.lastIndexOf)(-3);
75 fooIntercept26() => confuse(super.lastIndexOf)(-11, -19); 75 fooIntercept26() => confuse(super.lastIndexOf)(-11, -19);
76 fooIntercept27() => confuse(super.lastWhere)(0); 76 fooIntercept27() => confuse(super.lastWhere)(0);
77 fooIntercept28() => confuse(super.lastWhere)(3, orElse: 77); 77 fooIntercept28() => confuse(super.lastWhere)(3, orElse: 77);
78 78
79 bar([var optional]) => -1; /// 01: static type warning 79 bar([var optional]) => -1; //# 01: static type warning
80 bar2({ namedOptional }) => -1; /// 01: continued 80 bar2({ namedOptional }) => -1; //# 01: continued
81 bar3(x, [var optional]) => -1; /// 01: continued 81 bar3(x, [var optional]) => -1; //# 01: continued
82 bar4(x, { namedOptional }) => -1; /// 01: continued 82 bar4(x, { namedOptional }) => -1; //# 01: continued
83 83
84 gee([var optional]) => -1; /// 01: continued 84 gee([var optional]) => -1; //# 01: continued
85 gee2({ namedOptional }) => -1; /// 01: continued 85 gee2({ namedOptional }) => -1; //# 01: continued
86 gee3(x, [var optional]) => -1; /// 01: continued 86 gee3(x, [var optional]) => -1; //# 01: continued
87 gee4(x, { namedOptional }) => -1; /// 01: continued 87 gee4(x, { namedOptional }) => -1; //# 01: continued
88 88
89 add([var optional = 33]) => -1; 89 add([var optional = 33]) => -1;
90 trim({ namedOptional: 22 }) => -1; 90 trim({ namedOptional: 22 }) => -1;
91 sublist(x, [optional = 44]) => -1; 91 sublist(x, [optional = 44]) => -1;
92 splitMapJoin(x, { onMatch: 55, onNonMatch: 66}) => -1; 92 splitMapJoin(x, { onMatch: 55, onNonMatch: 66}) => -1;
93 93
94 shuffle([var optional = 121]) => -1; 94 shuffle([var optional = 121]) => -1;
95 toList({ growable: 2233 }) => -1; 95 toList({ growable: 2233 }) => -1;
96 lastIndexOf(x, [optional = 424]) => -1; 96 lastIndexOf(x, [optional = 424]) => -1;
97 lastWhere(x, { orElse: 555 }) => -1; 97 lastWhere(x, { orElse: 555 }) => -1;
98 } 98 }
99 99
100 main() { 100 main() {
101 var list = [new A(), new B(), [], "foo" ]; 101 var list = [new A(), new B(), [], "foo" ];
102 var a = list[confuse(0)]; 102 var a = list[confuse(0)];
103 var b = list[confuse(1)]; 103 var b = list[confuse(1)];
104 var ignored = list[confuse(2)]; 104 var ignored = list[confuse(2)];
105 var ignored2 = list[confuse(3)]; 105 var ignored2 = list[confuse(3)];
106 106
107 var t = b.gee() + b.gee2() + b.gee3(9) + b.gee4(19); 107 var t = b.gee() + b.gee2() + b.gee3(9) + b.gee4(19);
108 Expect.equals(-4, t); /// 01: continued 108 Expect.equals(-4, t); //# 01: continued
109 t = b.shuffle() + b.toList() + b.lastIndexOf(1) + b.lastWhere(2); 109 t = b.shuffle() + b.toList() + b.lastIndexOf(1) + b.lastWhere(2);
110 Expect.equals(-4, t); 110 Expect.equals(-4, t);
111 111
112 Expect.equals(499, b.foo()); /// 01: continued 112 Expect.equals(499, b.foo()); //# 01: continued
113 Expect.equals(500, b.foo2()); /// 01: continued 113 Expect.equals(500, b.foo2()); //# 01: continued
114 Expect.equals(42, b.foo3()); /// 01: continued 114 Expect.equals(42, b.foo3()); //# 01: continued
115 Expect.equals(117, b.foo4()); /// 01: continued 115 Expect.equals(117, b.foo4()); //# 01: continued
116 Expect.equals(498, b.foo5()); /// 01: continued 116 Expect.equals(498, b.foo5()); //# 01: continued
117 Expect.equals(468, b.foo6()); /// 01: continued 117 Expect.equals(468, b.foo6()); //# 01: continued
118 Expect.equals(426, b.foo7()); /// 01: continued 118 Expect.equals(426, b.foo7()); //# 01: continued
119 Expect.equals(502, b.foo8()); /// 01: continued 119 Expect.equals(502, b.foo8()); //# 01: continued
120 120
121 Expect.equals(499, b.fooGee()); /// 01: continued 121 Expect.equals(499, b.fooGee()); //# 01: continued
122 Expect.equals(500, b.fooGee2()); /// 01: continued 122 Expect.equals(500, b.fooGee2()); //# 01: continued
123 Expect.equals(42, b.fooGee3()); /// 01: continued 123 Expect.equals(42, b.fooGee3()); //# 01: continued
124 Expect.equals(117, b.fooGee4()); /// 01: continued 124 Expect.equals(117, b.fooGee4()); //# 01: continued
125 Expect.equals(498, b.fooGee5()); /// 01: continued 125 Expect.equals(498, b.fooGee5()); //# 01: continued
126 Expect.equals(468, b.fooGee6()); /// 01: continued 126 Expect.equals(468, b.fooGee6()); //# 01: continued
127 Expect.equals(426, b.fooGee7()); /// 01: continued 127 Expect.equals(426, b.fooGee7()); //# 01: continued
128 Expect.equals(502, b.fooGee8()); /// 01: continued 128 Expect.equals(502, b.fooGee8()); //# 01: continued
129 129
130 Expect.equals(1267, b.fooIntercept()); 130 Expect.equals(1267, b.fooIntercept());
131 Expect.equals(1236, b.fooIntercept2()); 131 Expect.equals(1236, b.fooIntercept2());
132 Expect.equals(1335, b.fooIntercept3()); 132 Expect.equals(1335, b.fooIntercept3());
133 Expect.equals(1390, b.fooIntercept4()); 133 Expect.equals(1390, b.fooIntercept4());
134 Expect.equals(4362, b.fooIntercept5()); 134 Expect.equals(4362, b.fooIntercept5());
135 Expect.equals(4291, b.fooIntercept6()); 135 Expect.equals(4291, b.fooIntercept6());
136 Expect.equals(232, b.fooIntercept7()); 136 Expect.equals(232, b.fooIntercept7());
137 Expect.equals(199, b.fooIntercept8()); 137 Expect.equals(199, b.fooIntercept8());
138 138
139 Expect.equals(12463, b.fooIntercept21()); 139 Expect.equals(12463, b.fooIntercept21());
140 Expect.equals(12344, b.fooIntercept22()); 140 Expect.equals(12344, b.fooIntercept22());
141 Expect.equals(15364, b.fooIntercept23()); 141 Expect.equals(15364, b.fooIntercept23());
142 Expect.equals(13208, b.fooIntercept24()); 142 Expect.equals(13208, b.fooIntercept24());
143 Expect.equals(14742, b.fooIntercept25()); 143 Expect.equals(14742, b.fooIntercept25());
144 Expect.equals(14291, b.fooIntercept26()); 144 Expect.equals(14291, b.fooIntercept26());
145 Expect.equals(1768, b.fooIntercept27()); 145 Expect.equals(1768, b.fooIntercept27());
146 Expect.equals(1771, b.fooIntercept28()); 146 Expect.equals(1771, b.fooIntercept28());
147 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698