Commit Graph

2735 Commits

Author SHA1 Message Date
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
toasted-nutbread
5d3c13ee98 Tweak how fullscreen changes are observed 2020-02-16 18:52:04 -05:00
toasted-nutbread
070ae70f7c Create EventListenerCollection class 2020-02-16 18:47:57 -05:00
toasted-nutbread
36605f74c3 Undo "Obscure the iframe's URL from the host page"
There are some additional issues which cause the frame to be reset to
about:blank on certain occasions which must be fixed before this can be
used.
2020-02-16 18:47:46 -05:00
toasted-nutbread
cc989f4411 Add "match_about_blank": true to manifest 2020-02-16 14:22:19 -05:00
toasted-nutbread
6df5220e02 Prevent multiple prepare calls 2020-02-16 12:23:40 -05:00
toasted-nutbread
b5d32c73e6 Simplify process to wait for iframe prepare completion 2020-02-16 12:23:20 -05:00
toasted-nutbread
42f1c2463c Move generateId function 2020-02-16 12:00:56 -05:00
toasted-nutbread
912d59d3df Obscure the iframe's URL from the host page 2020-02-15 22:39:09 -05:00
toasted-nutbread
10ec165f14 Check type of other for equals functions
Fixes #361
2020-02-15 20:52:21 -05:00