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
<html> | |
<head> | |
<title>A Simple HTML Document</title> | |
</head> | |
<body> | |
<p>This is a very simple HTML document</p> | |
<p>It only has two paragraphs</p> | |
</body> | |
</html> |
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
# Range approximation | |
# ~~~~~~~~~~~~~~~~~~~~~ | |
# Defines the approximation value for ranges when using "~" in galen page specs | |
# This value means how many pixels or percents should it take constructing a range | |
# e.g. if we define approximation as 5 then the following spec: | |
# height: ~ 50 px | |
# will actually be replaced by Galen with this: | |
# height: 45 to 55px | |
galen.range.approximation=3 |
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
@rule %{objectPatterns} should be visible on %{tagsVisible} but absent on %{tagsAbsent} | |
${objectPatterns}: | |
@on ${tagsVisible} | |
visible | |
@on ${tagsAbsent} | |
absent | |
= ProductPicture = | |
| productPicture should be visible on tablet-landscape, desktop but absent on tablet-portrait, tablet-small |
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
#galen|spec|v2 | |
# in the new spec lang v2 everything will be done based on indentation | |
# All sections will have their own structure | |
# | |
# Also we will get rid of '@@' symbols for importing, conditions, rules etc. | |
# | |
# Objects definition | |
# ~~~~~~~~~~~~~~~~~~ |
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) | |
====================================================================================== |
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
================================================= | |
incoming-message-* css .chat-incoming | |
outgoing-message-* css .chat-outgoing | |
================================================= | |
@ * | |
------------------------------------------------- | |
incoming-message-* | |
inside: parent 0px right |
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
================================================== | |
current-chat css .mainarea | |
current-chat-incoming-message-* css .mainarea .chat-incoming | |
current-chat-outgoing-message-* css .mainarea .chat-outgoing | |
================================================== | |
@ * | |
current-chat-incoming-message-* | |
inside: current-chat 0px right |
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
@@ if | |
user-profile-1 | |
visible | |
@@ do | |
user-profile-1 | |
component: specs/user-profile.spec | |
@@ end |
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 net.mindengine.galen.browser.SeleniumBrowser; | |
import net.mindengine.galen.browser.Browser; | |
import net.mindengine.galen.page.Page; | |
import net.mindengine.galen.specs.page.PageSection; | |
import net.mindengine.galen.specs.reader.page.PageSpec; | |
import net.mindengine.galen.specs.reader.page.PageSpecReader; | |
import net.mindengine.galen.validation.PageValidation; | |
import net.mindengine.galen.validation.SectionValidation; | |
import net.mindengine.galen.validation.ValidationError; | |
import net.mindengine.galen.validation.ValidationListener; |