OLD | NEW |
(Empty) | |
| 1 dart_library.library('lib/html/xsltprocessor_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'unittest' |
| 4 ], function load__xsltprocessor_test(exports, dart_sdk, unittest) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const html = dart_sdk.html; |
| 8 const dart = dart_sdk.dart; |
| 9 const dartx = dart_sdk.dartx; |
| 10 const html_individual_config = unittest.html_individual_config; |
| 11 const unittest$ = unittest.unittest; |
| 12 const src__matcher__expect = unittest.src__matcher__expect; |
| 13 const src__matcher__core_matchers = unittest.src__matcher__core_matchers; |
| 14 const src__matcher__throws_matcher = unittest.src__matcher__throws_matcher; |
| 15 const xsltprocessor_test = Object.create(null); |
| 16 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 17 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 18 let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionT
ype(core.bool, [dart.dynamic])))(); |
| 19 xsltprocessor_test.main = function() { |
| 20 html_individual_config.useHtmlIndividualConfiguration(); |
| 21 unittest$.group('supported', dart.fn(() => { |
| 22 unittest$.test('supported', dart.fn(() => { |
| 23 src__matcher__expect.expect(html.XsltProcessor[dartx.supported], true); |
| 24 }, VoidTodynamic())); |
| 25 }, VoidTovoid())); |
| 26 unittest$.group('functional', dart.fn(() => { |
| 27 let isXsltProcessor = src__matcher__core_matchers.predicate(dart.fn(x => h
tml.XsltProcessor.is(x), dynamicTobool()), 'is an XsltProcessor'); |
| 28 let expectation = dart.test(html.XsltProcessor[dartx.supported]) ? src__ma
tcher__core_matchers.returnsNormally : src__matcher__throws_matcher.throws; |
| 29 unittest$.test('constructorTest', dart.fn(() => { |
| 30 src__matcher__expect.expect(dart.fn(() => { |
| 31 let processor = html.XsltProcessor.new(); |
| 32 src__matcher__expect.expect(processor, src__matcher__core_matchers.isN
otNull); |
| 33 src__matcher__expect.expect(processor, isXsltProcessor); |
| 34 }, VoidTodynamic()), expectation); |
| 35 }, VoidTodynamic())); |
| 36 }, VoidTovoid())); |
| 37 }; |
| 38 dart.fn(xsltprocessor_test.main, VoidTodynamic()); |
| 39 // Exports: |
| 40 exports.xsltprocessor_test = xsltprocessor_test; |
| 41 }); |
OLD | NEW |