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

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

Issue 1411603004: Discard hidden articles when using fast path (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: nit fixed Created 4 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/webdocument/DomConverterTest.java
diff --git a/javatests/org/chromium/distiller/webdocument/DomConverterTest.java b/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
index 6d813cc87734f5d0e3b622a711a2c9fb72869e42..1961c586628f480b7d16f3024919bbc7091fec6d 100644
--- a/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
+++ b/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
@@ -134,6 +134,7 @@ public class DomConverterTest extends DomDistillerJsTestCase {
public void testElementOrder() {
Element container = Document.get().createDivElement();
container.setInnerHTML("Text content <img src=\"http://example.com/1.jpg\"> more content");
+ mBody.appendChild(container);
WebDocumentBuilder builder = new WebDocumentBuilder();
DomConverter converter = new DomConverter(builder);
@@ -156,6 +157,7 @@ public class DomConverterTest extends DomDistillerJsTestCase {
public void testList() throws Throwable {
Element container = Document.get().createDivElement();
container.setInnerHTML("<ol><li>some text1</li><li>some text2</li></ol>");
+ mBody.appendChild(container);
WebDocumentBuilder builder = new WebDocumentBuilder();
DomConverter converter = new DomConverter(builder);
« java/org/chromium/distiller/DomUtil.java ('K') | « javatests/org/chromium/distiller/TestUtil.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698