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

Unified Diff: pkg/kernel/testcases/input/micro.dart

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
« no previous file with comments | « pkg/kernel/testcases/input/fallthrough.dart ('k') | pkg/kernel/testcases/input/named_parameters.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/input/micro.dart
diff --git a/pkg/kernel/testcases/input/micro.dart b/pkg/kernel/testcases/input/micro.dart
deleted file mode 100644
index 910f336e440b5df2985cf391dca732cbc6550397..0000000000000000000000000000000000000000
--- a/pkg/kernel/testcases/input/micro.dart
+++ /dev/null
@@ -1,74 +0,0 @@
-staticMethod() {
- return "sdfg";
-}
-
-class Foo {
- instanceMethod() {
- return 123;
- }
-}
-
-external bool externalStatic();
-
-abstract class ExternalValue {}
-
-abstract class Bar {
- ExternalValue externalInstanceMethod();
-}
-
-external Bar createBar();
-
-class Box {
- var field;
-}
-
-stringArgument(x) {}
-
-intArgument(x) {}
-
-class FinalBox {
- final finalField;
- FinalBox(this.finalField);
-}
-
-class SubFinalBox extends FinalBox {
- SubFinalBox(value) : super(value);
-}
-
-class DynamicReceiver1 {
- dynamicallyCalled(x) {}
-}
-
-class DynamicReceiver2 {
- dynamicallyCalled(x) {}
-}
-
-void makeDynamicCall(receiver) {
- receiver.dynamicallyCalled("sdfg");
-}
-
-main() {
- var x = staticMethod();
- var y = new Foo().instanceMethod();
- var z = externalStatic();
- var w = createBar().externalInstanceMethod();
-
- stringArgument("sdfg");
- intArgument(42);
-
- var box = new Box();
- box.field = "sdfg";
- var a = box.field;
-
- var finalBox = new FinalBox("dfg");
- var b = finalBox.finalField;
-
- var subBox = new SubFinalBox("dfg");
- var c = subBox.finalField;
-
- makeDynamicCall(new DynamicReceiver1());
- makeDynamicCall(new DynamicReceiver2());
-
- var list = ["string"];
- var d = list[0];
-}
« no previous file with comments | « pkg/kernel/testcases/input/fallthrough.dart ('k') | pkg/kernel/testcases/input/named_parameters.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698