Index: javatests/org/chromium/distiller/ContentExtractorTest.java |
diff --git a/javatests/org/chromium/distiller/ContentExtractorTest.java b/javatests/org/chromium/distiller/ContentExtractorTest.java |
index a30c468fdf13e6353eeaed2d1c74a8312a1c5af3..9429fc110b73ac26f116bb29af88b713948e9a70 100644 |
--- a/javatests/org/chromium/distiller/ContentExtractorTest.java |
+++ b/javatests/org/chromium/distiller/ContentExtractorTest.java |
@@ -604,4 +604,31 @@ public class ContentExtractorTest extends DomDistillerJsTestCase { |
// Non-article schema.org types should not use the fast path. |
assertExtractor(expected, htmlArticle); |
} |
+ |
+ public void testDropCap() { |
+ String html = |
+ "<h1>" + |
+ CONTENT_TEXT + |
+ "</h1>" + |
+ "<p>" + |
+ "<strong><span style=\"float: left\">T</span>est</strong>" + |
+ CONTENT_TEXT + |
+ "</p>"; |
+ |
+ final String expected = |
+ "<h1>" + |
+ CONTENT_TEXT + |
+ "</h1>" + |
+ "<p>" + |
+ "<strong><span>T</span>est</strong>" + |
+ CONTENT_TEXT + |
+ "</p>"; |
+ |
+ mBody.setInnerHTML(html); |
+ |
+ ContentExtractor extractor = new ContentExtractor(mRoot); |
+ String extractedContent = extractor.extractContent(); |
+ assertEquals(expected, |
+ TestUtil.removeAllDirAttributes(extractedContent)); |
+ } |
} |