Skip to content

Commit

Permalink
Move the content editable test into ContentEditableTest
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 17, 2017
1 parent e377b92 commit 209cb2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions java/client/test/org/openqa/selenium/ContentEditableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,13 @@ public void testShouldAppendToTinyMCE() {
assertThat(editable.getText(), equalTo("Initial content and cheese"));
}

@Test
@NotYetImplemented
public void appendsTextToEndOfContentEditableWithMultipleTextNodes() {
driver.get(appServer.whereIs("content-editable.html"));
WebElement input = driver.findElement(By.id("editable"));
input.sendKeys(", world!");
assertEquals("Why hello, world!", input.getText());
}

}
9 changes: 0 additions & 9 deletions java/client/test/org/openqa/selenium/TypingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -670,15 +670,6 @@ public void canClearNumberInputAfterTypingInvalidInput() {
assertEquals("3", input.getAttribute("value"));
}

@Test
@NotYetImplemented
public void appendsTextToEndOfContentEditableWithMultipleTextNodes() {
driver.get(appServer.whereIs("content-editable.html"));
WebElement input = driver.findElement(By.id("editable"));
input.sendKeys(", world!");
assertEquals("Why hello, world!", input.getText());
}

private static String getValueText(WebElement el) {
// Standardize on \n and strip any trailing whitespace.
return el.getAttribute("value").replace("\r\n", "\n").trim();
Expand Down

0 comments on commit 209cb2b

Please sign in to comment.