Skip to content

Commit

Permalink
update test runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Oct 16, 2024
1 parent 26518c2 commit 1a89f9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -1812,8 +1812,6 @@ Numbas.locale = {
"part.there is new feedback": "The feedback has changed.",
"part.input title": "Answer for part {{name}}",
"part.show feedback": "Show feedback",
"part.feedback message count": " (1 message)",
"part.feedback message count_plural": " ({{count}} messages)",
"part.hide feedback": "Hide feedback",
"part.feedback title": "Feedback for {{name}}.",
"part.correct answer title": "Expected answer for part {{name}}",
Expand Down
12 changes: 12 additions & 0 deletions tests/numbas-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -28541,6 +28541,18 @@ storage.partTypeStorage = {
}
}
};

/** @typedef inputWidgetStorage
* @memberof Numbas.storage
* @property {function} interaction_type - Return the SCORM interaction type identifier for the given part.
* @property {function} correct_answer - Return a JSON-serialisable object representing the correct answer for the given part.
* @property {function} student_answer - Return a JSON-serialisable object representing the student's answer to the given part.
* @property {function} load - Given arguments `part` and `data`, load the student's answer to the given part from the suspend data.
*/

/** @type {Object.<inputWidgetStorage>}
* @memberof Numbas.storage
*/
storage.inputWidgetStorage = {
'string': {
interaction_type: function(part) { return 'fill-in'; },
Expand Down

0 comments on commit 1a89f9b

Please sign in to comment.