Package info.bliki.html.googlecode

Examples of info.bliki.html.googlecode.ToGoogleCode


    }

    @Test public void test8() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        conv.setInputHTML("<font size=\"1\">hello</font> <em>world</em>");
        String result = conv.toWiki(new ToGoogleCode(true, true));
        assertThat("hello _world_").isEqualTo(result);
    }
View Full Code Here


    }

    @Test public void test9() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        conv.setInputHTML("<h2>hello \n world\n</h2>");
        String result = conv.toWiki(new ToGoogleCode(true, true));
        assertThat("\n" + "== hello   world ==\n").isEqualTo(result);
    }
View Full Code Here

    }

    @Test public void test10() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        conv.setInputHTML("<b>hello&nbsp;<em>world</em></b>");
        String result = conv.toWiki(new ToGoogleCode());
        assertThat("*hello _world_*").isEqualTo(result);
    }
View Full Code Here

    }

    @Test public void test11() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        conv.setInputHTML("<h2> \n \n</h2>");
        String result = conv.toWiki(new ToGoogleCode(true, true));
        assertThat("").isEqualTo(result);
    }
View Full Code Here

    }

    @Test public void test12() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        conv.setInputHTML("<b> </b> <em> </em>");
        String result = conv.toWiki(new ToGoogleCode());
        assertThat("   ").isEqualTo(result);
    }
View Full Code Here

    }

    @Test public void test13() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        conv.setInputHTML("<div> </div>");
        String result = conv.toWiki(new ToGoogleCode());
        assertThat(" ").isEqualTo(result);
    }
View Full Code Here

    @Test public void test14() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        // invalid nested html test
        conv
                .setInputHTML("<h2>the <a href=\"http://good\">good</a></h2><h3>the <div>bad</div></h3><h2>and <b><i>the</i> ugly</b></h2>");
        String result = conv.toWiki(new ToGoogleCode());
        assertThat("\n" + "== the good ==\n" + "\n" + "=== the bad ===\n" + "\n" + "== and the ugly ==\n").isEqualTo(result);
    }
View Full Code Here

    @Test public void test15() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        // invalid nested html test
        conv.setInputHTML("The <a href=\"http://good\">good</a> the <div>bad</div> and <b><i>the</i> ugly</b>");
        String result = conv.toWiki(new ToGoogleCode());
        assertThat("The [good] the bad and *_the_ ugly*").isEqualTo(result);
    }
View Full Code Here

                "                    <td align=\"left\" valign=\"top\"></td>              <!----  empty cell -->\n" +
                "                    <td align=\"left\" valign=\"top\">false</td>\n" +
                "                    <td align=\"left\" valign=\"top\">String</td>\n" +
                "                    <td align=\"left\" valign=\"top\">Set the html accesskey attribute on rendered html element</td>\n" +
                "   </tr></table>");
        String result = conv.toWiki(new ToGoogleCode());
        assertThat("          \n" +
                "||accesskey||false|| ||false||String||Set the html accesskey attribute on rendered html element||\n" +
                "").isEqualTo(result);
    }
View Full Code Here

    @Test public void test17() {
        HTML2WikiConverter conv = new HTML2WikiConverter();
        conv.setInputHTML(" <table>\n<tr>\n" +
                "                    <td align=\"left\" valign=\"top\"></td>             \n" +
                "   </tr></table>");
        String result = conv.toWiki(new ToGoogleCode());
        assertThat("    \n" +
                "|| ||\n" +
                "").isEqualTo(result);
    }
View Full Code Here

TOP

Related Classes of info.bliki.html.googlecode.ToGoogleCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.