Skip to content

Commit

Permalink
Adds new test case for issue SeleniumHQ#6072
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-savchuk committed Sep 5, 2013
1 parent 9655d18 commit 62c7bff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/src/web/simpleTest.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,7 @@ <h1>Heading</h1>
<span id="simpleJsonText">{a="b", c=1, d=true}</span>
<span id="complexJsonText">{a="\\b\\\"'\'"}</span>

<span id="trimmedSpace">            ​‌‍  ⁠ test            ​‌‍  ⁠ </span>

</body>
</html>
9 changes: 9 additions & 0 deletions java/client/test/org/openqa/selenium/TextHandlingTest.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -419,4 +419,13 @@ public void testShouldNotReturnLtrMarks() {
// That's the reason for the previous assert.
assertEquals(expected, element.getText());
}

@Test
public void testShouldTrimTextWithMultiByteWhitespaces() {
driver.get(pages.simpleTestPage);
String text = driver.findElement(By.id("trimmedSpace")).getText();

assertEquals("test", text);
}

}

0 comments on commit 62c7bff

Please sign in to comment.