| OLD | NEW |
| 1 dart_library.library('lib/html/history_test', null, /* Imports */[ | 1 dart_library.library('lib/html/history_test', null, /* Imports */[ |
| 2 'dart_sdk', | 2 'dart_sdk', |
| 3 'unittest' | 3 'unittest' |
| 4 ], function load__history_test(exports, dart_sdk, unittest) { | 4 ], function load__history_test(exports, dart_sdk, unittest) { |
| 5 'use strict'; | 5 'use strict'; |
| 6 const core = dart_sdk.core; | 6 const core = dart_sdk.core; |
| 7 const html = dart_sdk.html; | 7 const html = dart_sdk.html; |
| 8 const async = dart_sdk.async; | 8 const async = dart_sdk.async; |
| 9 const dart = dart_sdk.dart; | 9 const dart = dart_sdk.dart; |
| 10 const dartx = dart_sdk.dartx; | 10 const dartx = dart_sdk.dartx; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 unittest$.test('pushState', dart.fn(() => { | 37 unittest$.test('pushState', dart.fn(() => { |
| 38 src__matcher__expect.expect(dart.fn(() => { | 38 src__matcher__expect.expect(dart.fn(() => { |
| 39 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?dummy'); | 39 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?dummy'); |
| 40 let length = html.window[dartx.history][dartx.length]; | 40 let length = html.window[dartx.history][dartx.length]; |
| 41 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?foo=bar'); | 41 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?foo=bar'); |
| 42 src__matcher__expect.expect(html.window[dartx.location][dartx.href][da
rtx.endsWith]('foo=bar'), src__matcher__core_matchers.isTrue); | 42 src__matcher__expect.expect(html.window[dartx.location][dartx.href][da
rtx.endsWith]('foo=bar'), src__matcher__core_matchers.isTrue); |
| 43 }, VoidTodynamic()), expectation); | 43 }, VoidTodynamic()), expectation); |
| 44 }, VoidTodynamic())); | 44 }, VoidTodynamic())); |
| 45 unittest$.test('pushState with data', dart.fn(() => { | 45 unittest$.test('pushState with data', dart.fn(() => { |
| 46 src__matcher__expect.expect(dart.fn(() => { | 46 src__matcher__expect.expect(dart.fn(() => { |
| 47 html.window[dartx.history][dartx.pushState](dart.map({one: 1}), html.d
ocument[dartx.title], '?dummy'); | 47 html.window[dartx.history][dartx.pushState](dart.map({one: 1}, core.St
ring, core.int), html.document[dartx.title], '?dummy'); |
| 48 src__matcher__expect.expect(html.window[dartx.history][dartx.state], s
rc__matcher__core_matchers.equals(dart.map({one: 1}))); | 48 src__matcher__expect.expect(html.window[dartx.history][dartx.state], s
rc__matcher__core_matchers.equals(dart.map({one: 1}, core.String, core.int))); |
| 49 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?foo=bar'); | 49 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?foo=bar'); |
| 50 src__matcher__expect.expect(html.window[dartx.location][dartx.href][da
rtx.endsWith]('foo=bar'), src__matcher__core_matchers.isTrue); | 50 src__matcher__expect.expect(html.window[dartx.location][dartx.href][da
rtx.endsWith]('foo=bar'), src__matcher__core_matchers.isTrue); |
| 51 }, VoidTodynamic()), expectation); | 51 }, VoidTodynamic()), expectation); |
| 52 }, VoidTodynamic())); | 52 }, VoidTodynamic())); |
| 53 unittest$.test('back', dart.fn(() => { | 53 unittest$.test('back', dart.fn(() => { |
| 54 src__matcher__expect.expect(dart.fn(() => { | 54 src__matcher__expect.expect(dart.fn(() => { |
| 55 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?dummy1'); | 55 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?dummy1'); |
| 56 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?dummy2'); | 56 html.window[dartx.history][dartx.pushState](null, html.document[dartx.
title], '?dummy2'); |
| 57 let length = html.window[dartx.history][dartx.length]; | 57 let length = html.window[dartx.history][dartx.length]; |
| 58 src__matcher__expect.expect(html.window[dartx.location][dartx.href][da
rtx.endsWith]('dummy2'), src__matcher__core_matchers.isTrue); | 58 src__matcher__expect.expect(html.window[dartx.location][dartx.href][da
rtx.endsWith]('dummy2'), src__matcher__core_matchers.isTrue); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 87 src__matcher__expect.expect(event[dartx.oldUrl], 'old'); | 87 src__matcher__expect.expect(event[dartx.oldUrl], 'old'); |
| 88 src__matcher__expect.expect(event[dartx.newUrl], 'new'); | 88 src__matcher__expect.expect(event[dartx.newUrl], 'new'); |
| 89 }, VoidTodynamic()), expectation); | 89 }, VoidTodynamic()), expectation); |
| 90 }, VoidTodynamic())); | 90 }, VoidTodynamic())); |
| 91 }, VoidTovoid$())); | 91 }, VoidTovoid$())); |
| 92 }; | 92 }; |
| 93 dart.fn(history_test.main, VoidTodynamic()); | 93 dart.fn(history_test.main, VoidTodynamic()); |
| 94 // Exports: | 94 // Exports: |
| 95 exports.history_test = history_test; | 95 exports.history_test = history_test; |
| 96 }); | 96 }); |
| OLD | NEW |