Commit Graph

30 Commits

Author SHA1 Message Date
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