PolymerElements/iron-test-helpers

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build status

iron-test-helpers

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

Mock Interactions

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);


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.