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

Unified Diff: javatests/org/chromium/distiller/TerminatingBlocksFinderTest.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
Index: javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java
diff --git a/javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java b/javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java
index 6557d5f764e79e8be0ae0df35facdf26c68e1e36..008d39c2f6b26b09794950728dce5e630b3e020e 100644
--- a/javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java
+++ b/javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java
@@ -71,4 +71,8 @@ public class TerminatingBlocksFinderTest extends DomDistillerJsTestCase {
assertFalse(TerminatingBlocksFinder.isTerminating(builder.createForAnchorText("comment")));
assertFalse(TerminatingBlocksFinder.isTerminating(builder.createForAnchorText("foobar")));
}
+
+ public void testShareLink() {
+ assertTrue(TerminatingBlocksFinder.isTerminating(builder.createForText("Shares")));
+ }
}

Powered by Google App Engine
This is Rietveld 408576698