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

Side by Side Diff: pkg/kernel/testcases/strong-mode/covariant_generic.baseline.txt

Issue 2682653002: Mark kernel test as slow, regenerate baseline file (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class Foo<T extends core::Object> extends core::Object { 5 class Foo<T extends core::Object> extends core::Object {
6 final field self::Foo::T finalField; 6 final field self::Foo::T finalField;
7 final field (self::Foo::T) → void callbackField; 7 final field (self::Foo::T) → void callbackField;
8 field self::Foo::T mutableField = null; 8 field self::Foo::T mutableField = null;
9 field (self::Foo::T) → void mutableCallbackField = null; 9 field (self::Foo::T) → void mutableCallbackField = null;
10 constructor •(self::Foo::T finalField, (self::Foo::T) → void callbackField) → void 10 constructor •(self::Foo::T finalField, (self::Foo::T) → void callbackField) → void
11 : self::Foo::finalField = finalField, self::Foo::callbackField = callbackFie ld, super core::Object::•() 11 : self::Foo::finalField = finalField, self::Foo::callbackField = callbackFie ld, super core::Object::•()
12 ; 12 ;
13 method method(self::Foo::T x) → void {} 13 method method(self::Foo::T x) → void {}
14 set setter(self::Foo::T x) → void {} 14 set setter(self::Foo::T x) → void {}
15 method withCallback((self::Foo::T) → void callback) → void { 15 method withCallback((self::Foo::T) → void callback) → void {
16 callback.call(this.{self::Foo::finalField}); 16 callback.call(this.{self::Foo::finalField});
17 } 17 }
18 set /* from null */ mutableField$cc(core::Object mutableField_) → dynamic 18 set /* from null */ mutableField$cc(core::Object mutableField_) → dynamic
19 this.{=self::Foo::mutableField} = mutableField_ as self::Foo::T; 19 this.{=self::Foo::mutableField} = mutableField_ as self::Foo::T;
20 method method$cc(core::Object x) → void 20 method method$cc(core::Object x) → void
21 this.{=self::Foo::method}(x as self::Foo::T); 21 this.{=self::Foo::method}(x as self::Foo::T);
22 set setter$cc(core::Object x) → void 22 set setter$cc(core::Object x) → void
23 this.{=self::Foo::setter} = x as self::Foo::T; 23 this.{=self::Foo::setter} = x as self::Foo::T;
24 } 24 }
25 static method main() → dynamic { 25 static method main() → dynamic {
26 self::Foo<core::int> fooInt = new self::Foo::•<core::int>(1, (core::int x) → v oid {}); 26 self::Foo<core::int> fooInt = new self::Foo::•<core::int>(1, (core::int x) → c ore::Null {});
27 fooInt.{self::Foo::method}(3); 27 fooInt.{self::Foo::method}(3);
28 fooInt.{self::Foo::setter} = 3; 28 fooInt.{self::Foo::setter} = 3;
29 fooInt.{self::Foo::withCallback}((core::int x) → void {}); 29 fooInt.{self::Foo::withCallback}((core::int x) → core::Null {});
30 fooInt.{self::Foo::withCallback}((core::num x) → void {}); 30 fooInt.{self::Foo::withCallback}((core::num x) → core::Null {});
31 fooInt.{self::Foo::mutableField} = 3; 31 fooInt.{self::Foo::mutableField} = 3;
32 fooInt.{self::Foo::mutableCallbackField} = (core::int x) → void {}; 32 fooInt.{self::Foo::mutableCallbackField} = (core::int x) → core::Null {};
33 self::Foo<core::num> fooNum = fooInt; 33 self::Foo<core::num> fooNum = fooInt;
34 fooNum.{self::Foo::method$cc}(3); 34 fooNum.{self::Foo::method$cc}(3);
35 fooNum.{self::Foo::method$cc}(2.5); 35 fooNum.{self::Foo::method$cc}(2.5);
36 fooNum.{self::Foo::setter$cc} = 3; 36 fooNum.{self::Foo::setter$cc} = 3;
37 fooNum.{self::Foo::setter$cc} = 2.5; 37 fooNum.{self::Foo::setter$cc} = 2.5;
38 fooNum.{self::Foo::withCallback}((core::num x) → void {}); 38 fooNum.{self::Foo::withCallback}((core::num x) → core::Null {});
39 fooNum.{self::Foo::mutableField$cc} = 3; 39 fooNum.{self::Foo::mutableField$cc} = 3;
40 fooNum.{self::Foo::mutableField$cc} = 2.5; 40 fooNum.{self::Foo::mutableField$cc} = 2.5;
41 fooNum.{self::Foo::mutableCallbackField}.call(3); 41 fooNum.{self::Foo::mutableCallbackField}.call(3);
42 fooNum.{self::Foo::mutableCallbackField}.call(2.5); 42 fooNum.{self::Foo::mutableCallbackField}.call(2.5);
43 fooNum.{self::Foo::mutableCallbackField} = (core::num x) → void {}; 43 fooNum.{self::Foo::mutableCallbackField} = (core::num x) → core::Null {};
44 } 44 }
OLDNEW
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698