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

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

Issue 2729233002: Ignore the "Edit" links in wiki pages (Closed)
Patch Set: add comments 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/webdocument/DomConverter.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 42b71db0d1cbbb1e8cbc4bc9f828ff1dec55e2ca..2365443be870fe6ebc79cc10901bd84c9b1a2217 100644
--- a/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
+++ b/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
@@ -239,4 +239,16 @@ public class DomConverterTest extends DomDistillerJsTestCase {
runTest("<li></li>", "<li></li>");
runTest("<li class=\"sharing\"></li>", "");
}
+
+ public void testWikiEditLinks() throws Throwable {
+ String notEdit = "<a href=\"index.php?action=edit&redlink=1\"></a>";
+ runTest(notEdit, notEdit);
+ runTest("<a href=\"index.php?action=edit&section=3\" class=\"mw-ui-icon\"></a>", "");
+ }
+
+ public void testWikiEditSection() throws Throwable {
+ String notEdit = "<span class=\"mw-headline\"></span>";
+ runTest(notEdit, notEdit);
+ runTest("<span class=\"mw-editsection\"></span>", "");
+ }
}
« no previous file with comments | « java/org/chromium/distiller/webdocument/DomConverter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698