can.Control Test Suite

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

Tests completed in 38 milliseconds.
45 assertions of 45 passed, 0 failed.

  1. can/control: basics (0, 14, 14)Rerun7 ms
    1. bind called
    2. bind given bar
    3. called with a callback
    4. SPAN clicked
    5. click called twice
    6. unbind called
    7. unbind given bar
    8. called with a callback
    9. bind called
    10. bind given bar
    11. called with a callback
    12. unbind called
    13. unbind given bar
    14. called with a callback
  2. can/control: data (0, 1, 1)Rerun1 ms
    1. there are 2 items in the data array
  3. can/control: bind to any special (0, 1, 1)Rerun1 ms
    1. heard the trigger
  4. can/control: parameterized actions (0, 1, 1)Rerun0 ms
    1. heard the trigger
  5. can/control: windowresize (0, 1, 1)Rerun1 ms
    1. got window resize event
  6. can/control: on (0, 9, 9)Rerun2 ms
    1. Got window click event
    2. Controller action delegated click triggered, too
    3. delegate works
    4. Directly clicked element
    5. Controller action delegated click triggered, too
    6. Got window click event
    7. Controller action delegated click triggered, too
    8. Got window click event
    9. Controller action delegated click triggered, too
  7. can/control: inherit (0, 1, 1)Rerun1 ms
    1. inherited the click method
  8. can/control: space makes event (0, 1, 1)Rerun1 ms
    1. called
  9. can/control: custom events with hyphens work (0, 1, 1)Rerun0 ms
    1. Custom event was fired.
  10. can/control: inherit defaults (0, 4, 4)Rerun1 ms
    1. Class must inherit defaults from the parent class
    2. Class must have own defaults
    3. Instance must inherit defaults from the parent class
    4. Instance must have defaults of it`s class
  11. can/control: on rebinding (0, 2, 2)Rerun0 ms
    1. first item
    2. first item
  12. can/control: actions provide method names (0, 4, 4)Rerun0 ms
    1. food called
    2. called with an item
    3. food called
    4. called with an item
  13. can/control: Don't bind if there are undefined values in templates (0, 1, 1)Rerun1 ms
    1. There is only one binding
  14. can/control: Multiple calls to destroy (0, 2, 2)Rerun0 ms
    1. okay
    2. okay
  15. can/control: Control is logging information in dev mode (0, 2, 2)Rerun0 ms
    1. Text logged as expected
    2. okay