Adding atom tests for handling text-transform property
});
}
+ 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);
<span id="zerowidth">This line has a bunch of ze&#8203;ro-width&lrm; characters&rlm; in it.</span>
+ <div>
+ <a id="capitalized" style="text-transform: capitalize">Hello, world! bla-bla-BLA</a><br/>
+ <a id="lowercased" style="text-transform: lowercase">Hello, world! bla-bla-BLA</a><br/>
+ <a id="uppercased" style="text-transform: uppercase">Hello, world! bla-bla-BLA</a><br/>
+ </div>
+
</body>
</html>
