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

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

Issue 2092553003: Fix schema.org article matching (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 4 years, 6 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/DomUtil.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/DomUtilTest.java
diff --git a/javatests/org/chromium/distiller/DomUtilTest.java b/javatests/org/chromium/distiller/DomUtilTest.java
index d8d9f4b58a5e17ed6c0eb5980dc0ddaaa851b727..5038442cac2b82830f567b1dee8136d38cf89298 100644
--- a/javatests/org/chromium/distiller/DomUtilTest.java
+++ b/javatests/org/chromium/distiller/DomUtilTest.java
@@ -504,6 +504,16 @@ public class DomUtilTest extends DomDistillerJsTestCase {
assertEquals(expected, result.getString());
}
+ public void testOnlyProcessSchemaOrgPostal() {
+ final String htmlArticle =
+ "<h1></h1>" +
+ "<div itemscope itemtype=\"http://schema.org/PostalAddress\">" +
+ "</div>";
+
+ Element result = getArticleElement(htmlArticle);
+ assertNull(result);
+ }
+
public void testOnlyProcessSchemaOrgArticleNested() {
final String htmlArticle =
"<h1></h1>" +
« no previous file with comments | « java/org/chromium/distiller/DomUtil.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698