| Index: chrome/test/data/webui/extensions/extension_test_util.js
|
| diff --git a/chrome/test/data/webui/extensions/extension_test_util.js b/chrome/test/data/webui/extensions/extension_test_util.js
|
| index 0ac52c7c0e2cad8abe8ded554b5d2005805659ec..e524ca7b2973f5cb0c4ee8215d8ba3ab58c18f7f 100644
|
| --- a/chrome/test/data/webui/extensions/extension_test_util.js
|
| +++ b/chrome/test/data/webui/extensions/extension_test_util.js
|
| @@ -124,11 +124,25 @@ cr.define('extension_test_util', function() {
|
| }, opt_properties);
|
| }
|
|
|
| + /**
|
| + * Tests that any iron-icon child of an HTML element has a corresponding
|
| + * non-empty svg element.
|
| + * @param {HTMLElement} e The element to check the iron icons in.
|
| + */
|
| + function testIronIcons(e) {
|
| + e.querySelectorAll('* /deep/ iron-icon').forEach(function(icon) {
|
| + var svg = icon.$$('svg');
|
| + expectTrue(!!svg && svg.innerHTML != '',
|
| + 'icon "' + icon.icon + '" is not present');
|
| + });
|
| + }
|
| +
|
| return {
|
| ClickMock: ClickMock,
|
| MockItemDelegate: MockItemDelegate,
|
| isVisible: isVisible,
|
| testVisible: testVisible,
|
| createExtensionInfo: createExtensionInfo,
|
| + testIronIcons: testIronIcons,
|
| };
|
| });
|
|
|