Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mwbrooks/dominator.js
Function Test Destruction for QUnit.
https://github.com/mwbrooks/dominator.js
Last synced: 2 months ago
JSON representation
Function Test Destruction for QUnit.
- Host: GitHub
- URL: https://github.com/mwbrooks/dominator.js
- Owner: mwbrooks
- License: mit
- Created: 2011-02-19T01:02:24.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-18T16:14:00.000Z (over 13 years ago)
- Last Synced: 2024-04-15T02:48:59.607Z (9 months ago)
- Language: JavaScript
- Homepage: http://mwbrooks.github.com/dominator.js/
- Size: 841 KB
- Stars: 30
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dominator.js
============> Functional Test Destruction
dominator.open('#home')
.click('a.redButton')
.waitForPage('#boom')
.destroy();Synopsis
--------Dominator adds functional test assertions to __QUnit__.
Functional tests should be __simple to write__, __easy to read__, and __adaptable__ to any JavaScript framework.
For us, functional tests are a smoke screen. When you need more, then it is time to abstract and unit test.
Example
-------module('open');
test('should open first page', function() {
dominator.open('#home')
.waitForPage('#home')
.destroy();
});module('settings');
test('should save settings', function() {
dominator.open('#settings')
.click('#save')
.waitForEvent('document', 'settingsChange');
.destroy();
});Usage
-----[Dominator.js Homepage](http://mwbrooks.github.com/dominator.js/).
- [Installation](http://mwbrooks.github.com/dominator.js/#installing)
- [Getting Started](http://mwbrooks.github.com/dominator.js/#getting-started)
- [Reference](http://mwbrooks.github.com/dominator.js/#reference)
- [Customizing](http://mwbrooks.github.com/dominator.js/#customizing)
- [Community](http://mwbrooks.github.com/dominator.js/#community)
- [Contributing](http://mwbrooks.github.com/dominator.js/#contribute)
- [Acknowledgements](http://mwbrooks.github.com/dominator.js/#acknowledgement)
- [License](http://mwbrooks.github.com/dominator.js/#license)Support
-------Currently, dominator.js only runs in WebKit browsers.
Development
-----------### Getting the Source Code
$ git clone git://github.com/mwbrooks/dominator.js.git
$ cd dominator.js
$ git submodule init
$ git submodule update### Building the Source Code
$ make
### Running Tests
Open `test/index.html`