mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-10 04:46:07 -08:00
feat(dictionary): add Hachidori backend support (#266)
This commit is contained in:
1 parent
e690ffba07
commit
cbaa4626e1
143 files changed
+5564
-305
No files matched your search
@@ -131,6 +131,26 @@ for (const platform of ['darwin', 'win32'] as const) {
|
||||
});
|
||||
}
|
||||
|
||||
test('sendToActiveOverlayWindow delivers to a modal window created for the send', () => {
|
||||
// ready-to-show can fire before the document loads, and Electron still reports
|
||||
// isLoading() inside did-finish-load; only did-stop-loading sees the settled state.
|
||||
const modal = new FakeOverlayWindow({ ...LOADING_BLANK_WINDOW, documentLoaded: false });
|
||||
const h = createHarness({ createModal: () => modal });
|
||||
|
||||
assert.equal(
|
||||
h.runtime.sendToActiveOverlayWindow(
|
||||
'media-timing-review:open',
|
||||
{ reviewId: 'r1' },
|
||||
{ restoreOnModalClose: 'media-timing-review', preferModalWindow: true },
|
||||
),
|
||||
true,
|
||||
);
|
||||
modal.emitReadyToShow();
|
||||
assert.deepEqual(modal.sent, []);
|
||||
modal.finishLoad();
|
||||
assert.deepEqual(modal.sent, [['media-timing-review:open', { reviewId: 'r1' }]]);
|
||||
});
|
||||
|
||||
test('primeModalWindow leaves Linux modal creation lazy', () => {
|
||||
const h = createHarness({ createModal: () => new FakeOverlayWindow(), platform: 'linux' });
|
||||
|
||||
|
||||
Reference in new issue
Block a user