Java 类org.jfree.chart.imagemap.OverLIBToolTipTagFragmentGenerator 实例源码

项目:astor    文件:DynamicDriveToolTipTagFragmentGeneratorTests.java   
/**
 * Some checks for the generateURLFragment() method.
 */
public void testGenerateURLFragment() {
    OverLIBToolTipTagFragmentGenerator g
            = new OverLIBToolTipTagFragmentGenerator();
    assertEquals(" onMouseOver=\"return overlib('abc');\""
            + " onMouseOut=\"return nd();\"",
            g.generateToolTipFragment("abc"));
    assertEquals(" onMouseOver=\"return overlib("
            + "'It\\'s \\\"A\\\", 100.0');\" onMouseOut=\"return nd();\"",
            g.generateToolTipFragment("It\'s \"A\", 100.0"));
}
项目:astor    文件:OverLIBToolTipTagFragmentGeneratorTests.java   
/**
 * Some checks for the generateURLFragment() method.
 */
public void testGenerateURLFragment() {
    OverLIBToolTipTagFragmentGenerator g
            = new OverLIBToolTipTagFragmentGenerator();
    assertEquals(" onMouseOver=\"return overlib('abc');\""
            + " onMouseOut=\"return nd();\"",
            g.generateToolTipFragment("abc"));
    assertEquals(" onMouseOver=\"return overlib("
            + "'It\\'s \\\"A\\\", 100.0');\" onMouseOut=\"return nd();\"",
            g.generateToolTipFragment("It\'s \"A\", 100.0"));
}