QUnit for SCORM API

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Tests completed in 47 milliseconds.
94 assertions of 95 passed, 1 failed.

  1. SCORM_API: scorm.debug (0, 5, 5)Rerun1 ms
    1. Valid error message
    2. Valid warning message
    3. Valid general message
    4. Valid log message
    5. Invalid log message
  2. SCORM_API: initialize (0, 1, 1)Rerun3 ms
    1. initialize
  3. SCORM_API: get (0, 2, 2)Rerun1 ms
    1. Standalone checkup - true
    2. Get Version: 1.4
  4. SCORM_API: set (0, 1, 1)Rerun0 ms
    1. Cannot set version, read-only: 1.4
  5. SCORM_API: getvalue (0, 11, 11)Rerun4 ms
    1. Requested cmi.mode - normal
    2. Requested cmi.session_time - (not allowed, will throw error 405)
    3. Requested cmi.launch_data - ?name1=value1&name2=value2&name3=value3
    4. Requested cmi.entry - ab-initio
    5. Requested cmi.credit - no-credit
    6. Getting cmi.location - (this should be empty)
    7. Getting cmi.completion_status - incomplete
    8. Getting cmi.suspend_data
    9. Getting cmi.success_status
    10. Getting cmi.learner_name
    11. Getting cmi.learner_id
  6. SCORM_API: setvalue (0, 58, 58)Rerun11 ms
    1. Setting cmi.mode (not allowed, will throw error 404)
    2. Setting cmi.location to 4
    3. Setting cmi.completion_status to total failure (not allowed, will throw error 406)
    4. Setting cmi.completion_status to incomplete
    5. Setting cmi.success_status to passed
    6. Setting cmi.score.min to 0
    7. Setting cmi.score.max to 1
    8. Setting cmi.objectives.0.id
    9. Setting cmi.objectives.0.score.scaled
    10. Setting cmi.objectives.0.score.min
    11. Setting cmi.objectives.0.score.max
    12. Setting cmi.objectives.0.score.raw
    13. Setting cmi.objectives.0.success_status
    14. Setting cmi.objectives.0.completion_status
    15. Setting cmi.objectives.0.progress_measure
    16. Setting cmi.objectives.0.description
    17. Getting cmi.interactions._count - 0 (this should be 0)
    18. Setting cmi.interation.0.id
    19. Setting cmi.interation.0.type
    20. Setting cmi.interactions.0.objectives.0.id
    21. Setting cmi.interation.0.correct_responses.0.pattern
    22. Setting cmi.interation.0.description
    23. Setting cmi.interation.0.learner_response
    24. Setting cmi.interation.0.result
    25. Setting cmi.objectives.1.id
    26. Setting cmi.objectives.0.score.scaled
    27. Setting cmi.objectives.0.score.min
    28. Setting cmi.objectives.0.score.max
    29. Setting cmi.objectives.0.score.raw
    30. Setting cmi.objectives.0.success_status
    31. Setting cmi.objectives.0.completion_status
    32. Setting cmi.objectives.0.progress_measure
    33. Setting cmi.objectives.0.description
    34. Setting cmi.interation.1.id
    35. Setting cmi.interation.1.type
    36. Getting cmi.interactions._count - 1 (this should be 1)
    37. Setting cmi.interactions.1.objectives.false.id
    38. Setting cmi.interation.1.correct_responses.0.pattern
    39. Setting cmi.interation.1.description
    40. Setting cmi.interation.1.learner_response
    41. Setting cmi.interation.1.result
    42. Setting cmi.objectives.0.score.scaled
    43. Setting cmi.objectives.0.score.min
    44. Setting cmi.objectives.0.score.max
    45. Setting cmi.objectives.0.score.raw
    46. Setting cmi.objectives.0.success_status
    47. Setting cmi.objectives.0.completion_status
    48. Setting cmi.objectives.0.progress_measure
    49. Setting cmi.objectives.0.description
    50. Setting cmi.interation.2.id
    51. Setting cmi.interation.2.type
    52. Getting cmi.interactions._count - 2 (this should be 2)
    53. Setting cmi.interactions.2.objectives.false.id
    54. Setting cmi.interation.2.correct_responses.0.pattern
    55. Setting cmi.interation.2.description
    56. Setting cmi.interation.2.learner_response
    57. Setting cmi.interation.2.result
    58. Setting cmi.suspend_data
  7. SCORM_API: getvalue (0, 7, 7)Rerun2 ms
    1. Requested cmi.mode - normal
    2. Getting cmi.location - 4 (this should be 4)
    3. Getting Objective by ID 0_1
    4. Getting cmi.interactions.2.learner_response - true (this should be true)
    5. Getting cmi.interactions.2.result - correct (this should be correct)
    6. Getting cmi.interactions.2.type - true-false (this should be true-false)
    7. Getting Objective Count, expecting 3
  8. SCORM_API: setvalue (0, 4, 4)Rerun0 ms
    1. Setting cmi.score.raw to 1
    2. Setting cmi.score.scaled to 1
    3. Setting cmi.completion_status to completed
    4. Setting cmi.success_status to passed
  9. SCORM_API: commit (1, 1, 2)Rerun3 ms
    1. Commit data (should respond true)
    2. Checking for adl.nav.request_valid.continue
      Expected:
      "true"
      Result:
      "false"
      Diff:
      "true" "false" 
      Source:
          at Object.<anonymous> (https://contenidos-pearson.com/envision/grado03/juegos/A0018235/QUnit-Tests/js/test/scorm_api.js:362:6)
  10. SCORM_API: terminate (0, 2, 2)Rerun3 ms
    1. Setting Exit type normal
    2. Termination (you can't do anything else after this technically)
  11. SCORM_API: Illegal calls after Termination (0, 2, 2)Rerun0 ms
    1. Setting cmi.location after termination (not allowed)
    2. Setting cmi.suspend_data after termination (not allowed)