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)

Tests completed in 71 milliseconds.
2 assertions of 2 passed, 0 failed.

  1. IC attributes are set on elementsRerun
    1. Simple UpdateRerun
      1. Dependency update w/ POSTRerun
        1. Dependency update w/ PUTRerun
          1. Dependency update w/ DELETERerun
            1. ic-get-from testRerun
              1. DELETE with removalRerun
                1. Dependency on updated superpathRerun
                  1. Dependency on updated subpathRerun
                    1. Explicit dependency worksRerun
                      1. Prepend works properlyRerun
                        1. Append works properlyRerun
                          1. Eval header worksRerun
                            1. Form submission worksRerun
                              1. Form submission with submit button worksRerun
                                1. Form submission works on direct form submissionRerun
                                  1. Fingerprint is stable between requestsRerun
                                    1. Fingerprint changes with new contentRerun
                                      1. Intercooler.refresh() with element worksRerun
                                        1. Intercooler.refresh() with path worksRerun
                                          1. Custom transitions workRerun
                                            1. Test indicator as class (2)Rerun70 ms
                                              1. okay@ 6 ms
                                              2. okay@ 56 ms
                                            2. Test indicator as an attributeRerun
                                              1. Test indicator as an attribute on a parentRerun
                                                1. 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

                                                                                                          Test HTML


                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          Foo
                                                                                                          loading...
                                                                                                          Foo
                                                                                                          loading...
                                                                                                          Foo
                                                                                                          Foo Foo Foo Text
                                                                                                          0
                                                                                                          0
                                                                                                          0
                                                                                                          0
                                                                                                          History Test Empty Target