Jonathan Putney
ab1f3b061b
Minor code cleanup and additional test cases
2020-08-17 09:09:52 -04:00
Jonathan Putney
e9fee3c258
SCORM 2004 cmi.interactions.n.learner_response was never being set
2020-08-14 15:22:01 -04:00
Jonathan Putney
fc9a56e4c4
Fixing boolean logic issue
2020-08-14 14:44:46 -04:00
Jonathan Putney
107069963c
Fixing build
2020-07-30 18:10:34 -04:00
Jonathan Putney
22408c2c0e
Finalizing changes to initial data load
2020-07-30 18:05:11 -04:00
Jonathan Putney
c341d3f70f
Not requiring fields to be previously set while loading existing data
2020-07-30 16:54:15 -04:00
Jonathan Putney
1b48c9ee4d
Fixing an issue with CMI interactions not being loaded in the proper order
...
Interaction ID and Type need to be loaded before most other interaction fields, so I added a built in sort when loading using the flattened JSON load.
2020-07-28 22:36:37 -04:00
Jonathan Putney
ca94ee9fb5
Adding new selfReportSessionTime setting
2020-06-26 14:50:33 -04:00
Jonathan Putney
c311b4dbc7
Fixing a write-only issue with SCORM 1.2 nav.event until I figure out what to do with it
...
Not sure if it's even necessary outside of Moodle, or if it is custom for their player.
2020-05-25 19:55:30 -04:00
Jonathan Putney
3103707aec
cmi.core.suspend_data vs. cmi.suspend_data
...
It seems to be a common issue that some SCORM 1.2 modules are trying to store "suspend_data" in cmi.core.suspend_data instead of cmi.suspend_data, which is actually the correct field according to the spec. We're still only storing it once, but will allow getting and setting from cmi.core.suspend_data. Exported JSON will continue to only output spec compliant data.
2020-02-06 12:35:49 -05:00
Jonathan Putney
ccf1f7b4b7
Adding some additional AICC CMI parameters
2020-01-16 08:58:46 -05:00
Jonathan Putney
7882608fb6
Rework of constants and some additional tests
2020-01-15 12:21:57 -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
f2637f10b5
Blank string is valid for cmi.core.exit/cmi.exit
2019-12-30 13:19:06 -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
a084f35f0e
eslint fix
2019-12-23 20:42:33 -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
74ac0d4c8c
Working on scheduleCommit
2019-11-19 15:00:45 -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
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
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
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
eae2a688f6
Disabling eslint in build for now
2019-11-10 20:52:23 -05:00
Jonathan Putney
5bfae43f54
Adding ESLint config
2019-11-10 16:54:34 -05:00
Jonathan Putney
2816220943
Removing copyrights
2019-11-10 16:01:03 -05:00
Jonathan Putney
da4af1edba
Initial push, working on test cases
2019-11-10 12:29:43 -05:00