diff --git a/javascript/atoms/test/text_test.html b/javascript/atoms/test/text_test.html index 2f8c0d0b90185..2b8e2251bb772 100644 --- a/javascript/atoms/test/text_test.html +++ b/javascript/atoms/test/text_test.html @@ -255,6 +255,15 @@ }); } + function testGetVisibleTextShouldHandleTextTransformProperty() { + var text = getVisibleTextByElementId("capitalized"); + assertEquals("Hello, World! Bla-bla-BLA", text); + text = getVisibleTextByElementId("lowercased"); + assertEquals("hello, world! bla-bla-bla", text); + text = getVisibleTextByElementId("uppercased"); + assertEquals("HELLO, WORLD! BLA-BLA-BLA", text); + } + function getVisibleTextByElementId(id) { var e = bot.locators.findElement({id: id}); return bot.dom.getVisibleText(e); @@ -388,5 +397,11 @@ This line has a bunch of ze​ro-width‎ characters‏ in it. +
+ Hello, world! bla-bla-BLA
+ Hello, world! bla-bla-BLA
+ Hello, world! bla-bla-BLA
+
+