summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* Refactor sentence scanning (#1213)toasted-nutbread2021-01-09
| | | | | | | | | * Update tests * Update extractSentence implementation * Remove old extractSentence implementation * Optimize maps/sets
* CSS lint (#1201)toasted-nutbread2021-01-03
| | | | | | | | | | | | | * Use single quotes instead of double * Install stylelint * Set up config * Update package/tests * Fix lint issues * Update CSS rules
* Translator regex replacements (#1199)toasted-nutbread2021-01-03
| | | | | | | | | | | | | | | | | | | * Add support for regex replacements during the translation process * Allow assignment of textReplacements * Rename * Set up test data * Write expected data * Set up options * Prevent infinite loop if regex matches empty string * Implement setting controller * Add support for testing pattern replacements
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* Translator frequency data improvements (#1184)toasted-nutbread2020-12-30
| | | | | | | * Specify if a frequency has a specific reading * Make frequency data creation more standardized * Update test data
* Change popupCurrentIndicatorMode default to triangle (#1161)toasted-nutbread2020-12-22
|
* Furigana distribution improvements (#1157)toasted-nutbread2020-12-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve furigana when reading kana is not an exact match * Simplify group structure * Return consistent type * Add more tests * Remove redundant isAmbiguous assignment * Simplify group usage * Add helper function * Optimize returned arrays * Use variable * Remove s(p)lice calls * Reduce number of convertKatakanaToHiragana calls * Optimize text length access * Optimize reading substring * Move segmentize to a separate function * Use var * Use _createFuriganaSegment * Optimize distributeFuriganaInflected
* Update the popup preview to always be visible on the settings v2 page (#1151)toasted-nutbread2020-12-20
|
* Popup action bar options (#1140)toasted-nutbread2020-12-19
| | | | | | | | | | | | | * Add options for action bar visibility and location * Add settings * Update styles * Expose properties * Update styles * Update tests
* Update termTags for termGrouped mode to include all definition tags (#1138)toasted-nutbread2020-12-19
| | | | | * Update termTags for termGrouped mode to include all definition tags * Update tests
* Entry indicator update (#1134)toasted-nutbread2020-12-19
| | | | | | | | | | | | | | | | | | | | | | | * Move entry current indicator rules * Simplify rules * Add popupCurrentIndicatorMode option * Add option to settings page * Expose popupCurrentIndicatorMode * Restore asterisk current indicator * Implement dot * Update action button vars * Fix tests * Add none option * Add triangle option
* DOMParser replacement (#561)toasted-nutbread2020-12-18
| | | | | | | | | | | | | | | * Add script to build library files * Add built parse5 library * Add new SimpleDOMParser which uses parse5 * Update license info * Update MV3 build to use the new SimpleDOMParser * Update file exclusions * Hide/clarify license info for MV2 builds
* Set up initial manifest v3 support (#605)toasted-nutbread2020-12-18
|
* Maximum clipboard search length (#1118)toasted-nutbread2020-12-18
| | | | | | | | | * Add maximumClipboardSearchLength an option * Add setting * Add limits * Update tests
* Add zuru deinflections (#1091)toasted-nutbread2020-12-12
| | | | | | | * Update deinflector rule types * Add deinflection rules for zuru verbs * Add tests
* Add classic suru deinflection negative tests (#1090)toasted-nutbread2020-12-08
| | | | | * Add negative tests for classic suru verbs * Add missing test for non-negative classic: causative, potential or passive
* Add classic suru deinflections (#1089)toasted-nutbread2020-12-08
| | | | | * Add classic suru deinflections * Add tests
* Update/test deinflector (#1087)toasted-nutbread2020-12-08
| | | | | | | | | | | | | | | | * Update formatting * Add missing rule for progressive/perfect * Add adnomial -ki rule * Update rules for irregular verbs * Organize rules by rulesOut For the most part, the order is: adj-i => v1 => v5 => vs => vk => other * Add tests
* Database test updates (#1086)toasted-nutbread2020-12-08
| | | | | | | | | | | | | | | * Remove unused * Create DatabaseVM * Update sequences in test dictionary * Update documentation * Add second valid testing dictionary * Set up translator tests * Write expected data
* Settings v2 testing setup (#1084)toasted-nutbread2020-12-06
| | | | | | | | | * Add option for using settings v2 * Add options/info about settings v2 * Use settings v2 URL when applicable * Update tests
* Json schema improvements (#1078)toasted-nutbread2020-11-30
| | | | | | | | | * Test multipleOf * Refactor defaulting * Use default if invalid for non-object/array properties * Add tests
* JapaneseUtil normalization (#1076)toasted-nutbread2020-11-29
| | | | | * Use JapaneseUtil as a class which is manually instantiated * Use alias function for toKana
* Frequencies marker (#1074)toasted-nutbread2020-11-28
| | | | | | | | | | | * Update japanese.js tests * Simplify fallback/early exit * Add overloads to furigana and furiganaPlain handlebars helper functions * Expose unique expression/reading arrays (and subsequently counts) * Add {frequencies} marker
* Popup style updates (#1066)toasted-nutbread2020-11-25
| | | | | | | | | | | * Replace compactGlossaries option with new glossaryLayoutMode option * Update attributes * Update attributes * Update color definitions * Fix default theme scrollbar
* Compact tags refactor (#1021)toasted-nutbread2020-11-12
| | | | | | | | | | | | | * Update translator to flag redundant tags instead of remove * Update how compact tags are shown in the popup * Pass compactTags option to note builder * Update options templates * Add options upgrade * Add options upgrade test
* Add a core deepEqual function (#1018)toasted-nutbread2020-11-09
| | | | | * Add a core deepEqual function * Add tests
* Add duplicate check option (#1012)toasted-nutbread2020-11-08
| | | | | | | * Add anki.checkForDuplicates option * Use checkForDuplicates for button display * Add property to card creation
* Return an error code when promise main() functions fail (#1002)toasted-nutbread2020-11-07
|
* Add showPopupPreview to options test (#1001)toasted-nutbread2020-11-07
|
* Conjugation marker (#988)toasted-nutbread2020-11-04
| | | | | | | | | * Add {conjugation} marker * Add info * Add upgrade * Update test
* Json schema default value improvement (#964)toasted-nutbread2020-10-27
| | | | | * Ensure value has property before using its value * Add tests
* Options fixes (#962)toasted-nutbread2020-10-27
| | | | | | | | | | | * Fix default options not having the correct versions * Move schema validation * Remove legacy version number * Add tests for OptionsUtil.getDefault() * Remove unused getValidValueOrDefault
* Split source.js into two files (#894)toasted-nutbread2020-10-07
|
* Move searchTerms/searchKanji to front of object definitions (#873)toasted-nutbread2020-09-27
|
* Add scan on touch move and prevent touch scroll options (#871)toasted-nutbread2020-09-27
| | | | | | | | | * Add scanOnTouchMove/preventTouchScrolling scanning input options * Add settings controls * Support scanOnTouchMove in TextScanner * Support preventTouchScrolling in TextScanner
* Add middle mouse prevention option (#868)toasted-nutbread2020-09-26
| | | | | | | | | * Add preventMiddleMouse option to TextScanner * Add preventMiddleMouse options * Add options * Apply preventMiddleMouse options
* Scanning mouse button fixes (#866)toasted-nutbread2020-09-26
| | | | | * Move mouse0 blocking during mousemove into options * Update primary button detection
* Cache map improvements (#856)toasted-nutbread2020-09-22
| | | | | | | * Update CacheMap API; get=>getOrCreate; add get; add set; add has * Update tests * Add more tests
* Add tests for options updating (#852)toasted-nutbread2020-09-20
|
* Dev/test script organization (#846)toasted-nutbread2020-09-19
| | | | | | | | | | | | | | | | | | | * Move lint scripts * Move dictionary-validate.js * Move schema-validate.js * Move createTestDictionaryArchive, remove yomichan-test.js * Rename yomichan-util.js to util.js * Move test/yomichan-vm.js to dev/vm.js * Move getArgs into util.js (and fix name) * Create test-all.js * Update test-code script
* Profile conditions cleanup (#768)toasted-nutbread2020-09-04
| | | | | * Remove conditions.js * Rename profile-conditions2.js to profile-conditions.js
* Add tests for data: and blob: iframe URLs (#757)toasted-nutbread2020-08-24
|
* Dynamic property (#749)toasted-nutbread2020-08-22
| | | | | * Add DynamicProperty class * Add tests for DynamicProperty
* XMLDocument handling (#738)toasted-nutbread2020-08-22
| | | | | | | * Add tests for SVGs * Add more null checks for Frontend._popup * Use null popup when on an XMLDocument
* Fix profile conditions unit test using old JsonSchema (#735)toasted-nutbread2020-08-15
|
* JSON schema refactor (#731)toasted-nutbread2020-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | * Remove JsonSchema.clone * Move createProxy function * Group public properties first * Create private version of getPropertySchema * Mark functions as private * Use non-static getValidValueOrDefault * Mark private * Make public validate function not take an info parameter * Remove JsonSchema * Add isValid function * Use isValid for some tests * Fix incorrect type
* JSON-schema-based profile conditions (#730)toasted-nutbread2020-08-15
| | | | | | | * Add ProfileConditions class * Add URL to VM * Add new ProfileConditions tests
* More JSON schema improvements (#729)toasted-nutbread2020-08-11
| | | | | | | | | * Add support for constant values * Add contains check for arrays * Add tests * Simplify getValidValueOrDefault testing
* DOM + DocumentUtil merge (#727)toasted-nutbread2020-08-09
| | | | | | | | | * Add DOM functions to DocumentUtil * Use DocumentUtil instead of DOM * Remove DOM * Move document-util.js into mixed
* Merge dictionary.js functions into Translator class (#726)toasted-nutbread2020-08-09
| | | | | | | | | | | | | * Move dictFieldSplit * Copy dictionary.js definitions into translator.js * Convert to member functions * Refactor names * Remove dictionary.js * Rename