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/140.0.0.0 Safari/537.36 Prerender (+https://github.com/prerender/prerender)

Running:
Target attribute works

  1. IC attributes are set on elements (18)Rerun0 ms
    1. Has ID@ 0 ms
    2. Has Fingerprint@ 0 ms
    3. Has Last Refresh@ 0 ms
    4. Has ID@ 0 ms
    5. Has Fingerprint@ 0 ms
    6. Has Last Refresh@ 0 ms
    7. Has ID@ 0 ms
    8. Has Fingerprint@ 0 ms
    9. Has Last Refresh@ 0 ms
    10. Has ID@ 0 ms
    11. Has Fingerprint@ 0 ms
    12. Has Last Refresh@ 0 ms
    13. Has ID@ 0 ms
    14. Has Fingerprint@ 0 ms
    15. Has Last Refresh@ 0 ms
    16. Has ID@ 0 ms
    17. Has Fingerprint@ 0 ms
    18. Has Last Refresh@ 0 ms
  2. Simple Update (2)Rerun120 ms
    1. Updated@ 1 ms
    2. Updated@ 106 ms
  3. Dependency update w/ POST (2)Rerun116 ms
    1. Updated@ 0 ms
    2. Updated@ 103 ms
  4. Dependency update w/ PUT (2)Rerun115 ms
    1. Updated@ 0 ms
    2. Updated@ 101 ms
  5. Dependency update w/ DELETE (2)Rerun115 ms
    1. Updated@ 0 ms
    2. Updated@ 101 ms
  6. ic-get-from test (2)Rerun115 ms
    1. Pre@ 0 ms
    2. Updated@ 101 ms
  7. DELETE with removal (1)Rerun115 ms
    1. okay@ 101 ms
  8. Dependency on updated superpath (2)Rerun115 ms
    1. Updated@ 0 ms
    2. Updated@ 101 ms
  9. Dependency on updated subpath (2)Rerun115 ms
    1. Updated@ 0 ms
    2. Updated@ 101 ms
  10. Explicit dependency works (2)Rerun115 ms
    1. Updated@ 0 ms
    2. Updated@ 101 ms
  11. Prepend works properly (2)Rerun118 ms
    1. Pre-update@ 0 ms
    2. Updated@ 105 ms
  12. Append works properly (2)Rerun119 ms
    1. Pre-update@ 0 ms
    2. Updated@ 104 ms
  13. Eval header works (1)Rerun115 ms
    1. okay@ 102 ms
  14. Form submission works (1)Rerun117 ms
    1. okay@ 104 ms
  15. Form submission with submit button works (1)Rerun116 ms
    1. okay@ 101 ms
  16. Form submission works on direct form submission (1)Rerun116 ms
    1. okay@ 102 ms
  17. Fingerprint is stable between requests (2)Rerun115 ms
    1. okay@ 102 ms
    2. okay@ 102 ms
  18. Fingerprint changes with new content (2)Rerun115 ms
    1. okay@ 102 ms
    2. okay@ 102 ms
  19. Intercooler.refresh() with element works (1)Rerun116 ms
    1. okay@ 102 ms
  20. Intercooler.refresh() with path works (1)Rerun115 ms
    1. okay@ 101 ms
  21. Custom transitions work (2)Rerun114 ms
    1. okay@ 101 ms
    2. okay@ 101 ms
  22. Test indicator as class (2)Rerun115 ms
    1. okay@ 1 ms
    2. okay@ 101 ms
  23. Test indicator as an attribute (1)Rerun114 ms
    1. okay@ 101 ms
  24. Test indicator as an attribute on a parent (1)Rerun116 ms
    1. okay@ 102 ms
  25. Target attribute worksRerun
    1. Target attribute works with appendRerun
      1. Target attribute works with prependRerun
        1. ic-limit-children works with prependRerun
          1. ic-limit-children works with append and targetRerun
            1. ic-include worksRerun
              1. ic-trigger-on worksRerun
                1. ic-verb worksRerun
                  1. ic-style-src updates styleRerun
                    1. ic-attr-src updates attrRerun
                      1. Log event happens properlyRerun
                        1. IC-Trigger HeaderRerun
                          1. IC-Trigger Header With Single ArgRerun
                            1. IC-Trigger Header With Array ArgsRerun
                              1. No double-wiring of events after a refreshRerun
                                1. Children are wired in properlyRerun
                                  1. Scripts are evaluated onceRerun
                                    1. ic-on-beforeSend is invokedRerun
                                      1. ic-on-beforeSend is invoked on parentRerun
                                        1. ic-replace-target replaces itselfRerun
                                          1. ic-target with a closest expression worksRerun
                                            1. ic-trigger with a delay clause fires after delayRerun
                                              1. 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
                                                      1. Current URL is presentRerun
                                                        1. Basic history support worksRerun
                                                          1. Fast fade works with empty targetRerun
                                                            1. Get from with target worksRerun
                                                              1. Basic partial response selector works properlyRerun
                                                                1. Partial response selector works properly with replace parentRerun
                                                                  1. Basic partial response selector works properly with fade-fastRerun
                                                                    1. Partial response selector works properly with replace parent with fade-fastRerun
                                                                      1. Partial response selector works properly with append fromRerun
                                                                        1. Partial response selector works properly with prepend fromRerun
                                                                          1. ic-include works with JSON contentRerun
                                                                            1. test that js events are called correctlyRerun
                                                                              1. Issue #44 complete event should fire on click with external ic-target and defaultTransition=none Rerun
                                                                                1. Issue #44 complete event should fire on click with self-replacing ic-target and defaultTransition=noneRerun

                                                                                  Test HTML


                                                                                  Bar
                                                                                  Bar
                                                                                  Bar
                                                                                  Bar
                                                                                  foo
                                                                                  Bar
                                                                                  Bar
                                                                                  Bar
                                                                                  Foo
                                                                                  Bar
                                                                                  Bar
                                                                                  Bar
                                                                                  Bar
                                                                                  Foo
                                                                                  Foo
                                                                                  Foo
                                                                                  foo
                                                                                  Foo Foo Foo Text
                                                                                  0
                                                                                  0
                                                                                  0
                                                                                  0
                                                                                  History Test Empty Target
                                                                                  Get From
                                                                                  click me! (self targeted)
                                                                                  click me! (external target)