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

Side by Side Diff: pkg/front_end/testcases/rasta/issue_000002.dart.direct.expect

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: 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 unified diff | Download patch
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 import "package:expect/expect.dart" as exp; 4 import "package:expect/expect.dart" as exp;
5 import "dart:typed_data" as typ; 5 import "dart:typed_data" as typ;
6 6
7 class Foo extends core::Object { 7 class Foo extends core::Object {
8 final field dynamic value; 8 final field dynamic value;
9 constructor •(dynamic value) → void 9 constructor •(dynamic value) → void
10 : self::Foo::value = value, super core::Object::•() {} 10 : self::Foo::value = value, super core::Object::•() {}
11 static factory fac(dynamic value) → dynamic { 11 static factory fac(dynamic value) → dynamic {
12 return new self::Foo::•(value); 12 return new self::Foo::•(value);
13 } 13 }
14 } 14 }
15 static field dynamic list = <dynamic>[1, 2, 3]; 15 static field dynamic list = <dynamic>[1, 2, 3];
16 static method main() → dynamic { 16 static method main() → dynamic {
17 exp::Expect::isTrue(typ::Uint8List::fromList(self::list).[](1).==(2)); 17 exp::Expect::isTrue(typ::Uint8List::fromList(self::list).[](1).==(2));
18 exp::Expect::isTrue(self::Foo::fac(10).value.==(10)); 18 exp::Expect::isTrue(self::Foo::fac(10).value.==(10));
19 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698