Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: javatests/org/chromium/distiller/webdocument/PlaceHolderTest.java

Issue 1230583006: Fix for keeping lists structure (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: Small code refactor for more appropriate names. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698