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

Unified Diff: javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java

Issue 1230583006: Fix for keeping lists structure (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: Using a new approach to keep list structure. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java
diff --git a/javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java b/javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java
index 12589533ff574719b23d0bbfa23ad76607360dc4..8175364e00b7c7fc01ef51c3c9820708aa9fa0fa 100644
--- a/javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java
+++ b/javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java
@@ -56,6 +56,42 @@ public class TestWebDocumentBuilder {
return wi;
}
+ public OLStart addOLStart() {
+ OLStart olStart = new OLStart();
+ document.addEmbed(olStart);
+ return olStart;
+ }
+
+ public OLEnd addOLEnd() {
+ OLEnd olEnd = new OLEnd();
+ document.addEmbed(olEnd);
+ return olEnd;
+ }
+
+ public ULStart addULStart() {
+ ULStart ulStart = new ULStart();
+ document.addEmbed(ulStart);
+ return ulStart;
+ }
+
+ public ULEnd addULEnd() {
+ ULEnd ulEnd = new ULEnd();
+ document.addEmbed(ulEnd);
+ return ulEnd;
+ }
+
+ public LIStart addLIStart() {
+ LIStart liStart = new LIStart();
+ document.addEmbed(liStart);
+ return liStart;
+ }
+
+ public LIEnd addLIEnd() {
+ LIEnd liEnd = new LIEnd();
+ document.addEmbed(liEnd);
+ return liEnd;
+ }
+
public WebDocument build() {
return document;
}

Powered by Google App Engine
This is Rietveld 408576698