javafx: test for fx:define doesn't support attributes

This commit is contained in:
anna
2013-03-28 12:32:18 +01:00
parent 5528709981
commit 014605459f
2 changed files with 7 additions and 0 deletions
@@ -303,6 +303,10 @@ public class JavaFXHighlightingTest extends AbstractJavaFXTestCase {
doTest();
}
public void testAbsenceOfDefineAttributes() throws Exception {
doTest();
}
public void testIncludedForm() throws Exception {
myFixture.addFileToProject("sample.fxml", "<?import javafx.scene.layout.GridPane?>\n" +
"<fx:root type=\"javafx.scene.layout.GridPane\" xmlns:fx=\"http://javafx.com/fxml\"/>\n");
@@ -0,0 +1,3 @@
<fx:root type="javafx.scene.layout.GridPane" xmlns:fx="http://javafx.com/fxml">
<fx:define <error descr="Attribute source is not allowed here">source</error>=""/>
</fx:root>