From bcbd413e571d772a4438f57138169ad1a6a3b5a8 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 31 Mar 2021 18:17:28 -0400 Subject: Definition collapsing when overflowing (#1575) * Add double-down-chevron.svg * Add options * Update dictionary importers * Update settings * Add support for collapsible definitions * Improve case when there is a very small amount of overflow * Fix incorrect enabled state of newly imported dictionaries --- test/test-options-util.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test-options-util.js b/test/test-options-util.js index 7b9e6e4b..ce12bca9 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -135,7 +135,13 @@ function createProfileOptionsTestData1() { convertKatakanaToHiragana: 'variant', collapseEmphaticSequences: 'false' }, - dictionaries: {}, + dictionaries: { + 'Test Dictionary': { + priority: 0, + enabled: true, + allowSecondarySearches: false + } + }, parsing: { enableScanningParser: true, enableMecabParser: false, @@ -401,7 +407,14 @@ function createProfileOptionsUpdatedTestData1() { groups: [] } }, - dictionaries: {}, + dictionaries: { + 'Test Dictionary': { + priority: 0, + enabled: true, + allowSecondarySearches: false, + definitionsCollapsible: 'not-collapsible' + } + }, parsing: { enableScanningParser: true, enableMecabParser: false, -- cgit v1.2.3