public void testTopLevelERB() throws Exception
{
String source = "<% content_for :stylesheets do %>\n" + "<%= stylesheet_link_tag 'rails' %>\n"
+ "<style></style>\n" + "<%= javascript_include_tag 'slidedeck/slidedeck.jquery.js' %>\n"
+ "<script></script>\n" + "<% end %>";
<BUG>fParseState.setEditState(source, source, 0, 0);
IParseNode result = fParser.parse(fParseState);</BUG>
IParseNode[] children = result.getChildren();
assertEquals(11, children.length);
assertEquals(IRubyConstants.CONTENT_TYPE_RUBY, children[0].getLanguage());

public void testTopLevelERB() throws Exception
{
String source = "<% content_for :stylesheets do %>\n" + "<%= stylesheet_link_tag 'rails' %>\n"
+ "<style></style>\n" + "<%= javascript_include_tag 'slidedeck/slidedeck.jquery.js' %>\n"
+ "<script></script>\n" + "<% end %>";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] children = result.getChildren();
assertEquals(11, children.length);
assertEquals(IRubyConstants.CONTENT_TYPE_RUBY, children[0].getLanguage());
