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

Unified Diff: test/codegen/expect/cascade.js

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/expect/async_helper/async_helper.txt ('k') | test/codegen/expect/cascade.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/cascade.js
diff --git a/test/codegen/expect/cascade.js b/test/codegen/expect/cascade.js
deleted file mode 100644
index 57db11730e984a33770d487c657063ffdeae3e39..0000000000000000000000000000000000000000
--- a/test/codegen/expect/cascade.js
+++ /dev/null
@@ -1,115 +0,0 @@
-dart_library.library('cascade', null, /* Imports */[
- 'dart_sdk'
-], function(exports, dart_sdk) {
- 'use strict';
- const core = dart_sdk.core;
- const dart = dart_sdk.dart;
- const dartx = dart_sdk.dartx;
- const cascade = Object.create(null);
- cascade.A = class A extends core.Object {
- new() {
- this.x = null;
- }
- };
- cascade.test_closure_with_mutate = function() {
- let a = new cascade.A();
- a.x = dart.fn(() => {
- core.print("hi");
- a = null;
- });
- let _ = a;
- dart.dsend(_, 'x');
- dart.dsend(_, 'x');
- core.print(a);
- };
- dart.fn(cascade.test_closure_with_mutate, dart.void, []);
- cascade.test_closure_without_mutate = function() {
- let a = new cascade.A();
- a.x = dart.fn(() => {
- core.print(a);
- });
- dart.dsend(a, 'x');
- dart.dsend(a, 'x');
- core.print(a);
- };
- dart.fn(cascade.test_closure_without_mutate, dart.void, []);
- cascade.test_mutate_inside_cascade = function() {
- let a = null;
- let _ = new cascade.A();
- _.x = a = null;
- _.x = a = null;
- a = _;
- core.print(a);
- };
- dart.fn(cascade.test_mutate_inside_cascade, dart.void, []);
- cascade.test_mutate_outside_cascade = function() {
- let a = null, b = null;
- a = new cascade.A();
- a.x = b = null;
- a.x = b = null;
- a = null;
- core.print(a);
- };
- dart.fn(cascade.test_mutate_outside_cascade, dart.void, []);
- cascade.test_VariableDeclaration_single = function() {
- let a = [];
- a[dartx.length] = 2;
- a[dartx.add](42);
- core.print(a);
- };
- dart.fn(cascade.test_VariableDeclaration_single, dart.void, []);
- cascade.test_VariableDeclaration_last = function() {
- let a = 42, b = (() => {
- let _ = [];
- _[dartx.length] = 2;
- _[dartx.add](a);
- return _;
- })();
- core.print(b);
- };
- dart.fn(cascade.test_VariableDeclaration_last, dart.void, []);
- cascade.test_VariableDeclaration_first = function() {
- let a = (() => {
- let _ = [];
- _[dartx.length] = 2;
- _[dartx.add](3);
- return _;
- })(), b = 2;
- core.print(a);
- };
- dart.fn(cascade.test_VariableDeclaration_first, dart.void, []);
- cascade.test_increment = function() {
- let a = new cascade.A();
- let y = ((() => {
- a.x = dart.dsend(a.x, '+', 1);
- a.x = dart.dsend(a.x, '-', 1);
- return a;
- })());
- };
- dart.fn(cascade.test_increment, dart.void, []);
- cascade.Base$ = dart.generic(T => {
- class Base extends core.Object {
- new() {
- this.x = dart.list([], T);
- }
- }
- return Base;
- });
- cascade.Base = cascade.Base$();
- cascade.Foo = class Foo extends cascade.Base$(core.int) {
- new() {
- super.new();
- }
- test_final_field_generic(t) {
- this.x[dartx.add](1);
- this.x[dartx.add](2);
- this.x[dartx.add](3);
- this.x[dartx.add](4);
- }
- };
- dart.setSignature(cascade.Foo, {
- methods: () => ({test_final_field_generic: [dart.void, [dart.dynamic]]})
- });
- // Exports:
- exports.cascade = cascade;
-});
« no previous file with comments | « test/codegen/expect/async_helper/async_helper.txt ('k') | test/codegen/expect/cascade.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698