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

Unified Diff: javatests/org/chromium/distiller/TestUtil.java

Issue 1190343004: Process ordered list items as a single WebText (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: Created 5 years, 6 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/TestUtil.java
diff --git a/javatests/org/chromium/distiller/TestUtil.java b/javatests/org/chromium/distiller/TestUtil.java
index 8092aff6af5043960e74a122438b3a6aabcad5fb..388f22315933883f964cf1bcc4a5e257b6e8ba06 100644
--- a/javatests/org/chromium/distiller/TestUtil.java
+++ b/javatests/org/chromium/distiller/TestUtil.java
@@ -120,6 +120,12 @@ public class TestUtil {
return s;
}
+ public static Element createListItem(String value) {
+ Element s = Document.get().createElement("LI");
+ s.setInnerHTML(value);
+ return s;
+ }
+
private static void createDivTreeImpl(Element e, int depth, List<Element> divs) {
if (depth > 2) return;
for (int i = 0; i < 2; i++) {

Powered by Google App Engine
This is Rietveld 408576698