OLD | NEW |
(Empty) | |
| 1 package org.chromium.distiller.webdocument; |
| 2 |
| 3 import org.chromium.distiller.DomDistillerJsTestCase; |
| 4 |
| 5 public class PlaceHolderTest extends DomDistillerJsTestCase { |
| 6 |
| 7 public void testOLGenerateOutput() { |
| 8 PlaceHolder olStartPlaceHolder = new PlaceHolder("OL", PlaceHolder.TagTy
pe.START); |
| 9 PlaceHolder olEndPlaceHolder = new PlaceHolder("OL", PlaceHolder.TagType
.END); |
| 10 String startResult = olStartPlaceHolder.generateOutput(false); |
| 11 String endResult = olEndPlaceHolder.generateOutput(false); |
| 12 assertEquals(startResult, "<ol>"); |
| 13 assertEquals(endResult, "</ol>"); |
| 14 } |
| 15 |
| 16 public void testULGenerateOutput() { |
| 17 PlaceHolder olStartPlaceHolder = new PlaceHolder("UL", PlaceHolder.TagTy
pe.START); |
| 18 PlaceHolder olEndPlaceHolder = new PlaceHolder("UL", PlaceHolder.TagType
.END); |
| 19 String startResult = olStartPlaceHolder.generateOutput(false); |
| 20 String endResult = olEndPlaceHolder.generateOutput(false); |
| 21 assertEquals(startResult, "<ul>"); |
| 22 assertEquals(endResult, "</ul>"); |
| 23 } |
| 24 |
| 25 public void testLIGenerateOutput() { |
| 26 PlaceHolder olStartPlaceHolder = new PlaceHolder("LI", PlaceHolder.TagTy
pe.START); |
| 27 PlaceHolder olEndPlaceHolder = new PlaceHolder("LI", PlaceHolder.TagType
.END); |
| 28 String startResult = olStartPlaceHolder.generateOutput(false); |
| 29 String endResult = olEndPlaceHolder.generateOutput(false); |
| 30 assertEquals(startResult, "<li>"); |
| 31 assertEquals(endResult, "</li>"); |
| 32 } |
| 33 } |
OLD | NEW |