Author: akazakov
Date: 2010-05-26 04:18:33 -0400 (Wed, 26 May 2010)
New Revision: 22321
Added:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/markerTest.xhtml
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6352
Added:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/markerTest.xhtml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/markerTest.xhtml
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/markerTest.xhtml 2010-05-26
08:18:33 UTC (rev 22321)
@@ -0,0 +1,12 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+ template="layout/template.xhtml">
+<ui:define name="body">
+
+ #{testComponentForVars.testtt.items}
+
+</ui:define>
+</ui:composition>
\ No newline at end of file
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/markerTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2010-05-26
05:53:51 UTC (rev 22320)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2010-05-26
08:18:33 UTC (rev 22321)
@@ -775,6 +775,16 @@
JSFModelPlugin.getDefault().getPreferenceStore().setValue(JSFSeverityPreferences.UNKNOWN_EL_VARIABLE_NAME,
SeamPreferences.IGNORE);
}
+ // See
https://jira.jboss.org/browse/JBIDE-6352
+ public void testErrorMarkerForEL() throws CoreException{
+ refreshProject(project);
+
+ IFile xhtmlFile = project.getFile("WebContent/markerTest.xhtml");
+
+ IMarker[] markers = findMarkers(xhtmlFile, IMarker.PROBLEM, "\"testtt\"
cannot be resolved");
+ assertEquals("There should be an unresolved EL in markerTest.xhtml for
'testtt' segment.", 1, markers.length);
+ }
+
public static int getMarkersNumber(IResource resource) {
return getMarkersNumberByGroupName(resource,
SeamValidationErrorManager.MARKED_SEAM_PROJECT_MESSAGE_GROUP);
}