Author: scabanovich
Date: 2008-10-02 09:50:56 -0400 (Thu, 02 Oct 2008)
New Revision: 10627
Modified:
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java
Log:
JBIDE-1497.
Parser fixes.
Modified:
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java 2008-10-02
13:49:45 UTC (rev 10626)
+++
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/ELParserTest.java 2008-10-02
13:50:56 UTC (rev 10627)
@@ -116,10 +116,10 @@
public void testElLiteralExpressions() {
Tokenizer t = TokenizerFactory.createJbossTokenizer();
checkCorrectEL(t,"#{\"#{\"}");
- checkCorrectEL(t,"#{’#’}");
checkCorrectEL(t,"\\#{exprA}");
checkCorrectEL(t,"#{\"\\\"exprA\\\"\"}");
checkCorrectEL(t,"#{\"\\\"#\\\"\"}");
+ checkCorrectEL(t,"#{’#’}"); //Why this is correct?
}
public void testElReferencesObjectProperties() {
@@ -156,7 +156,7 @@
//2. Incorrect use of ')'
checkIncorrectEL(t, "#{a.b + -c.d + g)}", 16);
//2. Incorrect use of ')' in second EL instance
- checkIncorrectEL(t, "#{a.b + -c.d + g}#{hh.vv..m()}", 16);
+ checkIncorrectEL(t, "#{a.b + -c.d + g}#{hh.vv..m()}", 25);
}
private void checkIncorrectEL(Tokenizer t, String test, int expectedErrorPosition) {
Show replies by date