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

Side by Side Diff: test/codegen/expect/language/regress_22777_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/regress_22777_test', null, /* Imports */[
2 'dart_sdk',
3 'expect',
4 'async_helper'
5 ], function load__regress_22777_test(exports, dart_sdk, expect, async_helper) {
6 'use strict';
7 const core = dart_sdk.core;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const expect$ = expect.expect;
11 const async_helper$ = async_helper.async_helper;
12 const regress_22777_test = Object.create(null);
13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
14 let dynamicTovoid = () => (dynamicTovoid = dart.constFn(dart.definiteFunctionT ype(dart.void, [dart.dynamic])))();
15 regress_22777_test.a = 0;
16 regress_22777_test.testSync = function() {
17 do {
18 continue;
19 } while (dart.test(dart.throw("Error")));
20 regress_22777_test.a = 100;
21 };
22 dart.fn(regress_22777_test.testSync, VoidTodynamic());
23 regress_22777_test.testAsync = function() {
24 return dart.async(function*() {
25 do {
26 continue;
27 } while (dart.test(yield dart.throw("Error")));
28 regress_22777_test.a = 100;
29 }, dart.dynamic);
30 };
31 dart.fn(regress_22777_test.testAsync, VoidTodynamic());
32 regress_22777_test.test = function() {
33 return dart.async(function*() {
34 try {
35 regress_22777_test.testSync();
36 } catch (e) {
37 expect$.Expect.equals(e, "Error");
38 }
39
40 expect$.Expect.equals(regress_22777_test.a, 0);
41 try {
42 yield regress_22777_test.testAsync();
43 } catch (e) {
44 expect$.Expect.equals(e, "Error");
45 }
46
47 expect$.Expect.equals(regress_22777_test.a, 0);
48 }, dart.dynamic);
49 };
50 dart.fn(regress_22777_test.test, VoidTodynamic());
51 regress_22777_test.main = function() {
52 async_helper$.asyncStart();
53 dart.dsend(regress_22777_test.test(), 'then', dart.fn(_ => async_helper$.asy ncEnd(), dynamicTovoid()));
54 };
55 dart.fn(regress_22777_test.main, VoidTodynamic());
56 // Exports:
57 exports.regress_22777_test = regress_22777_test;
58 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/regress_22728_test.js ('k') | test/codegen/expect/language/regress_22822_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698