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

Unified Diff: tests/compiler/dart2js/kernel/compile_from_dill_test.dart

Issue 2959773003: Share test-source between full emitter and fast startup emitter dill tests. (Closed)
Patch Set: Created 3 years, 6 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: tests/compiler/dart2js/kernel/compile_from_dill_test.dart
diff --git a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
index a2765bed59fb222d1d6bf83d35a4f50bf2a8f9c3..575b8a758fb3ac6678829d1d9f144698f3b422c4 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
@@ -12,63 +12,6 @@ import '../serialization/helper.dart';
import 'compile_from_dill_test_helper.dart';
-const SOURCE = const {
- 'main.dart': '''
-foo({named}) => 1;
-bar(a) => !a;
-class Class {
- var field;
- static var staticField;
-
- Class();
- Class.named(this.field);
-
- method() {}
-}
-
-class SubClass extends Class {
- method() {
- super.method();
- }
-}
-main() {
- foo();
- bar(true);
- [];
- {};
- new Object();
- new Class.named('');
- new SubClass().method();
- Class.staticField;
- var x = null;
- var y1 = x == null;
- var y2 = null == x;
- var z1 = x?.toString();
- var z2 = x ?? y1;
- var z3 = x ??= y2;
- var w = x == null ? null : x.toString();
- for (int i = 0; i < 10; i++) {
- if (i == 5) continue;
- x = i;
- if (i == 5) break;
- }
- int i = 0;
- while (i < 10) {
- if (i == 5) continue;
- x = i;
- if (i == 5) break;
- }
- for (var v in [3, 5]) {
- if (v == 5) continue;
- x = v;
- if (v == 5) break;
- }
- print(x);
- return x;
-}
-'''
-};
-
main(List<String> args) {
asyncTest(() async {
await mainInternal(args);

Powered by Google App Engine
This is Rietveld 408576698