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

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: canBeNested move out of the switch. 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 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..93de21376b77f09b926bb09a34a474cc5f01b744 100644
--- a/javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java
+++ b/javatests/org/chromium/distiller/webdocument/TestWebDocumentBuilder.java
@@ -56,6 +56,18 @@ public class TestWebDocumentBuilder {
return wi;
}
+ public WebTag addTagStart() {
+ WebTag webTag = new WebTag("OL", WebTag.TagType.START);
+ document.addTag(webTag);
+ return webTag;
+ }
+
+ public WebTag addTagEnd() {
+ WebTag webTag = new WebTag("OL", WebTag.TagType.END);
+ document.addTag(webTag);
+ return webTag;
+ }
+
public WebDocument build() {
return document;
}

Powered by Google App Engine
This is Rietveld 408576698