Examples of findProp()


Examples of limelight.java.JavaScene.findProp()

  }

  public void checkMessageHeight(PanelEvent event)
  {
    JavaScene scene = (JavaScene)event.getProp();
    JavaProp advice = scene.findProp("advice");
    final int lines = advice.getText().split("[\r|\r\n]").length;
    if(lines > 32)
      advice.getStyle().setVerticalScrollbar("on");
  }
}
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

  {
    startAlert("A friendly message.");
    FramedStage alertStage = waitForStage("Alert");
    JavaScene scene = (JavaScene) alertStage.getScene().getProxy();

    assertEquals("Limelight Alert", scene.findProp("title").getText());
    assertEquals("A friendly message.", scene.findProp("advice").getText());
  }

  @Test
  public void alertSceneClosesWhenClickingOk() throws Exception
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

    startAlert("A friendly message.");
    FramedStage alertStage = waitForStage("Alert");
    JavaScene scene = (JavaScene) alertStage.getScene().getProxy();

    assertEquals("Limelight Alert", scene.findProp("title").getText());
    assertEquals("A friendly message.", scene.findProp("advice").getText());
  }

  @Test
  public void alertSceneClosesWhenClickingOk() throws Exception
  {
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

  {
    startAlert("A friendly message.");
    FramedStage alertStage = waitForStage("Alert");
    JavaScene scene = (JavaScene) alertStage.getScene().getProxy();

    final JavaProp okButton = scene.findProp("okButton");
    assertNotNull(okButton);

    Mouse.click(okButton);

    waitForDialogResponse();
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

    startAlert("A friendly message.");
    FramedStage alertStage = waitForStage("Alert");
    Thread.sleep(100);
    JavaScene scene = (JavaScene) alertStage.getScene().getProxy();

    JavaProp advice = scene.findProp("advice");

    assertEquals(true, advice.getBounds().height < 100);
  }

  @Test
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

    startAlert(message);
    FramedStage alertStage = waitForStage("Alert");
    Thread.sleep(100);
    JavaScene scene = (JavaScene) alertStage.getScene().getProxy();

    JavaProp advice = scene.findProp("advice");

    assertEquals(500, advice.getBounds().height);
    assertEquals("on", advice.getStyle().getVerticalScrollbar());
  }
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

  {
    startProceedWithIncompatibleVersion();
    FramedStage stage = waitForStage("Incompatible Version");
    JavaScene scene = (JavaScene) stage.getScene().getProxy();

    assertEquals("Some Production", scene.findProp("productionNameLabel").getText());
    assertEquals("1.2.3", scene.findProp("requiredVersionLabel").getText());
    assertEquals(About.version.toString(), scene.findProp("currentVersionLabel").getText());
  }

  @Test
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

    startProceedWithIncompatibleVersion();
    FramedStage stage = waitForStage("Incompatible Version");
    JavaScene scene = (JavaScene) stage.getScene().getProxy();

    assertEquals("Some Production", scene.findProp("productionNameLabel").getText());
    assertEquals("1.2.3", scene.findProp("requiredVersionLabel").getText());
    assertEquals(About.version.toString(), scene.findProp("currentVersionLabel").getText());
  }

  @Test
  public void returnsTrueWhenClickingProceed() throws Exception
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

    FramedStage stage = waitForStage("Incompatible Version");
    JavaScene scene = (JavaScene) stage.getScene().getProxy();

    assertEquals("Some Production", scene.findProp("productionNameLabel").getText());
    assertEquals("1.2.3", scene.findProp("requiredVersionLabel").getText());
    assertEquals(About.version.toString(), scene.findProp("currentVersionLabel").getText());
  }

  @Test
  public void returnsTrueWhenClickingProceed() throws Exception
  {
View Full Code Here

Examples of limelight.java.JavaScene.findProp()

  {
    startProceedWithIncompatibleVersion();
    FramedStage stage = waitForStage("Incompatible Version");
    JavaScene scene = (JavaScene) stage.getScene().getProxy();

    Mouse.click(scene.findProp("proceedButton"));
    waitForDialogResponse();

    assertEquals(true, dialogResponse);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.