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

Unified Diff: test/codegen/expect/syncstar_syntax.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/sunflower/sunflower.js.map ('k') | test/codegen/expect/syncstar_syntax.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/syncstar_syntax.js
diff --git a/test/codegen/expect/syncstar_syntax.js b/test/codegen/expect/syncstar_syntax.js
deleted file mode 100644
index b78fb69ca48b01dc8f31a4b7c8067e30f4aabb90..0000000000000000000000000000000000000000
--- a/test/codegen/expect/syncstar_syntax.js
+++ /dev/null
@@ -1,53 +0,0 @@
-dart_library.library('syncstar_syntax', null, /* Imports */[
- 'dart_sdk',
- 'expect'
-], function(exports, dart_sdk, expect) {
- 'use strict';
- const core = dart_sdk.core;
- const dart = dart_sdk.dart;
- const dartx = dart_sdk.dartx;
- const expect$ = expect.expect;
- const syncstar_syntax = Object.create(null);
- syncstar_syntax.foo = function() {
- return dart.syncStar(function*() {
- yield 1;
- yield* dart.list([2, 3], core.int);
- }, core.int);
- };
- dart.fn(syncstar_syntax.foo, core.Iterable$(core.int), []);
- syncstar_syntax.Class = class Class extends core.Object {
- bar() {
- return dart.syncStar(function*() {
- yield 1;
- yield* dart.list([2, 3], core.int);
- }, core.int);
- }
- static baz() {
- return dart.syncStar(function*() {
- yield 1;
- yield* dart.list([2, 3], core.int);
- }, core.int);
- }
- };
- dart.setSignature(syncstar_syntax.Class, {
- methods: () => ({bar: [core.Iterable$(core.int), []]}),
- statics: () => ({baz: [core.Iterable$(core.int), []]}),
- names: ['baz']
- });
- syncstar_syntax.main = function() {
- function qux() {
- return dart.syncStar(function*() {
- yield 1;
- yield* dart.list([2, 3], core.int);
- }, core.int);
- }
- dart.fn(qux, core.Iterable$(core.int), []);
- expect$.Expect.listEquals(dart.list([1, 2, 3], core.int), syncstar_syntax.foo()[dartx.toList]());
- expect$.Expect.listEquals(dart.list([1, 2, 3], core.int), new syncstar_syntax.Class().bar()[dartx.toList]());
- expect$.Expect.listEquals(dart.list([1, 2, 3], core.int), syncstar_syntax.Class.baz()[dartx.toList]());
- expect$.Expect.listEquals(dart.list([1, 2, 3], core.int), qux()[dartx.toList]());
- };
- dart.fn(syncstar_syntax.main);
- // Exports:
- exports.syncstar_syntax = syncstar_syntax;
-});
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.js.map ('k') | test/codegen/expect/syncstar_syntax.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698