Skip to content

Tests for Handlebars scanner #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions handlebars/basic.expected.raydebug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tag(<h1>)inline<inline_delimiter({{)attribute_name(Hello) attribute_name(Handlebars)error(!)inline_delimiter(}})>tag(</h1>)
1 change: 1 addition & 0 deletions handlebars/basic.in.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>{{Hello Handlebars!}}</h1>
11 changes: 11 additions & 0 deletions handlebars/ember_intro.expected.raydebug
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
comment({{! Getting Started Example
(from emberjs.com\)}})

tag(<h1>)plain(People)tag(</h1>)
tag(<ul>)
inline<inline_delimiter({{#)attribute_name(each) attribute_name(peopleController)inline_delimiter(}})>
tag(<li>)plain(Hello, )tag(<b>)inline<inline_delimiter({{)attribute_name(fullName)inline_delimiter(}})>tag(</b>)plain(!)tag(</li>)
inline<inline_delimiter({{/)attribute_name(each)inline_delimiter(}})>
tag(</ul>)

tag(<p>)plain(Learn more at )tag(<a) attribute_name(href)operator(=)string<delimiter(")>inline<inline_delimiter({{{)attribute_name(url)inline_delimiter(}}})>string<delimiter(")>tag(>)plain(emberjs.com)tag(</a>)tag(</p>)
11 changes: 11 additions & 0 deletions handlebars/ember_intro.in.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{! Getting Started Example
(from emberjs.com)}}

<h1>People</h1>
<ul>
{{#each peopleController}}
<li>Hello, <b>{{fullName}}</b>!</li>
{{/each}}
</ul>

<p>Learn more at <a href="{{{url}}}">emberjs.com</a></p>
10 changes: 10 additions & 0 deletions handlebars/ember_view.expected.raydebug
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
tag(<h1>)plain(Joe's Lamprey Shack)tag(</h1>)
inline<inline_delimiter({{)attribute_name(controller.restaurantHours)inline_delimiter(}})>
inline<inline_delimiter({{#)attribute_name(view) attribute_name(App.FDAContactForm)inline_delimiter(}})>
plain(If you are experiencing discomfort from eating at Joe's Lamprey Shack,
please use the form below to submit a complaint to the FDA.
)inline<inline_delimiter({{#)attribute_name(if) attribute_name(controller.allowComplaints)inline_delimiter(}})>
inline<inline_delimiter({{)attribute_name(view) attribute_name(Ember.TextArea) attribute_name(valueBinding)operator(=)string<delimiter(")content(controller.complaint)delimiter(")>inline_delimiter(}})>
tag(<button) inline<inline_delimiter({{)attribute_name(action) attribute_name(submitComplaint)inline_delimiter(}})>tag(>)plain(Submit)tag(</button>)
inline<inline_delimiter({{/)attribute_name(if)inline_delimiter(}})>
inline<inline_delimiter({{/)attribute_name(view)inline_delimiter(}})>
10 changes: 10 additions & 0 deletions handlebars/ember_view.in.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<h1>Joe's Lamprey Shack</h1>
{{controller.restaurantHours}}
{{#view App.FDAContactForm}}
If you are experiencing discomfort from eating at Joe's Lamprey Shack,
please use the form below to submit a complaint to the FDA.
{{#if controller.allowComplaints}}
{{view Ember.TextArea valueBinding="controller.complaint"}}
<button {{action submitComplaint}}>Submit</button>
{{/if}}
{{/view}}
2 changes: 2 additions & 0 deletions handlebars/suite.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Handlebars < CodeRay::TestCase
end