Commit Graph

54 Commits

Author SHA1 Message Date
Jonathan Putney
5713a26b9b Fixing a lint issue 2020-01-09 09:52:34 -05:00
Jonathan Putney
175dec5dc8 Fixing build 2020-01-09 09:40:37 -05:00
Jonathan Putney
7954e2a083 Merge branch 'master' of https://github.com/jcputney/scorm-again 2020-01-09 09:37:58 -05:00
Jonathan Putney
d460053cbb Moving field values to test src 2020-01-09 09:36:08 -05:00
Jonathan Putney
9823220be7 Making sure seconds are padded when they add up to zero 2020-01-02 13:17:31 -05:00
Jonathan Putney
b2a7feee42 Checking for existence of value instead of null 2019-12-30 14:52:55 -05:00
Jonathan Putney
f2637f10b5 Blank string is valid for cmi.core.exit/cmi.exit 2019-12-30 13:19:06 -05:00
Jonathan Putney
a1d94eef97 Handling non-string values being passed to SetValue/LMSSetValue 2019-12-30 11:33:08 -05:00
Jonathan Putney
6e4f2e3663 Removing total_time from JSON export, unless it's for the final commit 2019-12-26 14:36:36 -05:00
Jonathan Putney
086f935d59 Checking if more than 2 decimal places, before using toFixed 2019-12-26 14:14:07 -05:00
Jonathan Putney
bbe30d4ab0 Moving term state changing to earlier in terminate call 2019-12-26 13:03:43 -05:00
Jonathan Putney
a084f35f0e eslint fix 2019-12-23 20:42:33 -05:00
Jonathan Putney
f30e546aa6 Rounding seconds to 2 decimal places 2019-12-23 20:40:13 -05:00
Jonathan Putney
8318e143de If root element is empty, don't start with dot 2019-12-23 19:15:04 -05:00
Jonathan Putney
0d4f931154 Adding ability to set empty base element for loading from JSON 2019-12-23 19:06:29 -05:00
Jonathan Putney
45d4e6ef02 Merge branch 'master' of https://github.com/jcputney/scorm-again 2019-12-20 14:37:43 -05:00
Jonathan Putney
b4d598eed0 Allowing cmi.core.lesson_location to contain empty string 2019-12-20 14:35:24 -05:00
Jonathan Putney
8d8831954e Fixing bind on original ScheduledCommit class 2019-11-19 15:32:41 -05:00
Jonathan Putney
d3f7184507 Fixing 'this' for scheduled timeout 2019-11-19 15:31:18 -05:00
Jonathan Putney
7456c1cbc6 Still working on schedule commit 2019-11-19 15:28:04 -05:00
Jonathan Putney
df029a4fda Inlining the ScheduledCommit class 2019-11-19 15:22:14 -05:00
Jonathan Putney
4abe1f3420 Fixing debug logging 2019-11-19 15:06:46 -05:00
Jonathan Putney
74ac0d4c8c Working on scheduleCommit 2019-11-19 15:00:45 -05:00
Jonathan Putney
e19e7d76fa Adding log level to settings 2019-11-19 14:45:13 -05:00
Jonathan Putney
fa184a3245 Stringify params before sending to LMS 2019-11-19 14:17:35 -05:00
Jonathan Putney
5c46dea6d9 Fixing XMLHttpRequest data type 2019-11-19 14:12:09 -05:00
Jonathan Putney
d9adc2f0de Fixing an empty string check 2019-11-19 14:08:10 -05:00
Jonathan Putney
bb5e85d087 Fixing generic error 2019-11-19 14:00:58 -05:00
Jonathan Putney
a23cf5557b Error handling on request processing 2019-11-19 13:58:29 -05:00
Jonathan Putney
1257df6d18 Storing data on terminate/finish and calling listeners for LMS sequencing 2019-11-19 12:16:31 -05:00
Jonathan Putney
28e3279830 Creating separate exports file 2019-11-18 13:45:59 -05:00
Jonathan Putney
bbc5af424e Changing exports to just create variables on window 2019-11-18 13:41:07 -05:00
Jonathan Putney
9fa9769f1d Adding ability to load initial data from flattened JSON object 2019-11-18 10:41:59 -05:00
Jonathan Putney
d548330436 Fixes and additional test cases 2019-11-15 21:54:49 -05:00
Jonathan Putney
8e6f6c47e9 Working on the saving of data 2019-11-15 17:24:30 -05:00
Jonathan Putney
7cdbf4c4c0 Fixing a few tests 2019-11-14 21:53:32 -05:00
Jonathan Putney
929176fb3e More tests and fixes 2019-11-14 16:07:42 -05:00
Jonathan Putney
ce503a25cb Adding more API tests 2019-11-14 14:50:49 -05:00
Jonathan Putney
360d30bdf0 Adding more API tests 2019-11-14 13:17:16 -05:00
Jonathan Putney
6dc512ba1f Initial API tests 2019-11-13 23:07:28 -05:00
Jonathan Putney
755259afdf More test cases and breaking out valid/invalid values to be reusable 2019-11-13 13:09:01 -05:00
Jonathan Putney
1839978398 Update aicc_cmi.js 2019-11-12 21:49:00 -05:00
Jonathan Putney
d2cc923f94 More CMI tests 2019-11-12 21:41:39 -05:00
Jonathan Putney
b427943036 More test cases 2019-11-12 14:59:01 -05:00
Jonathan Putney
08737afe1a Fixing eslint issues 2019-11-12 11:26:56 -05:00
Jonathan Putney
9e8896fa32 Removed circular dependencies between APIs and CMI objects
No longer directly setting error codes on the API when a read/write or data validation fails, throwing exceptions instead that can then be caught by the APi.
2019-11-12 11:17:41 -05:00
Jonathan Putney
73ff260097 AICC CMI Tests 2019-11-11 22:12:29 -05:00
Jonathan Putney
2f5c9804c9 Fixing eslint issues, and still working on test cases 2019-11-11 15:05:02 -05:00
Jonathan Putney
5dae5ca0ae Splitting up constants 2019-11-10 23:02:40 -05:00
Jonathan Putney
465e9b3383 Fixing complexity issue in AICC API 2019-11-10 21:58:42 -05:00