OLD | NEW |
(Empty) | |
| 1 dart_library.library('lib/html/messageevent_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'unittest' |
| 4 ], function load__messageevent_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_config = unittest.html_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 messageevent_test = Object.create(null); |
| 15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 16 messageevent_test.main = function() { |
| 17 html_config.useHtmlConfiguration(); |
| 18 unittest$.test('new MessageEvent', dart.fn(() => { |
| 19 let event = html.MessageEvent.new('type', {cancelable: true, data: 'data',
origin: 'origin', lastEventId: 'lastEventId'}); |
| 20 src__matcher__expect.expect(event[dartx.type], src__matcher__core_matchers
.equals('type')); |
| 21 src__matcher__expect.expect(event[dartx.bubbles], src__matcher__core_match
ers.isFalse); |
| 22 src__matcher__expect.expect(event[dartx.cancelable], src__matcher__core_ma
tchers.isTrue); |
| 23 src__matcher__expect.expect(event[dartx.data], src__matcher__core_matchers
.equals('data')); |
| 24 src__matcher__expect.expect(event[dartx.origin], src__matcher__core_matche
rs.equals('origin')); |
| 25 src__matcher__expect.expect(event[dartx.source], html.window); |
| 26 }, VoidTodynamic())); |
| 27 }; |
| 28 dart.fn(messageevent_test.main, VoidTodynamic()); |
| 29 // Exports: |
| 30 exports.messageevent_test = messageevent_test; |
| 31 }); |
OLD | NEW |