Examples of LabelElement


Examples of com.vaadin.testbench.elements.LabelElement

        openTestURL();

        List<LabelElement> labels = $(LabelElement.class).all();
        assertTrue("unexpected amount of labels", labels.size() > 2);

        LabelElement label = labels.get(labels.size() - 1);
        String message = "Tests whether the testing server is run with assertions enabled.";
        assertEquals("unexpected text found", message, label.getText());
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

    @Test
    public void testExtended() {
        // Test that UIProvider parameter is more important than UI parameter
        driver.get(getTestUrl().replace("uiprovider", "uiprovider/test"));

        LabelElement label = $(LabelElement.class).first();
        String message = "Test for basic JavaScript component functionality.";
        assertEquals("unexpected text found", message, label.getText());
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

        ButtonElement button = $(ButtonElement.class).get(1);
        button.click();
    }

    private String getFirstLabelValue() {
        LabelElement label = $(LabelElement.class).get(1);
        return label.getText();
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

        LabelElement label = $(LabelElement.class).get(1);
        return label.getText();
    }

    private String getSecondLabelValue() {
        LabelElement label = $(LabelElement.class).get(2);
        return label.getText();
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

        js.executeScript("arguments[0].scrollTop = " + 30, actualElement);
    }

    private String getCurrentPageFirstItemIndex() throws InterruptedException {
        ButtonElement updateLabelButton = $(ButtonElement.class).get(4);
        LabelElement label = $(LabelElement.class).get(1);
        updateLabelButton.click();
        sleep(200);
        return label.getText();
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

        openTestURL();

        openDatePicker();
        select2ndOfSeptember();

        LabelElement dateValue = $(LabelElement.class).id("dateValue");
        assertThat(dateValue.getText(), is("09/02/2014 00:00:00"));
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

    @Test
    public void componentsShouldMoveRight() throws IOException {
        openTestURL();

        LabelElement bigCell = $(LabelElement.class).id("bigCell");
        LabelElement smallCell = $(LabelElement.class).id("smallCell");

        // Width is 1000px. Big cell should take up 2/3, small cell should take
        // up 1/3.
        assertEquals(667, bigCell.getSize().width);
        assertEquals(333, smallCell.getSize().width);

    }
View Full Code Here

Examples of org.crsh.text.ui.LabelElement

      long min = seconds / 60;
      String time = min + ":" + (seconds % 60);
      long cpu = cpus.get(thread);
      ThreadGroup group = thread.getThreadGroup();
      table.row(
          new LabelElement(thread.getId()),
          new LabelElement(thread.getName()),
          new LabelElement(group == null ? "" : group.getName()),
          new LabelElement(thread.getPriority()),
          new LabelElement(thread.getState()).style(c.fg()),
          new LabelElement(cpu),
          new LabelElement(time),
          new LabelElement(thread.isInterrupted()),
          new LabelElement(thread.isDaemon())
      );
    }

    //
    return table.renderer();
View Full Code Here

Examples of org.crsh.text.ui.LabelElement

      RowElement row = new RowElement();

       row.add(binding.name);

      if (binding.verbose) {
        row.add(new LabelElement(binding.type));
        if (header.getSize() == 1) {
          header.add("CLASS");
        }
      }
     
View Full Code Here

Examples of org.crsh.text.ui.LabelElement

            } else if (record.getLevel() == Level.INFO) {
              color = Color.green;
            } else {
              color = Color.blue;
            }
            return new LabelElement(line).style(color.fg()).renderer();
          }
        };
      }
    });
  }
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.