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

74 lines
7.9 KiB
HTML
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.
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>test.feature</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Cucumber Gherkin feature) - Theme (Breeze Light)"/>
</head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
<span style="color:#644a9b;font-weight:bold">Feature:</span><span style="color:#0057ae"> Lets test Cucumber feature syntax highlighting</span>
<span style="color:#607880"> These are just example features to see that syntax highlighting works.</span>
<span style="color:#607880"> These features are copied from Cucumbers documentation, and they are</span>
<span style="color:#607880"> licensed under MIT.</span>
<span style="color:#607880"> Source repository can be found at:</span>
<span style="color:#607880"> https://github.com/cucumber/docs.cucumber.io</span>
<span style="color:#607880"> </span><span style="color:#898887"># Comments are not considered to be part of a feature.</span>
<span style="color:#607880"> </span><span style="font-weight:bold">Rule</span><span style="color:#0057ae">: Users are notified about overdue tasks on first use of the day</span>
<span style="color:#0057ae"> </span><span style="font-weight:bold">Background</span><span style="color:#0057ae">:</span>
<span style="color:#0057ae"> </span><span style="color:#644a9b;font-weight:bold">Given</span> I have overdue tasks
<span style="font-weight:bold">Example</span><span style="color:#0057ae">: First use of the day</span>
<span style="color:#0057ae"> </span><span style="color:#607880">"""</span>
<span style="color:#898887"> Docstrings can also be used.</span>
<span style="color:#898887"> </span><span style="color:#607880">"""</span>
<span style="color:#0057ae"> </span><span style="color:#644a9b;font-weight:bold">Given</span> I last used the app yesterday
<span style="color:#644a9b;font-weight:bold">When</span> I use the app
<span style="color:#644a9b;font-weight:bold">Then</span> I am notified about overdue tasks
<span style="font-weight:bold">Example</span><span style="color:#0057ae">: Already used today</span>
<span style="color:#0057ae"> </span><span style="color:#644a9b;font-weight:bold">Given</span> I last used the app earlier today
<span style="color:#644a9b;font-weight:bold">When</span> I use the app
<span style="color:#644a9b;font-weight:bold">Then</span> I am not notified about overdue tasks
<span style="color:#bf0303;text-decoration:underline">Feature:</span><span style="color:#607880"> Multiple site support</span>
<span style="color:#607880"> Only blog owners can post to a blog, except administrators,</span>
<span style="color:#607880"> who can post to all blogs.</span>
<span style="color:#607880"> </span><span style="font-weight:bold">Background</span><span style="color:#0057ae">:</span>
<span style="color:#0057ae"> </span><span style="color:#644a9b;font-weight:bold">Given</span> a global administrator named <span style="color:#bf0303">"Greg"</span>
<span style="color:#644a9b;font-weight:bold">And</span> a blog named <span style="color:#bf0303">"Greg's anti-tax rants"</span>
* a customer named <span style="color:#bf0303">"Dr. Bill"</span>
<span style="color:#644a9b;font-weight:bold">And</span> a blog named <span style="color:#bf0303">"Expensive Therapy"</span> owned by <span style="color:#bf0303">"Dr. Bill"</span>
<span style="color:#ca60ca">@tagged_scenario</span>
<span style="font-weight:bold">Scenario</span><span style="color:#0057ae">: Dr. Bill posts to his own blog</span>
<span style="color:#0057ae"> </span><span style="color:#644a9b;font-weight:bold">Given</span> I am logged in as Dr. Bill
<span style="color:#644a9b;font-weight:bold">When</span> I try to post to <span style="color:#bf0303">"Expensive Therapy"</span>
<span style="color:#644a9b;font-weight:bold">Then</span> I should see <span style="color:#bf0303">"Your article was published."</span>
<span style="font-weight:bold">Scenario</span><span style="color:#0057ae">: Dr. Bill tries to post to somebody else's blog, and fails</span>
<span style="color:#0057ae"> </span><span style="color:#644a9b;font-weight:bold">Given</span> the following users exist:
<span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> name </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> email </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> twitter </span><span style="color:#644a9b;font-weight:bold">|</span>
<span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> Aslak </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> aslak@cucumber.io </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> @aslak_hellesoy </span><span style="color:#644a9b;font-weight:bold">|</span>
<span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> Julien </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> julien@cucumber.io </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> @jbpros </span><span style="color:#644a9b;font-weight:bold">|</span>
<span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> Matt </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> matt@cucumber.io </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> @mattwynne </span><span style="color:#644a9b;font-weight:bold">|</span>
<span style="color:#644a9b;font-weight:bold">When</span> I try to post to <span style="color:#bf0303">"Greg's anti-tax rants"</span>
<span style="color:#644a9b;font-weight:bold">Then</span> I should see <span style="color:#bf0303">"Hey! That's not your blog!"</span>
<span style="color:#bf0303;text-decoration:underline">Feature:</span><span style="color:#607880"> There can also be Scenario Outline</span>
<span style="color:#607880"> </span><span style="font-weight:bold">Scenario Outline:</span><span style="color:#0057ae"> eating</span>
<span style="color:#0057ae"> </span><span style="color:#644a9b;font-weight:bold">Given</span> there are <span style="color:#0057ae">&lt;start></span> cucumbers
<span style="color:#644a9b;font-weight:bold">When</span> I eat <span style="color:#0057ae">&lt;eat></span> cucumbers
<span style="color:#644a9b;font-weight:bold">Then</span> I should have <span style="color:#0057ae">&lt;left></span> cucumbers
Examples:
<span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> start </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> eat </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> left </span><span style="color:#644a9b;font-weight:bold">|</span>
<span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> 12 </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> 5 </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> 7 </span><span style="color:#644a9b;font-weight:bold">|</span>
<span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> 20 </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> 5 </span><span style="color:#644a9b;font-weight:bold">|</span><span style="color:#e31616"> 15 </span><span style="color:#644a9b;font-weight:bold">|</span>
<span style="color:#898887"># </span><span style="color:#ca60ca">kate:</span><span style="color:#898887"> </span><span style="color:#0095ff">indent-width</span><span style="color:#898887"> </span><span style="color:#b08000">2</span><span style="color:#0095ff">;</span>
</pre></body></html>