Files
RedBear-OS/local/recipes/kde/kf6-syntaxhighlighting/source/autotests/reference/test.feature.ref
T

67 lines
7.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<DocString></DocString><br/>
<Feature>Feature:</Feature><HeaderText> Lets test Cucumber feature syntax highlighting</HeaderText><br/>
<DocString> These are just example features to see that syntax highlighting works.</DocString><br/>
<DocString></DocString><br/>
<DocString> These features are copied from Cucumbers documentation, and they are</DocString><br/>
<DocString> licensed under MIT.</DocString><br/>
<DocString></DocString><br/>
<DocString> Source repository can be found at:</DocString><br/>
<DocString> https://github.com/cucumber/docs.cucumber.io</DocString><br/>
<DocString></DocString><br/>
<DocString> </DocString><Comment># Comments are not considered to be part of a feature.</Comment><br/>
<DocString> </DocString><Keyword>Rule</Keyword><HeaderText>: Users are notified about overdue tasks on first use of the day</HeaderText><br/>
<HeaderText> </HeaderText><Keyword>Background</Keyword><HeaderText>:</HeaderText><br/>
<HeaderText> </HeaderText><Step>Given</Step><StepString> I have overdue tasks</StepString><br/>
<StepString></StepString><br/>
<StepString> </StepString><Keyword>Example</Keyword><HeaderText>: First use of the day</HeaderText><br/>
<HeaderText> </HeaderText><DocString>"""</DocString><br/>
<Comment> Docstrings can also be used.</Comment><br/>
<Comment> </Comment><DocString>"""</DocString><br/>
<HeaderText> </HeaderText><Step>Given</Step><StepString> I last used the app yesterday</StepString><br/>
<StepString> </StepString><Step>When</Step><StepString> I use the app</StepString><br/>
<StepString> </StepString><Step>Then</Step><StepString> I am notified about overdue tasks</StepString><br/>
<StepString></StepString><br/>
<StepString> </StepString><Keyword>Example</Keyword><HeaderText>: Already used today</HeaderText><br/>
<HeaderText> </HeaderText><Step>Given</Step><StepString> I last used the app earlier today</StepString><br/>
<StepString> </StepString><Step>When</Step><StepString> I use the app</StepString><br/>
<StepString> </StepString><Step>Then</Step><StepString> I am not notified about overdue tasks</StepString><br/>
<StepString></StepString><br/>
<SyntaxError>Feature:</SyntaxError><DocString> Multiple site support</DocString><br/>
<DocString> Only blog owners can post to a blog, except administrators,</DocString><br/>
<DocString> who can post to all blogs.</DocString><br/>
<DocString></DocString><br/>
<DocString> </DocString><Keyword>Background</Keyword><HeaderText>:</HeaderText><br/>
<HeaderText> </HeaderText><Step>Given</Step><StepString> a global administrator named </StepString><QuotedString>"Greg"</QuotedString><br/>
<StepString> </StepString><Step>And</Step><StepString> a blog named </StepString><QuotedString>"Greg's anti-tax rants"</QuotedString><br/>
<StepString> * a customer named </StepString><QuotedString>"Dr. Bill"</QuotedString><br/>
<StepString> </StepString><Step>And</Step><StepString> a blog named </StepString><QuotedString>"Expensive Therapy"</QuotedString><StepString> owned by </StepString><QuotedString>"Dr. Bill"</QuotedString><br/>
<StepString></StepString><br/>
<StepString> </StepString><GherkinTag>@tagged_scenario</GherkinTag><br/>
<StepString> </StepString><Keyword>Scenario</Keyword><HeaderText>: Dr. Bill posts to his own blog</HeaderText><br/>
<HeaderText> </HeaderText><Step>Given</Step><StepString> I am logged in as Dr. Bill</StepString><br/>
<StepString> </StepString><Step>When</Step><StepString> I try to post to </StepString><QuotedString>"Expensive Therapy"</QuotedString><br/>
<StepString> </StepString><Step>Then</Step><StepString> I should see </StepString><QuotedString>"Your article was published."</QuotedString><br/>
<StepString></StepString><br/>
<StepString> </StepString><Keyword>Scenario</Keyword><HeaderText>: Dr. Bill tries to post to somebody else's blog, and fails</HeaderText><br/>
<HeaderText> </HeaderText><Step>Given</Step><StepString> the following users exist:</StepString><br/>
<StepString> </StepString><TableSeparator>|</TableSeparator><TableString> name </TableString><TableSeparator>|</TableSeparator><TableString> email </TableString><TableSeparator>|</TableSeparator><TableString> twitter </TableString><TableSeparator>|</TableSeparator><br/>
<StepString> </StepString><TableSeparator>|</TableSeparator><TableString> Aslak </TableString><TableSeparator>|</TableSeparator><TableString> aslak@cucumber.io </TableString><TableSeparator>|</TableSeparator><TableString> @aslak_hellesoy </TableString><TableSeparator>|</TableSeparator><br/>
<StepString> </StepString><TableSeparator>|</TableSeparator><TableString> Julien </TableString><TableSeparator>|</TableSeparator><TableString> julien@cucumber.io </TableString><TableSeparator>|</TableSeparator><TableString> @jbpros </TableString><TableSeparator>|</TableSeparator><br/>
<StepString> </StepString><TableSeparator>|</TableSeparator><TableString> Matt </TableString><TableSeparator>|</TableSeparator><TableString> matt@cucumber.io </TableString><TableSeparator>|</TableSeparator><TableString> @mattwynne </TableString><TableSeparator>|</TableSeparator><br/>
<StepString> </StepString><Step>When</Step><StepString> I try to post to </StepString><QuotedString>"Greg's anti-tax rants"</QuotedString><br/>
<StepString> </StepString><Step>Then</Step><StepString> I should see </StepString><QuotedString>"Hey! That's not your blog!"</QuotedString><br/>
<StepString></StepString><br/>
<SyntaxError>Feature:</SyntaxError><DocString> There can also be Scenario Outline</DocString><br/>
<DocString></DocString><br/>
<DocString> </DocString><Keyword>Scenario Outline:</Keyword><HeaderText> eating</HeaderText><br/>
<HeaderText> </HeaderText><Step>Given</Step><StepString> there are </StepString><StepOutlineVariable><start></StepOutlineVariable><StepString> cucumbers</StepString><br/>
<StepString> </StepString><Step>When</Step><StepString> I eat </StepString><StepOutlineVariable><eat></StepOutlineVariable><StepString> cucumbers</StepString><br/>
<StepString> </StepString><Step>Then</Step><StepString> I should have </StepString><StepOutlineVariable><left></StepOutlineVariable><StepString> cucumbers</StepString><br/>
<StepString></StepString><br/>
<StepString> Examples:</StepString><br/>
<StepString> </StepString><TableSeparator>|</TableSeparator><TableString> start </TableString><TableSeparator>|</TableSeparator><TableString> eat </TableString><TableSeparator>|</TableSeparator><TableString> left </TableString><TableSeparator>|</TableSeparator><br/>
<StepString> </StepString><TableSeparator>|</TableSeparator><TableString> 12 </TableString><TableSeparator>|</TableSeparator><TableString> 5 </TableString><TableSeparator>|</TableSeparator><TableString> 7 </TableString><TableSeparator>|</TableSeparator><br/>
<StepString> </StepString><TableSeparator>|</TableSeparator><TableString> 20 </TableString><TableSeparator>|</TableSeparator><TableString> 5 </TableString><TableSeparator>|</TableSeparator><TableString> 15 </TableString><TableSeparator>|</TableSeparator><br/>
<StepString></StepString><br/>
<Comment># </Comment><Keyword>kate:</Keyword><Comment> </Comment><Variable>indent-width</Variable><Comment> </Comment><Number>2</Number><Variable>;</Variable><br/>