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

Unified Diff: pkg/kernel/testcases/strong-mode/escape.baseline.txt

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 side-by-side diff with in-line comments
Download patch
Index: pkg/kernel/testcases/strong-mode/escape.baseline.txt
diff --git a/pkg/kernel/testcases/strong-mode/escape.baseline.txt b/pkg/kernel/testcases/strong-mode/escape.baseline.txt
deleted file mode 100644
index ff16c94a3c9c76c34992286629c95c54eeaae5c9..0000000000000000000000000000000000000000
--- a/pkg/kernel/testcases/strong-mode/escape.baseline.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-library;
-import self as self;
-import "dart:core" as core;
-
-class A extends core::Object {
- field dynamic field = null;
- constructor •() → void
- : super core::Object::•()
- ;
-}
-class B extends core::Object {
- field dynamic field = null;
- constructor •() → void
- : super core::Object::•()
- ;
-}
-class X extends core::Object implements self::A, self::B {
- field dynamic field = null;
- constructor •() → void
- : super core::Object::•()
- ;
-}
-static method useAsA(self::A object) → void {
- dynamic _ = object.{self::A::field};
-}
-static method useAsB(self::B object) → void {
- dynamic _ = object.{self::B::field};
- self::escape(object);
-}
-static method escape(dynamic x) → void {
- x.==(null) ? x = "" : null;
- x.==(null) ? x = 45 : null;
- if(!(x is core::int) && !(x is core::String)) {
- x.field = 45;
- }
-}
-static method main() → dynamic {
- self::X object = new self::X::•();
- self::useAsA(new self::A::•());
- self::useAsA(object);
- self::useAsB(new self::B::•());
- self::useAsB(object);
-}

Powered by Google App Engine
This is Rietveld 408576698