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

Side by Side Diff: test/codegen/expect/unittest.js

Issue 1641643004: Roll analyzer to 0.27.2-alpha.1 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rerun tests and format Created 4 years, 10 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
« no previous file with comments | « test/codegen/expect/misc.js ('k') | test/codegen/expect/unittest/unittest.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('unittest', null, /* Imports */[ 1 dart_library.library('unittest', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'matcher/matcher', 3 'matcher/matcher',
4 'dom/dom', 4 'dom/dom',
5 'dart/core', 5 'dart/core',
6 'dart/async', 6 'dart/async',
7 'matcher/src/interfaces', 7 'matcher/src/interfaces',
8 'matcher/src/util', 8 'matcher/src/util',
9 'matcher/src/description' 9 'matcher/src/description'
10 ], /* Lazy imports */[ 10 ], /* Lazy imports */[
11 ], function(exports, dart, matcher, dom, core, async, interfaces, util, descript ion$) { 11 ], function(exports, dart, matcher, dom, core, async, interfaces, util, descript ion$) {
12 'use strict'; 12 'use strict';
13 let dartx = dart.dartx; 13 let dartx = dart.dartx;
14 dart.export(exports, matcher); 14 dart.export(exports, matcher);
15 function group(name, body) { 15 function group(name, body) {
16 return dart.dsend(dom.window, 'suite', name, body); 16 return dart.dsend(dom.window, 'suite', name, body);
17 } 17 }
18 dart.fn(group, dart.void, [core.String, dart.functionType(dart.void, [])]); 18 dart.fn(group, dart.void, [core.String, dart.functionType(dart.void, [])]);
19 function test(name, body, opts) { 19 function test(name, body, opts) {
20 let skip = opts && 'skip' in opts ? opts.skip : null; 20 let skip = opts && 'skip' in opts ? opts.skip : null;
21 if (skip != null) { 21 if (skip != null) {
22 core.print(`SKIP ${name}: ${skip}`); 22 core.print(`SKIP ${name}: ${skip}`);
23 return; 23 return;
24 } 24 }
25 dart.dsend(dom.window, 'test', name, dart.fn(done => { 25 dart.dsend(dom.window, 'test', name, dart.fn(done => {
26 function _finishTest(f) { 26 function _finishTest(f) {
27 if (dart.is(f, async.Future)) { 27 if (dart.is(f, async.Future)) {
28 dart.dsend(f, 'then', _finishTest); 28 f.then(_finishTest);
29 } else { 29 } else {
30 dart.dcall(done); 30 dart.dcall(done);
31 } 31 }
32 } 32 }
33 dart.fn(_finishTest); 33 dart.fn(_finishTest);
34 _finishTest(body()); 34 _finishTest(body());
35 })); 35 }));
36 } 36 }
37 dart.fn(test, dart.void, [core.String, dart.functionType(dart.dynamic, [])], { skip: core.String}); 37 dart.fn(test, dart.void, [core.String, dart.functionType(dart.dynamic, [])], { skip: core.String});
38 class TestFailure extends core.Object { 38 class TestFailure extends core.Object {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 dart.fn(_defaultFailFormatter, core.String, [dart.dynamic, interfaces.Matcher, core.String, core.Map, core.bool]); 85 dart.fn(_defaultFailFormatter, core.String, [dart.dynamic, interfaces.Matcher, core.String, core.Map, core.bool]);
86 // Exports: 86 // Exports:
87 exports.group = group; 87 exports.group = group;
88 exports.test = test; 88 exports.test = test;
89 exports.TestFailure = TestFailure; 89 exports.TestFailure = TestFailure;
90 exports.ErrorFormatter = ErrorFormatter; 90 exports.ErrorFormatter = ErrorFormatter;
91 exports.expect = expect; 91 exports.expect = expect;
92 exports.fail = fail; 92 exports.fail = fail;
93 }); 93 });
OLDNEW
« no previous file with comments | « test/codegen/expect/misc.js ('k') | test/codegen/expect/unittest/unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698