public void suppressedForIEfail_testNonXmlEntities() { // This fragment includes both translated and non-translated strings ParagraphElement mainParagraph = widgetUi.main; final String innerHTML = mainParagraph.getInnerHTML().trim(); assertTrue(innerHTML.contains(" \u261E \u2022 XHTML \u2022 \u261C")); assertTrue(innerHTML.startsWith("\u261E <span>")); assertTrue(innerHTML.endsWith("</span> \u261C")); }
public void suppressedForSafari3Fail_testDomTextNoMessageWithFunnyChars() { ParagraphElement p = widgetUi.funnyCharsParagraph; // WebKit does \n replace thing, so let's do it everywhere String t = StringCase.toLower(p.getInnerHTML().replace("\n", " ")); String expected = "Templates can be marked up for <b>localization</b>, which presents alls " + "kinds of exciting opportunities for bugs related to character escaping. " + "Consider these funny characters \\ \" \" ' ' & < > > { }, and " + "the various places they might make your life miserable, like this " + "untranslated paragraph."; expected = StringCase.toLower(expected); assertEquals(expected, t); }