Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1292)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-test-helpers/README.md

Issue 1834313003: Remove unneeded files from third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore bower.json files. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 [![Build status](https://travis-ci.org/PolymerElements/iron-test-helpers.svg?bra nch=master)](https://travis-ci.org/PolymerElements/iron-test-helpers)
2
3 # iron-test-helpers
4
5 A set of utility classes to make testing easier. For more details on the methods
6 available, please check the documentation of `mock-interactions.js` and
7 `test-helpers.js`
8
9 ## Mock Interactions
10
11 This is a set of methods to simulate mouse or keyboard interaction with an eleme nt. Include `mock-interactions.js` and then use them like so:
12
13 ```javascript
14 test('can be triggered with space', function(done) {
15 button.addEventListener('keydown', function() {
16 done();
17 });
18 MockInteractions.pressSpace(button);
19 });
20
21 test('can be clicked', function(done) {
22 button.addEventListener('click', function() {
23 done();
24 });
25 MockInteractions.tap(button);
26 });
27 ```
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698