Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (14 sloc) 0.446 kB
require "helper"
class DotAccessorTest < Johnson::NodeTestCase
def test_expression_statement
assert_sexp(
[[:dot_accessor, [:name, "bar"], [:name, "foo"]]],
@parser.parse('foo.bar;')
)
assert_sexp(
[[:dot_accessor, [:name, "bar"], [:name, "foo"]]],
@parser.parse('foo.bar')
)
assert_ecma('foo.bar;', @parser.parse('foo.bar;'))
end
end
Jump to Line
Something went wrong with that request. Please try again.