Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
16
gaia/apps/verticalhome/test/marionette/lib/icon_src.js
Executable file
16
gaia/apps/verticalhome/test/marionette/lib/icon_src.js
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
/* global module */
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
Helper function to determine which icon an grid item element is using.
|
||||
|
||||
@param {Marionette.Element} element of particular icon.
|
||||
@return {String} url/uri for element.
|
||||
*/
|
||||
module.exports = function waitForIcon(element) {
|
||||
// XXX: this syncs up with the stamping logic in `renderIcon` in gaia_grid
|
||||
return element.scriptWith(function(el) {
|
||||
return el.dataset.testIcon;
|
||||
});
|
||||
};
|
||||
Loading…
Reference in a new issue