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

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

Issue 2729143003: Handle image lazy loading on Wikipedia (Closed)
Patch Set: fixup non-matching case Created 3 years, 9 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
« no previous file with comments | « java/org/chromium/distiller/extractors/embeds/ImageExtractor.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: javatests/org/chromium/distiller/ContentExtractorTest.java
diff --git a/javatests/org/chromium/distiller/ContentExtractorTest.java b/javatests/org/chromium/distiller/ContentExtractorTest.java
index c72e56c33b8006e6e58fa1b922046c75a3d7967a..654f6cb0755b9932d865a8e05f287db28ee11569 100644
--- a/javatests/org/chromium/distiller/ContentExtractorTest.java
+++ b/javatests/org/chromium/distiller/ContentExtractorTest.java
@@ -99,6 +99,8 @@ public class ContentExtractorTest extends DomDistillerJsTestCase {
"<source srcset=\"image100 100w, //example.org/image300 300w\">" +
"<img>" +
"</picture></figure>" +
+ "<span class=\"lazy-image-placeholder\" data-src=\"/image\" " +
+ "data-srcset=\"/image2x 2x\" data-width=\"20\" data-height=\"10\"></span>" +
"<img id=\"b\" style=\"align: left\" alt=\"b\" data-dummy=\"c\" data-src=\"image2\">" +
"<table role=\"grid\"><tbody><tr><td>" +
"<img id=\"c\" style=\"a\" alt=\"b\" src=\"/image\" srcset=\"https://example.com/image2x 2x, /image4x 4x,\">" +
@@ -115,6 +117,8 @@ public class ContentExtractorTest extends DomDistillerJsTestCase {
"<source srcset=\"http://example.com/path/image100 100w, http://example.org/image300 300w\">" +
"<img>" +
"</picture></figure>" +
+ "<img srcset=\"http://example.com/image2x 2x\" src=\"http://example.com/image\" " +
+ "width=\"20\" height=\"10\">" +
"<img alt=\"b\" src=\"http://example.com/path/image2\">" +
"<table role=\"grid\"><tbody><tr><td>" +
"<img alt=\"b\" src=\"http://example.com/image\" " +
« no previous file with comments | « java/org/chromium/distiller/extractors/embeds/ImageExtractor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698