Tests and demo code for the Khroma ClojureScript library.
Khroma cannot be tested by itself, since a lot of the APIs it uses are only exposed by Chrome for extensions with the proper permissions. Therefore, we need a test application which runs inside Chrome.
Once you have built and run the extension, it'll provide you with series of devcards combining usage examples and live tests.
You can read more about it here or check out all other khroma-related articles.
lein with-profile khroma-tests cljsbuild once
- Go into your Chrome extensions and configure them for developer mode.
- Add the just built extension from the
extension
folder to Chrome. - Press the shiny new lambda button on your browser bar.
The entire test suite is built to a single khroma_tests.js
file, which is already being taken care of by lein clean
. Make sure you retain the extension
folder, as it contains necessary scaffolding for the Chrome extension (including the manifest).
Copyright (c) 2015 Numergent Limited. Distributed under the Eclipse Public License.