Created
December 16, 2014 16:04
-
-
Save ishubin/ec79925c9faa94f59391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ import ../../meta/vars.spec | |
@@ import someSpec.js | |
====================================================================================== | |
mobile-nav-item-header css .mmenu-opened .main-link.active | |
mobile-nav-item-header-2 css .mmenu-opened .main-link:nth-child(2).active | |
mobile-nav-item-header-3 css .mmenu-opened .main-link:nth-child(3).active | |
mobile-nav-item-header-4 css .mmenu-opened .main-link:nth-child(4).active | |
mobile-nav-item-list css .mmenu-opened .mmenu-super-submenu:not(.ng-hide) | |
====================================================================================== | |
@ Global Nav | mobile | |
-------------------------------------------------------- | |
mobile-nav-item-header | |
image: file ../dumps/mobile/subnav/${findMyDumpDir()}/objects/mobile-nav-item-header.png, ${imgErr} | |
mobile-nav-item-list | |
image: file ../dumps/mobile/subnav/${findMyDumpDir()}/objects/mobile-nav-item-list.png, ${imgErr} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.findMyDumpDir = function () { | |
var element = find("mobile-nav-item-header-4"); | |
if (element != null && element.getPageElement().isVisible()) { | |
return "3"; | |
} | |
else { | |
element = find("mobile-nav-item-header-3"); | |
if (element != null && element.getPageElement().isVisible()) { | |
return "2"; | |
} | |
else { | |
element = find("mobile-nav-item-header-2"); | |
if (element != null && element.getPageElement().isVisible()) { | |
return "1"; | |
} | |
} | |
} | |
return "undefined"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment