Changeset 1678


Ignore:
Timestamp:
03/04/08 13:48:04 (7 years ago)
Author:
mosipov
Message:

corrected tests and javadoc

Location:
FCKeditor.Java/branches/2.4/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/tool/XHtmlTagTool.java

    r1673 r1678  
    3838 * <li>Attributes are not ordered.</li>
    3939 * <li>If your tag shouldn't have a value but the tag has to close with '&lt;/[tagname]&gt;', set
    40  * the value to an empty string.</li>
     40 * the value to {@link XHtmlTagTool#SPACE}.</li>
    4141 * </ul>
    4242 *
     
    5151        private Map<String, String> attributes = new HashMap<String, String>();
    5252
    53         /** Value of the tag. If value='' tag will be close similarly value is set. */
     53        /** Value of the tag. */
    5454        private String value = null;
    5555       
  • FCKeditor.Java/branches/2.4/src/test/java/net/fckeditor/tool/XHtmlTagToolTest.java

    r1545 r1678  
    3535        public void testClosingTag01() throws Exception {
    3636            XHtmlTagTool tag = new XHtmlTagTool("test");
    37             assertEquals("<test/>", tag.toString());
     37            assertEquals("<test />", tag.toString());
    3838    }
    3939       
     
    4141        public void testClosingTag02() throws Exception {
    4242            XHtmlTagTool tag = new XHtmlTagTool("test", "");
    43             assertEquals("<test></test>", tag.toString());
     43            assertEquals("<test />", tag.toString());
    4444    }
    4545
     
    4949            assertEquals("<test>val</test>", tag.toString());
    5050    }
     51       
     52        @Test
     53        public void testClosingTag04() throws Exception {
     54            XHtmlTagTool tag = new XHtmlTagTool("test", XHtmlTagTool.SPACE);
     55            assertEquals("<test> </test>", tag.toString());
     56    }
    5157}
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy