Commit Graph

2294 Commits

Author SHA1 Message Date
toasted-nutbread
5587116bae Simplify spread 2020-02-22 14:37:10 -05:00
toasted-nutbread
bc94970a46 Use Map 2020-02-22 14:37:10 -05:00
toasted-nutbread
cae8ed2767 Use Array.isArray instead of hasOwn 2020-02-22 14:37:10 -05:00
toasted-nutbread
1f62dfa572 Use Set 2020-02-22 14:37:10 -05:00
toasted-nutbread
886278b19d Use Set 2020-02-22 14:36:07 -05:00
toasted-nutbread
452eec8a88 Use Map 2020-02-22 14:36:07 -05:00
toasted-nutbread
f3c4b0e1e1
Merge pull request #369 from toasted-nutbread/dictionary-validation
Dictionary validation
2020-02-22 14:34:20 -05:00
toasted-nutbread
a2b72dd3ab Update test-dictionary 2020-02-22 13:40:57 -05:00
toasted-nutbread
12e0923b63 Add some basic invalid dictionaries to test 2020-02-22 13:38:03 -05:00
toasted-nutbread
77a3dadd0b Make schema errors have more information 2020-02-22 13:25:28 -05:00
toasted-nutbread
7b1a1480dc Add a timeout to clearDatabase
This will trigger in case something goes wrong and a database isn't closed.
2020-02-22 13:10:30 -05:00
toasted-nutbread
a54f44122a Update location of test dictionary data 2020-02-22 12:58:33 -05:00
toasted-nutbread
4daf3435c2 Update database test 2020-02-22 12:47:09 -05:00
toasted-nutbread
d76ab91f83 Update validate function name in close 2020-02-22 12:45:50 -05:00
toasted-nutbread
86d0fb6643 Require format to be 1, 2, or 3 2020-02-22 12:09:34 -05:00
toasted-nutbread
62d4f68412 Define old tagMeta format in index file 2020-02-22 12:09:34 -05:00
toasted-nutbread
086fefc921 Validate data before importing 2020-02-22 12:09:34 -05:00
toasted-nutbread
d620f40448 Remove old dictionary import functions 2020-02-22 12:09:34 -05:00
toasted-nutbread
177bca4865 Create new dictionary import function 2020-02-22 12:09:33 -05:00
toasted-nutbread
212e5428e8 Mark private functions in database.js 2020-02-22 12:09:33 -05:00
toasted-nutbread
0e31139734
Merge pull request #371 from toasted-nutbread/database-tests
Database tests
2020-02-22 12:07:09 -05:00
toasted-nutbread
1e573f36c4 Test some errors 2020-02-19 20:00:44 -05:00
toasted-nutbread
4f39ac2079 Upadte eslintrc 2020-02-19 20:00:27 -05:00
toasted-nutbread
a8b1e40a1e Close to prevent hangs 2020-02-19 19:59:24 -05:00
toasted-nutbread
7901a46721 Validate results of importDictionary 2020-02-19 18:46:27 -05:00
toasted-nutbread
a31ac68574 Update tests 2020-02-18 22:20:00 -05:00
toasted-nutbread
2829c88e7d Add script to test database.js 2020-02-18 22:19:55 -05:00
toasted-nutbread
da079820e6 Add script to validate the test dictionary data against JSON schemas 2020-02-18 22:19:33 -05:00
toasted-nutbread
09ea007883 Add test dictionary data 2020-02-18 22:19:08 -05:00
toasted-nutbread
03886eb833 Add fake-indexeddb 2020-02-18 22:16:30 -05:00
toasted-nutbread
f2f4081d45 Use ? instead of %s 2020-02-17 22:39:25 -05:00
toasted-nutbread
dce5f7e1e5 Allow dictionary-validate to be require'd 2020-02-17 22:38:48 -05:00
toasted-nutbread
06480751a9 Create yomichan-test script to reduce repeated code 2020-02-17 22:31:28 -05:00
toasted-nutbread
7cbebf6897 Update how main is invoked 2020-02-17 22:30:16 -05:00
toasted-nutbread
174d9e7429 Add some basic unit tests for JSON schemas 2020-02-17 14:20:22 -05:00
toasted-nutbread
0f46e3a093 Use a token to ensure that messages are coming from Yomichan 2020-02-17 11:02:21 -05:00
toasted-nutbread
aee16c4431 Check origin on window messages 2020-02-16 23:41:17 -05:00
toasted-nutbread
2ace8d4ffa
Merge pull request #367 from toasted-nutbread/defer-content-script-css-injection
Defer content script css injection
2020-02-16 22:01:03 -05:00
toasted-nutbread
ae4ee9ddee Fix error handling on style injection 2020-02-16 21:49:28 -05:00
toasted-nutbread
e173a71ba6 Fix CSS injection on about:blank pages 2020-02-16 21:46:13 -05:00
toasted-nutbread
3d27e80ae6 Delay CSS injection until a popup is created 2020-02-16 21:46:13 -05:00
toasted-nutbread
9fd6ee382d Create more generic function for injecting stylesheets 2020-02-16 21:46:13 -05:00
toasted-nutbread
d3aefdc4e3 Override setCustomOuterCss instead of Popup.injectOuterStylesheet 2020-02-16 21:45:30 -05:00
toasted-nutbread
b6a50e234c Change parameter name 2020-02-16 21:44:45 -05:00
toasted-nutbread
2c3f510010 Allow apiInjectStylesheet to inject a URL 2020-02-16 21:43:35 -05:00
toasted-nutbread
1c6ed1d286 Set URL before adding to the document 2020-02-16 21:41:31 -05:00
toasted-nutbread
f019ab741a Update workflow definition 2020-02-16 21:41:31 -05:00
toasted-nutbread
ab2cec0479
Merge pull request #352 from toasted-nutbread/github-actions
Setup GitHub actions
2020-02-16 21:11:18 -05:00
toasted-nutbread
c6efa65626 Fix missing argument 2020-02-16 19:09:33 -05:00
toasted-nutbread
dcd243c9e9 Update how popups are created 2020-02-16 18:59:08 -05:00