Name: iron-test-helpers
Owner: PolymerElements
Description: Utility classes to make testing easier
Created: 2015-04-22 18:25:31.0
Updated: 2018-05-08 18:56:29.0
Pushed: 2018-05-23 02:33:14.0
Homepage: null
Size: 92
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A set of utility classes to make testing easier. For more details on the methods
available, please check the documentation of mock-interactions.js
and
test-helpers.js
This is a set of methods to simulate mouse or keyboard interaction with an element. Include mock-interactions.js
and then use them like so:
('can be triggered with space', function(done) {
tton.addEventListener('keydown', function() {
done();
;
ckInteractions.pressSpace(button);
('can be clicked', function(done) {
tton.addEventListener('click', function() {
done();
;
ckInteractions.tap(button);