Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
57,500 | void () { doTest("children"); } | testChildrenInsideGridPaneRoot |
57,501 | void () { doTest("Insets"); } | testClassInsideObjectProperty |
57,502 | void () { doTest("top"); } | testPrimitiveProperties |
57,503 | void () { configureAndComplete(); assertDoesntContain(myFixture.getLookupElementStrings(), "geomBoundsInvalid"); } | testPrimitiveSubtags |
57,504 | void () { configureAndComplete(); assertContainsElements(myFixture.getLookupElementStrings(), "image", "Image"); } | testDefaultPropertyWrappedField |
57,505 | void () { configureAndComplete(); assertContainsElements(myFixture.getLookupElementStrings(), "Infinity", "-Infinity", "NaN", "-NaN"); } | testInfinity |
57,506 | void () { configureAndComplete(); assertDoesntContain(myFixture.getLookupElementStrings(), "Infinity"); } | testNoInfinity |
57,507 | void () { configureAndComplete(); assertContainsElements(myFixture.getLookupElementStrings(), "true", "false"); } | testBooleanValues |
57,508 | void () { configureAndComplete(); assertContainsElements(myFixture.getLookupElementStrings(), "true", "false"); } | testBooleanValuesNonStatic |
57,509 | void () { configureAndComplete(); assertContainsElements(myFixture.getLookupElementStrings(), "disable"); } | testPropertyNameWithoutField |
57,510 | void () { configureAndComplete(); assertContainsElements(myFixture.getLookupElementStrings(), "Color", "ImagePattern", "LinearGradient", "RadialGradient"); assertDoesntContain(myFixture.getLookupElementStrings(), "Paint"); } | testPropertyTagSubclass |
57,511 | void () { configureAndComplete(); assertDoesntContain(myFixture.getLookupElementStrings(), "null"); } | testNullFxId |
57,512 | void () { configureAndComplete(); final List<String> lookupElementStrings = myFixture.getLookupElementStrings(); assertNotNull(lookupElementStrings); final String buttonVariant = "Button"; assertContainsElements(lookupElementStrings, buttonVariant); assertTrue(lookupElementStrings.toString(), lookupElementStrings.lastI... | testSubclassesAndDefaultProperty |
57,513 | void () { myFixture.configureByFiles(getTestName(true) + ".fxml"); myItems = myFixture.completeBasic(); assertContainsElements(myFixture.getLookupElementStrings(), "fx:reference"); assertEquals(3, myItems.length); } | testDefaultPropertyIncludeOnce |
57,514 | void () { myFixture.configureByFiles(getTestName(true) + ".fxml"); myItems = myFixture.completeBasic(); assertEmpty(myItems); } | testAcceptableSourceOnly |
57,515 | void () { myFixture.addFileToProject("foo.fxml", """ <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.layout.*?> <VBox xmlns:fx="http://javafx.com/fxml"/>"""); doTest("layoutY"); } | testIncludedRootAttributes |
57,516 | void () { myFixture.addFileToProject("sample.fxml", "?import javafx.scene.layout.GridPane?>\n" + "<fx:root type=\"javafx.scene.layout.GridPane\" xmlns:fx=\"http://javafx.com/fxml\" />"); doTest("blendMode"); } | testIncludedRootRootAttributes |
57,517 | void () { doTest("ColumnConstraints"); } | testAllowPropertyTypeClass |
57,518 | void () { configureAndComplete(getTestName(false) + ".java", getTestName(false) + "Super.java"); assertSameElements(myFixture.getLookupElementStrings(), "onMyKeyTyped", "onSuperKeyTyped"); } | testEventHandlerMethod |
57,519 | void () { configureAndComplete(getTestName(false) + ".java", getTestName(false) + "Super.java"); assertSameElements(myFixture.getLookupElementStrings(), "onMyKeyTyped", "onSuperKeyTyped"); } | testEventHandlerMethodTypeParam |
57,520 | void () { configureAndComplete(); assertDoesntContain(myFixture.getLookupElementStrings(), "T", "Object", "java.lang.Object"); } | testRawCollectionItem |
57,521 | void () { configureAndComplete("FxIdExactOptionsController.java", "FxIdExactOptionsModel.java"); assertSameElements(myFixture.getLookupElementStrings(), "parentPrivateLabel", "parentPublicLabel", "privateLabel", "publicLabel", "parentControl", "control", "grandLabel"); } | testFxIdExactOptionsLabel |
57,522 | void () { configureAndComplete("FxIdExactOptionsController.java", "FxIdExactOptionsModel.java"); assertSameElements(myFixture.getLookupElementStrings(), "parentModel", "model"); } | testFxIdExactOptionsDefine |
57,523 | void () { configureAndComplete("FxIdGuessedOptionsController.java"); assertSameElements(myFixture.getLookupElementStrings(), "pane", "box", "model"); } | testFxIdGuessedOptionsRoot |
57,524 | void () { configureAndComplete("FxIdGuessedOptionsController.java"); assertSameElements(myFixture.getLookupElementStrings(), "pane", "node", "box", "model"); } | testFxIdGuessedOptionsNode |
57,525 | void () { configureAndComplete("FxIdGuessedOptionsController.java"); assertSameElements(myFixture.getLookupElementStrings(), "pane", "node", "box", "model", "text", "target"); } | testFxIdGuessedOptionsDefine |
57,526 | void () { configureAndComplete("FxIdGuessedOptionsController.java"); assertSameElements(myFixture.getLookupElementStrings(),"pane", "node", "box", "model", "text", "target"); } | testFxIdGuessedOptionsNested |
57,527 | void () { configureAndComplete("InheritedConstantData.java", "InheritedConstantSuperData.java"); assertSameElements(myFixture.getLookupElementStrings(), "MY_TEXT", "SUPER_TEXT"); } | testInheritedConstant |
57,528 | void () { myFixture.addFileToProject("mystyle.css", ".myStyle {}"); myFixture.addFileToProject("very/deeply/located/small.css", ".small {}"); doTest(); } | testMultipleStylesheetsAttribute |
57,529 | void () { myFixture.addFileToProject("mystyle.css", ".myStyle {}"); myFixture.addFileToProject("very/deeply/located/small.css", ".small {}"); doTest(); } | testMultipleStylesheetsTag |
57,530 | void (final String... extraFiles) { final String fxmlFileName = getTestName(true) + ".fxml"; if (extraFiles.length != 0) { final List<String> files = new ArrayList<>(); files.add(fxmlFileName); Collections.addAll(files, extraFiles); myFixture.configureByFiles(ArrayUtilRt.toStringArray(files)); } else { myFixture.config... | configureAndComplete |
57,531 | void () { myFixture.addFileToProject("my.fxml", ""); myFixture.addFileToProject("my.png", ""); myFixture.addFileToProject("sample.css", ".root{}"); configureByFile(getTestName(true) + ".fxml"); assertEquals(1, myItems.length); LookupElement selectionElement = null; for (LookupElement item : myItems) { if (item.getLooku... | testOnlyCssAsStylesheets |
57,532 | void () { configureByFile(getTestName(true) + ".fxml"); assertTrue(myItems.length > 0); LookupElement selectionElement = null; for (LookupElement item : myItems) { if (item.getLookupString().equals("backgroundFills")) { selectionElement = item; break; } } if (selectionElement != null) { fail("Read only attribute was su... | testReadOnly |
57,533 | void () { myFixture.addFileToProject("messages.properties", """ double.key=123.456 string.key=Some text """); configureAndComplete(); assertSameElements(myFixture.getLookupElementStrings(), "double.key", "string.key"); } | testResourceProperty |
57,534 | void () { myFixture.addFileToProject("messages1.properties", "double.key=123.456\n"); myFixture.addFileToProject("messages2.properties", "string.key=Some text\n"); configureAndComplete(); assertSameElements(myFixture.getLookupElementStrings(), "double.key", "string.key"); } | testResourcePropertyManyFiles |
57,535 | void () { doTest(null); } | doTest |
57,536 | void (final String selection) { doTest(selection, null); } | doTest |
57,537 | void (final String selection, String additionalPath) { final String mainFxml = getTestName(true) + ".fxml"; if (additionalPath != null) { myFixture.configureByFiles(mainFxml, additionalPath); complete(); } else { configureByFile(mainFxml); } assertTrue(myItems.length > 0); LookupElement selectionElement = null; for (Lo... | doTest |
57,538 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/completion/"; } | getTestDataPath |
57,539 | void () { super.setUpModule(); AbstractJavaFXTestCase.addJavaFxJarAsLibrary(getModule()); } | setUpModule |
57,540 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/importing/"; } | getTestDataPath |
57,541 | void () { doTest(); } | testImportClasses |
57,542 | void () { doTest(); } | testImportSkinPackage |
57,543 | void () { doTest(); } | testImportCssPackage |
57,544 | void () { myFixture.configureByFile(getTestName(false) + ".java"); MigrationMap[] maps = new MigrationMapSet().getMaps(); MigrationMap migrationMap = ContainerUtil.find(maps, m -> "JavaFX (8 -> 9)".equals(m.getName())); assertNotNull(migrationMap); new MigrationProcessor(getProject(), migrationMap).run(); FileDocumentM... | doTest |
57,545 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/migration/"; } | getTestDataPath |
57,546 | void () { myFixture.enableInspections(new JavaFxEventHandlerInspection()); } | enableInspections |
57,547 | void () { doHighlightingTest(); } | testHighlightExact |
57,548 | void () { final JavaFxEventHandlerInspection inspection = new JavaFxEventHandlerInspection(); inspection.myDetectNonVoidReturnType = true; myFixture.enableInspections(inspection); doHighlightingTest(); } | testHighlightNonVoid |
57,549 | void () { doHighlightingTest(); } | testHighlightAmbiguous |
57,550 | void () { doHighlightingTest(); } | testHighlightGeneric |
57,551 | void () { doHighlightingTest(); } | testHighlightRaw |
57,552 | void () { doHighlightingTest(); } | testHighlightHalfRaw |
57,553 | void () { doHighlightingTest(); } | testHighlightSpecific |
57,554 | void () { doHighlightingTest(); } | testHighlightSuper |
57,555 | void () { doHighlightingTest(); } | testHighlightWildcard |
57,556 | void () { doQuickfixTest("Create method 'onSort'"); } | testQuickfixRaw |
57,557 | void () { doQuickfixTest("Create method 'onSort'"); } | testQuickfixHalfRaw |
57,558 | void () { doQuickfixTest("Create method 'onSort'"); } | testQuickfixSpecific |
57,559 | void () { doQuickfixTest("Create method 'onSort'"); } | testQuickfixNoField |
57,560 | void () { doQuickfixTest("Change field 'table' type to 'TableView<Map<String, Double>>'"); } | testQuickfixFieldType |
57,561 | void () { final JavaCodeStyleSettings settings = JavaCodeStyleSettings.getInstance(getProject()); settings.INSERT_INNER_CLASS_IMPORTS = true; doQuickfixTest("Create method 'onColumnEditStart'"); } | testQuickfixNoFieldNested |
57,562 | void () { doQuickfixTest("Create method 'click'"); } | testQuickfixSuper |
57,563 | void () { myFixture.configureByFiles(getTestName(true) + ".fxml", getTestName(false) + ".java"); myFixture.checkHighlighting(); } | doHighlightingTest |
57,564 | void (final String actionName) { String path = getTestName(true) + ".fxml"; myFixture.configureByFiles(path, getTestName(false) + ".java"); IntentionAction intention = myFixture.findSingleIntention(actionName); assertNotNull(intention); myFixture.launchAction(intention); myFixture.checkResultByFile(getTestName(false) +... | doQuickfixTest |
57,565 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/inspections/eventHandler/"; } | getTestDataPath |
57,566 | void () { myFixture.enableInspections(new JavaFxUnusedImportsInspection()); } | enableInspections |
57,567 | void () { myFixture.configureByFile(getTestName(true) + ".fxml"); myFixture.checkHighlighting(); } | testUnusedUnrelatedImports |
57,568 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/inspections/unusedImport/"; } | getTestDataPath |
57,569 | void () { doTest(); } | testCollapseOnDemand |
57,570 | void () { doTest(); } | testRemoveUnused |
57,571 | void () { doTest(); } | testDblImports |
57,572 | void () { myFixture.addClass(""" import javafx.scene.layout.GridPane; public class MyGridPane extends GridPane {} """); doTest(); } | testStaticPropertiesAttrAndCustomComponents |
57,573 | void () { myFixture.addClass(""" import javafx.scene.layout.GridPane; public class MyGridPane extends GridPane {} """); doTest(); } | testStaticPropertiesTagAndCustomComponents |
57,574 | void () { myFixture.configureByFile(getTestName(true) + ".fxml"); new OptimizeImportsProcessor(getProject(), myFixture.getFile()).run(); myFixture.checkResultByFile(getTestName(true) + "_after.fxml"); } | doTest |
57,575 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/optimizeImports/"; } | getTestDataPath |
57,576 | void () { super.setUpModule(); AbstractJavaFXTestCase.addJavaFxJarAsLibrary(getModule()); } | setUpModule |
57,577 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/intentions/collapseToAttr/"; } | getTestDataPath |
57,578 | void () { myFixture.enableInspections(new JavaFxColorRgbInspection()); } | enableInspections |
57,579 | void () { doTestHighlighting(); } | testAttributeHighlighting |
57,580 | void () { doTestHighlighting(); } | testTagHighlighting |
57,581 | void () { doTestHighlighting(); } | testFxReference |
57,582 | void () { myFixture.configureByFiles(getTestName(true) + ".fxml"); myFixture.checkHighlighting(); } | doTestHighlighting |
57,583 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/inspections/colorRgb/"; } | getTestDataPath |
57,584 | void () { ModuleRootModificationUtil.updateModel(getModule(), model -> AbstractJavaFXTestCase.addJavaFxJarAsLibrary(model)); final EditorNotificationPanel panel = configureBySdkAndText(IdeaTestUtil.getMockJdk18(), false, "sample.fxml", SAMPLE_FXML); assertNull(panel); } | testJavaFxAsLibrary |
57,585 | void () { final EditorNotificationPanel panel = configureBySdkAndText(IdeaTestUtil.getMockJdk17(), false, "sample.fxml", SAMPLE_FXML); assertSdkSetupPanelShown(panel, "Setup SDK"); } | testNoJavaFx |
57,586 | void () { myFixture.enableInspections(new JavaFxUnresolvedFxIdReferenceInspection()); } | enableInspections |
57,587 | void () { doTest("Controller", VisibilityUtil.ESCALATE_VISIBILITY); } | testUnknownRef |
57,588 | void () { myFixture.configureByFiles(getTestName(true) + ".fxml"); final List<IntentionAction> intentionActions = myFixture.filterAvailableIntentions(getHint("unknown")); assertEmpty(intentionActions); } | testRootType |
57,589 | void () { myFixture.addFileToProject("btn.fxml", """ <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.*?> <Button/>"""); doTest("MyController", VisibilityUtil.ESCALATE_VISIBILITY); } | testIncludeBtnWithController |
57,590 | void () { myFixture.addClass(""" import javafx.scene.control.RadioButton; public class SuperController { public RadioButton option1; } """); myFixture.addClass("public class Controller extends SuperController {}"); final String testFxml = getTestName(true) + ".fxml"; myFixture.configureByFile(testFxml); myFixture.testH... | testFieldsFromControllerSuper |
57,591 | void (final String controllerName, final String defaultVisibility) { JavaCodeStyleSettings settings = JavaCodeStyleSettings.getInstance(getProject()); settings.VISIBILITY = defaultVisibility; doTest(controllerName); } | doTest |
57,592 | void (final String controllerName) { myFixture.configureByFiles(getTestName(true) + ".fxml", controllerName + ".java"); final IntentionAction singleIntention = myFixture.findSingleIntention(getHint("unknown")); assertNotNull(singleIntention); myFixture.launchAction(singleIntention); myFixture.checkResultByFile(controll... | doTest |
57,593 | String (String tagName) { return "Create field '" + tagName + "'"; } | getHint |
57,594 | String () { return PluginPathManager.getPluginHomePath("javaFX") + "/testData/inspections/unresolvedFxId/"; } | getTestDataPath |
57,595 | void () { doTest(); } | testReferencedTag |
57,596 | void () { doTest(); } | testInvalidInteger |
57,597 | void () { doTest(); } | testInvalidDouble |
57,598 | void () { doTest(); } | testRootTagSubtagsCoercing |
57,599 | void () { doTest(); } | testFactoryCoercing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.