2014-05-29 13:13:41 -07:00
|
|
|
== Mocha unit tests ==
|
|
|
|
|
|
|
|
These unit tests use the browser build of the [Mocha test framework][1]
|
|
|
|
and the Chai Assertion Library's [BDD interface][2].
|
|
|
|
|
|
|
|
[1]: http://visionmedia.github.io/mocha/
|
|
|
|
[2]: http://chaijs.com/api/bdd/
|
|
|
|
|
2014-05-29 13:13:43 -07:00
|
|
|
Aim your browser at the index.html in this directory on your localhost using
|
|
|
|
a file: or HTTP URL to run the tests. Alternately, from the top-level of your
|
|
|
|
Gecko source directory, execute:
|
|
|
|
|
|
|
|
```
|
|
|
|
./mach marionette-test browser/components/loop/test/manifest.ini
|
|
|
|
```
|
2014-05-29 13:13:41 -07:00
|
|
|
|
|
|
|
Next steps:
|
2014-05-29 13:13:43 -07:00
|
|
|
|
|
|
|
* run using JS http server so the property security context for DOM elements
|
|
|
|
is used
|
2014-05-29 13:13:41 -07:00
|
|
|
|