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

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

Issue 2670643006: Skip non-text elements in <a> without href in <figcaption> (Closed)
Patch Set: Created 3 years, 11 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/EmbedExtractorTest.java
diff --git a/javatests/org/chromium/distiller/EmbedExtractorTest.java b/javatests/org/chromium/distiller/EmbedExtractorTest.java
index 5022a5acb3561c9ba621f31ab510a3527f3a1d54..fac80777b79d0dc558166617cabef12534c234e2 100644
--- a/javatests/org/chromium/distiller/EmbedExtractorTest.java
+++ b/javatests/org/chromium/distiller/EmbedExtractorTest.java
@@ -546,7 +546,7 @@ public class EmbedExtractorTest extends DomDistillerJsTestCase {
Element figure = Document.get().createElement("FIGURE");
figure.appendChild(image);
Element figcaption = Document.get().createElement("FIGCAPTION");
- figcaption.setInnerHTML("<div><span>This is a caption</span></div>");
+ figcaption.setInnerHTML("<div><span>This is a caption</span><a></a></div>");
figure.appendChild(figcaption);
mBody.appendChild(figure);
« 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