From 209cb2bbc1b5cc2927db80333ae3d235558ee551 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Thu, 17 Aug 2017 13:20:49 +0100 Subject: [PATCH] Move the content editable test into ContentEditableTest --- .../test/org/openqa/selenium/ContentEditableTest.java | 9 +++++++++ java/client/test/org/openqa/selenium/TypingTest.java | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java/client/test/org/openqa/selenium/ContentEditableTest.java b/java/client/test/org/openqa/selenium/ContentEditableTest.java index e25717d41215c..6fb3053fa75f2 100644 --- a/java/client/test/org/openqa/selenium/ContentEditableTest.java +++ b/java/client/test/org/openqa/selenium/ContentEditableTest.java @@ -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()); + } + } diff --git a/java/client/test/org/openqa/selenium/TypingTest.java b/java/client/test/org/openqa/selenium/TypingTest.java index 513263fd3bfe7..c02c454615f3a 100644 --- a/java/client/test/org/openqa/selenium/TypingTest.java +++ b/java/client/test/org/openqa/selenium/TypingTest.java @@ -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();