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

Unified Diff: third_party/polymer/v1_0/components-chromium/iron-test-helpers/test-helpers.js

Issue 1849403002: Update PolymerElements/iron-a11y-keys-behavior for ESC key fix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698