45 Commits

Author SHA1 Message Date
ccdff1c7b9 remove char limits 2023-02-22 00:56:56 -05:00
Jonathan Putney
3a19efb91c Fixing an issue with "urn:scormdriver:" values in SCORM 2004 4th edition 2021-09-07 13:45:56 -04:00
Jonathan Putney
338d5b107d Allowing the creation of ValidationErrors with just error codes, but setting the proper message for debugging 2021-05-27 10:56:17 -04:00
Daniel Cortés
67bf600c52 Throw message for ValidationExceptions 2021-05-27 09:21:17 -04:00
Jonathan Putney
954768ec61 GetValue should no longer throw an exception if an error code is returned
This was causing issues with JavaScript execution stopping on the exception, preventing further processing in the module. This was especially an issue when the module was trying to get a value that it should have been providing in the first place (looking at you SkillSoft)
2021-05-27 09:11:02 -04:00
Jonathan Putney
1a5d8d3241 Only allowing 'not attempted' when CMI has not been initialized 2021-04-19 15:50:35 -04:00
Jonathan Putney
6d1eabc3fc Updating dependencies, fixing cmi.core.lesson_status for 'not attempted' 2021-04-19 15:38:28 -04:00
Jonathan Putney
e52bf85903 Fixing issue with commit callback not being called for scheduled commits 2021-02-20 12:07:41 -05:00
Jonathan Putney
28fe544ef5 Adding ability to deregister event listeners 2020-12-14 12:17:43 -05:00
Jonathan Putney
7f1d9953e4 Bug fixes and sorting issue with loadFromFlattenedJson
Also added several new test cases, most significantly some cases that test the commit functionality
2020-08-17 14:46:33 -04:00
Jonathan Putney
8c781ac378 Adding test cases for long-fill-in response type 2020-08-17 09:14:58 -04:00
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
ca94ee9fb5 Adding new selfReportSessionTime setting 2020-06-26 14:50:33 -04:00
Jonathan Putney
9847b0f1eb Fixing an issue with double digit interaction counts 2020-06-26 12:07:06 -04:00
Jonathan Putney
3df4eee314 Fixing duration to seconds to ignore leap year/time zones 2020-03-17 17:18:26 -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
0357442e93 Fixing some regex issues and adding additional API tests 2020-02-04 15:14:42 -05:00
Jonathan Putney
81528274a4 Properly handling ISO 8601 durations that have milliseconds 2020-01-22 13:38:22 -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
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
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
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
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
c123059d4e Working on compiling documentation 2019-11-12 22:10:23 -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
b294496cb5 Test code cleanup, and starting SCORM 2004 CMI tests 2019-11-12 13:42:04 -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
da4af1edba Initial push, working on test cases 2019-11-10 12:29:43 -05:00