| Index: third_party/polymer/v1_0/components-chromium/iron-test-helpers/test-helpers.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-test-helpers/test-helpers.js b/third_party/polymer/v1_0/components-chromium/iron-test-helpers/test-helpers.js
|
| index b48bbb9ba8742cf4e7ce71566c74d50e8eaf4f10..7507b1868d2a77c95592367d0aef5353017c4294 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/iron-test-helpers/test-helpers.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-test-helpers/test-helpers.js
|
| @@ -10,7 +10,8 @@
|
| (function(global) {
|
| 'use strict';
|
|
|
| - /*
|
| +
|
| + /**
|
| * Forces distribution of light children, and lifecycle callbacks on the
|
| * Custom Elements polyfill. Used when testing elements that rely on their
|
| * distributed children.
|
| @@ -22,7 +23,7 @@
|
| window.CustomElements && window.CustomElements.takeRecords();
|
| };
|
|
|
| - /*
|
| + /**
|
| * Stamps and renders a `dom-if` template.
|
| *
|
| * @param {HTMLElement} node The node containing the template,
|
| @@ -36,10 +37,10 @@
|
| global.flushAsynchronousOperations();
|
| };
|
|
|
| - /*
|
| + /**
|
| * Fires a custom event on a specific node. This event bubbles and is cancellable.
|
| *
|
| - * @param {String} type The type of event.
|
| + * @param {string} type The type of event.
|
| * @param {Object} props Any custom properties the event contains.
|
| * @param {HTMLElement} node The node to fire the event on.
|
| */
|
| @@ -54,7 +55,7 @@
|
| node.dispatchEvent(event);
|
| };
|
|
|
| - /*
|
| + /**
|
| * Skips a test unless a condition is met. Sample use:
|
| * function isNotIE() {
|
| * return !navigator.userAgent.match(/MSIE/i);
|
| @@ -63,7 +64,7 @@
|
| * ...
|
| * });
|
| *
|
| - * @param {String} condition The name of a Boolean function determining if the test should be run.
|
| + * @param {Function} condition The name of a Boolean function determining if the test should be run.
|
| * @param {Function} test The test to be run.
|
| */
|
|
|
| @@ -86,4 +87,11 @@
|
| return result;
|
| };
|
| };
|
| +
|
| + global.TestHelpers = {
|
| + flushAsynchronousOperations: global.flushAsynchronousOperations,
|
| + forceXIfStamp: global.forceXIfStamp,
|
| + fireEvent: global.fireEvent,
|
| + skipUnless: global.skipUnless
|
| + };
|
| })(this);
|
|
|