19 Commits
Author SHA1 Message Date
Oliver Hamlet 58a6d8c047 Remove Sauce Labs integration and HTML-based tests
Switch "npm test" to running Karma instead of Grunt, don't do any UI
testing on Travis (it's headless so can't easily run UI tests)
2016-12-20 15:35:50 +00:00
Oliver Hamlet 647432fd71 Add support for running JS tests in LOOT from CLI
- Use Karma to run the tests.
- Support specifying LOOT UI index page as CLI argument, and
  treat localhost URLs like http://loot URLs, so that Karma
  can get LOOT to launch the test page.
- Fix the JS query tests when run in LOOT, as window.cefQuery
  can't be stubbed in CEF.
2016-12-20 15:31:07 +00:00
Oliver Hamlet cdad91ffe1 Replace should.js assertions with Chai
Chai is more popular and so has more examples for getting in-browser
tests run from the command line (I haven't found any for should.js)
using third-party modules, which will be more helpful than sticking with
should.js.

The only downside is that chai doesn't have neat Promise assertions, and
the chai-as-promised plugin that adds them doesn't support browsers
without something like Browserify involved.
2016-12-20 13:54:33 +00:00
Oliver Hamlet 66dcb29d10 Remove font binaries, download during UI build
Closes #714.
2016-12-01 19:03:12 +00:00
Oliver Hamlet cf4d38276b Replace vulcanize process with loose files
It's a lot easier to debug, but may have reduced startup performance.
Closes #682.
2016-11-20 15:13:32 +00:00
Oliver Hamlet 859389b608 Add script that updates LOOT's version number
Closes #666.
2016-10-22 11:41:15 +01:00
Oliver Hamlet 5b2541d008 Update Node.js dependencies 2016-09-14 18:54:59 +01:00
Oliver Hamlet 9545dfb332 Bump version to 0.9.1 2016-06-21 18:52:16 +01:00
Oliver Hamlet d4fe7869ad Bump version to 0.9.0 2016-05-20 17:50:51 +01:00
Oliver Hamlet 6cf872948d Update grunt-cli Node.js package
To remove npm warnings.
2016-04-02 15:44:28 +01:00
Oliver Hamlet 40c0f8a232 Update ESLint and grunt npm packages 2016-03-18 09:06:27 +00:00
Oliver Hamlet 544e316be7 Update Vulcanize script for element tests
The Vulcanize script can now build the UI, the element test files, or
both, defaulting to the latter.

The `mkdirp` package is used as it's the simplest way of getting
recursive `mkdir`, ie. `mkdir -p`, to work.
2016-03-05 11:49:26 +00:00
Oliver Hamlet f1437fb728 Enable linting of JS in <script> tags 2016-03-05 11:49:26 +00:00
Oliver Hamlet 173fddd130 Update Vulcanize version in package.json 2016-03-05 11:49:26 +00:00
Oliver Hamlet c0d992c387 Updated Airbnb style guide used
The updated style guide made a number of new suggestions, so the config
and the code have been updated to reflect them.
2016-01-31 08:30:31 +00:00
Oliver Hamlet e31c97b3e9 Run JavaScript tests on Travis
Using Sauce Labs and Grunt. Also install runtime dependencies
using Bower to get the Jed package that's used in testing, and
save the Bower version resolutions for Travis so that step can be
automated.
2015-12-23 16:12:41 +00:00
Oliver Hamlet 56a7170d1c Started to refactor JS Plugin class
Start with making plugin.js into a module, and re-implementing Plugin
using the class-based ES6 syntax, as it's a lot cleaner. Dispatch
events from setters instead of using Object.observe when changing
values that prompt external changes.

Vulcanize's whitespace stripper doesn't like the ES6 syntax though, so
disable that.

Also start implementing some tests using Mocha and should.js.

Finish refactoring JS Plugin code
2015-12-23 16:11:34 +00:00
Oliver Hamlet dd77312133 Use ESLint and the AirBnB style guide
To help enforce a consistent JS code style and improve code quality by
catching various syntax gotchas.

I'm editing in Atom with the linter-eslint package installed, and it
gives me inline warnings and errors, very handy. I'm not going to run
ESLint on Travis (yet) though, as it spits out far too many errors for
it to be useful.
2015-12-23 16:11:21 +00:00
Oliver Hamlet 534d2eb11a Add a package.json for Node dependencies
It makes managing them easier.
2015-12-23 15:58:53 +00:00