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

Unified Diff: test/codegen/cascade.dart

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 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 | « test/codegen/DeltaBlue.dart ('k') | test/codegen/constructors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/cascade.dart
diff --git a/test/codegen/cascade.dart b/test/codegen/cascade.dart
deleted file mode 100644
index 786c88a0f6da3a8c622048177fc4e0739f4ac1ff..0000000000000000000000000000000000000000
--- a/test/codegen/cascade.dart
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class A {
- var x;
-}
-
-void test_closure_with_mutate() {
- var a = new A();
- a.x = () {
- print("hi");
- a = null;
- };
- a
- ..x()
- ..x();
- print(a);
-}
-
-void test_closure_without_mutate() {
- var a = new A();
- a.x = () {
- print(a);
- };
- a
- ..x()
- ..x();
- print(a);
-}
-
-void test_mutate_inside_cascade() {
- var a;
- a = new A()
- ..x = (a = null)
- ..x = (a = null);
- print(a);
-}
-
-void test_mutate_outside_cascade() {
- var a, b;
- a = new A()
- ..x = (b = null)
- ..x = (b = null);
- a = null;
- print(a);
-}
-
-void test_VariableDeclaration_single() {
- var a = []
- ..length = 2
- ..add(42);
- print(a);
-}
-
-void test_VariableDeclaration_last() {
- var a = 42,
- b = []
- ..length = 2
- ..add(a);
- print(b);
-}
-
-void test_VariableDeclaration_first() {
- var a = []
- ..length = 2
- ..add(3),
- b = 2;
- print(a);
-}
-
-void test_increment() {
- var a = new A();
- var y = a
- ..x += 1
- ..x -= 1;
-}
-
-class Base<T> {
- final List<T> x = <T>[];
-}
-
-class Foo extends Base<int> {
- void test_final_field_generic(t) {
- x..add(1)..add(2)..add(3)..add(4);
- }
-}
« no previous file with comments | « test/codegen/DeltaBlue.dart ('k') | test/codegen/constructors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698