Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8116289

The JavaFX CSS style "-fx-columns" is absent in the list of available styles for PasswordField/TextFields controls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx

      The JavaFX CSS style "-fx-columns" is absent in the list of available styles for PasswordField/TextFields controls. So, tests are listed below failed by the reason:
      openPage: page is null, probably not found.
      java.lang.AssertionError:
      at org.junit.Assert.fail(Assert.java:91)
      at org.junit.Assert.assertTrue(Assert.java:43)
      at org.junit.Assert.assertNotNull(Assert.java:524)
      at org.junit.Assert.assertNotNull(Assert.java:535)
      at test.javaclient.shared.TestBase.testExecuter(TestBase.java:149)
      at test.javaclient.shared.TestBase.testCommon(TestBase.java:121)
      at test.javaclient.shared.TestBase.testCommon(TestBase.java:112)
      at test.css.controls.functional.PasswordBoxCssTest.PasswordBoxes_COLUMNS(PasswordBoxCssTest.java:57)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
      at client.test.runner.JUnitTestRunner.runUI(JUnitTestRunner.java:62)
      at client.test.runner.AbstractTestRunner$2.run(AbstractTestRunner.java:80)
      at java.lang.Thread.run(Thread.java:722)

      It means either the style "-fx-columns" should be returned in the PasswordField/TextFields controls or these tests should be removed from FXCss test suite.
      This issue is related on http://javafx-jira.kenai.com/browse/RT-16689

      To check the style run:
      package passwordboxesapp;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.PasswordField;
      import javafx.scene.layout.StackPane;
      import javafx.stage.Stage;

      /**
       *
       * @author Pavel Zernov
       */
      public class PasswordBoxesApp extends Application {

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              launch(args);
          }
          
          @Override
          public void start(Stage primaryStage) {
              PasswordField pswd = new PasswordField();
              pswd.setText("password");
              pswd.setFocusTraversable(false);
              pswd.setStyle("-fx-columns: 2;");
                             
              StackPane root = new StackPane();
              root.getChildren().add(pswd);
              primaryStage.setScene(new Scene(root, 200, 50));
              primaryStage.show();
          }
      }

      Affected tests:
      FXCssAutomated/test/css/controls/functional/PasswordBoxCssTest/PasswordBoxes_COLUMNS
      FXCssAutomated/test/css/controls/functional/TextBoxCssTest/TextBoxes_COLUMNS

            dgrieve David Grieve
            pzernov Pavel Zernov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: