Intercooler.js Test Suite

This is the test suite for the Intercooler.js library. Simply loading this page in a browser will run all the tests

New tests should follow the existing test templates, using the intercoolerTest() helper and mockjax for mocking out AJAX requests.


Test Results

Intercooler.js

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/137.0.0.0 Safari/537.36 Prerender (+https://github.com/prerender/prerender)

Running:
ic-trigger with a delay clause fires after delay

  1. IC attributes are set on elements (18)Rerun1 ms
    1. Has ID@ 1 ms
    2. Has Fingerprint@ 1 ms
    3. Has Last Refresh@ 1 ms
    4. Has ID@ 1 ms
    5. Has Fingerprint@ 1 ms
    6. Has Last Refresh@ 1 ms
    7. Has ID@ 1 ms
    8. Has Fingerprint@ 1 ms
    9. Has Last Refresh@ 1 ms
    10. Has ID@ 1 ms
    11. Has Fingerprint@ 1 ms
    12. Has Last Refresh@ 1 ms
    13. Has ID@ 1 ms
    14. Has Fingerprint@ 1 ms
    15. Has Last Refresh@ 1 ms
    16. Has ID@ 1 ms
    17. Has Fingerprint@ 1 ms
    18. Has Last Refresh@ 1 ms
  2. Simple Update (2)Rerun67 ms
    1. Updated@ 0 ms
    2. Updated@ 53 ms
  3. Dependency update w/ POST (2)Rerun67 ms
    1. Updated@ 0 ms
    2. Updated@ 53 ms
  4. Dependency update w/ PUT (2)Rerun67 ms
    1. Updated@ 0 ms
    2. Updated@ 54 ms
  5. Dependency update w/ DELETE (2)Rerun66 ms
    1. Updated@ 1 ms
    2. Updated@ 53 ms
  6. ic-get-from test (2)Rerun66 ms
    1. Pre@ 1 ms
    2. Updated@ 53 ms
  7. DELETE with removal (1)Rerun66 ms
    1. okay@ 52 ms
  8. Dependency on updated superpath (2)Rerun66 ms
    1. Updated@ 0 ms
    2. Updated@ 52 ms
  9. Dependency on updated subpath (2)Rerun65 ms
    1. Updated@ 0 ms
    2. Updated@ 52 ms
  10. Explicit dependency works (2)Rerun65 ms
    1. Updated@ 1 ms
    2. Updated@ 52 ms
  11. Prepend works properly (2)Rerun70 ms
    1. Pre-update@ 1 ms
    2. Updated@ 56 ms
  12. Append works properly (2)Rerun66 ms
    1. Pre-update@ 0 ms
    2. Updated@ 53 ms
  13. Eval header works (1)Rerun67 ms
    1. okay@ 52 ms
  14. Form submission works (1)Rerun74 ms
    1. okay@ 60 ms
  15. Form submission with submit button works (1)Rerun65 ms
    1. okay@ 52 ms
  16. Form submission works on direct form submission (1)Rerun65 ms
    1. okay@ 52 ms
  17. Fingerprint is stable between requests (2)Rerun65 ms
    1. okay@ 51 ms
    2. okay@ 51 ms
  18. Fingerprint changes with new content (2)Rerun67 ms
    1. okay@ 52 ms
    2. okay@ 52 ms
  19. Intercooler.refresh() with element works (1)Rerun66 ms
    1. okay@ 53 ms
  20. Intercooler.refresh() with path works (1)Rerun67 ms
    1. okay@ 52 ms
  21. Custom transitions work (2)Rerun66 ms
    1. okay@ 52 ms
    2. okay@ 52 ms
  22. Test indicator as class (2)Rerun71 ms
    1. okay@ 4 ms
    2. okay@ 57 ms
  23. Test indicator as an attribute (1)Rerun65 ms
    1. okay@ 52 ms
  24. Test indicator as an attribute on a parent (1)Rerun65 ms
    1. okay@ 52 ms
  25. Target attribute works (1)Rerun68 ms
    1. okay@ 53 ms
  26. Target attribute works with append (1)Rerun68 ms
    1. okay@ 52 ms
  27. Target attribute works with prepend (1)Rerun80 ms
    1. okay@ 57 ms
  28. ic-limit-children works with prepend (1)Rerun615 ms
    1. okay@ 602 ms
  29. ic-limit-children works with append and target (1)Rerun624 ms
    1. okay@ 610 ms
  30. ic-include works (1)Rerun66 ms
    1. okay@ 53 ms
  31. ic-trigger-on works (1)Rerun69 ms
    1. okay@ 53 ms
  32. ic-verb works (2)Rerun77 ms
    1. okay@ 64 ms
    2. okay@ 64 ms
  33. ic-style-src updates style (1)Rerun73 ms
    1. okay@ 60 ms
  34. ic-attr-src updates attr (1)Rerun65 ms
    1. okay@ 52 ms
  35. Log event happens properly (1)Rerun67 ms
    1. okay@ 54 ms
  36. IC-Trigger Header (2)Rerun66 ms
    1. okay@ 0 ms
    2. okay@ 53 ms
  37. IC-Trigger Header With Single Arg (1)Rerun66 ms
    1. okay@ 52 ms
  38. IC-Trigger Header With Array Args (1)Rerun66 ms
    1. okay@ 53 ms
  39. No double-wiring of events after a refresh (1)Rerun65 ms
    1. okay@ 52 ms
  40. Children are wired in properly (1)Rerun114 ms
    1. okay@ 101 ms
  41. Scripts are evaluated once (1)Rerun65 ms
    1. okay@ 52 ms
  42. ic-on-beforeSend is invoked (1)Rerun65 ms
    1. okay@ 52 ms
  43. ic-on-beforeSend is invoked on parent (1)Rerun66 ms
    1. okay@ 53 ms
  44. ic-replace-target replaces itself (2)Rerun65 ms
    1. okay@ 1 ms
    2. okay@ 51 ms
  45. ic-target with a closest expression works (2)Rerun65 ms
    1. okay@ 0 ms
    2. okay@ 52 ms
  46. ic-trigger with a delay clause fires after delayRerun
    1. okay@ 0 ms
    2. okay@ 1 ms
    3. okay@ 202 ms
  47. ic-trigger with a delay does not cause multiple calls to issueRerun
    1. trigger during request on element is caught and deferredRerun
      1. only one deferred trigger is firedRerun
        1. Child trigger worksRerun

          Test HTML


          Bar
          Bar
          Bar
          Bar
          foo
          Bar
          Bar
          Bar
          Foo
          Bar
          Bar
          Bar
          Bar
          Foo
          Foo
          Foo
          foo
          foo
          PUT POST Foo Foo Foo 2 Updated New Content.. asdf
          asdf
          0
          0
          0
          0