OLD | NEW |
1 dart_library.library('unittest/unittest', null, /* Imports */[ | 1 dart_library.library('unittest/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 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 dart.fn(_defaultFailFormatter, core.String, [dart.dynamic, interfaces.Matcher,
core.String, core.Map, core.bool]); | 88 dart.fn(_defaultFailFormatter, core.String, [dart.dynamic, interfaces.Matcher,
core.String, core.Map, core.bool]); |
89 // Exports: | 89 // Exports: |
90 exports.group = group; | 90 exports.group = group; |
91 exports.test = test; | 91 exports.test = test; |
92 exports.TestFailure = TestFailure; | 92 exports.TestFailure = TestFailure; |
93 exports.ErrorFormatter = ErrorFormatter; | 93 exports.ErrorFormatter = ErrorFormatter; |
94 exports.expect = expect; | 94 exports.expect = expect; |
95 exports.fail = fail; | 95 exports.fail = fail; |
96 }); | 96 }); |
OLD | NEW |