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

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

Issue 2721133002: Skip some social sharing elements (Closed)
Patch Set: Created 3 years, 10 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 | « javatests/org/chromium/distiller/TerminatingBlocksFinderTest.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/webdocument/DomConverterTest.java
diff --git a/javatests/org/chromium/distiller/webdocument/DomConverterTest.java b/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
index a4c6f64789c54ade50b1bcba5fc92d4461db2320..42b71db0d1cbbb1e8cbc4bc9f828ff1dec55e2ca 100644
--- a/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
+++ b/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
@@ -231,4 +231,12 @@ public class DomConverterTest extends DomDistillerJsTestCase {
assertTrue(elements.get(7) instanceof WebTag);
assertFalse(((WebTag) elements.get(7)).isStartTag());
}
+
+ public void testSocialElements() throws Throwable {
+ runTest("<div></div>", "<div></div>");
+ runTest("<div data-component=\"share\"></div>", "");
+ runTest("<div class=\"socialArea\"></div>", "");
+ runTest("<li></li>", "<li></li>");
+ runTest("<li class=\"sharing\"></li>", "");
+ }
}
« no previous file with comments | « javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698