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

Unified Diff: test/com/dom_distiller/client/TestUtil.java

Issue 240073007: recognize and parse Schema.org Markup (Closed) Base URL: https://code.google.com/p/dom-distiller/@master
Patch Set: addressed comments Created 6 years, 8 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 | « test/com/dom_distiller/client/SchemaOrgParserAccessorTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/com/dom_distiller/client/TestUtil.java
diff --git a/test/com/dom_distiller/client/TestUtil.java b/test/com/dom_distiller/client/TestUtil.java
index cb75f8c0fd4148729f1daf65aa377cf27612bb89..04250df1e22b5473aa5c58f1180c020c05ccb707 100644
--- a/test/com/dom_distiller/client/TestUtil.java
+++ b/test/com/dom_distiller/client/TestUtil.java
@@ -109,6 +109,12 @@ class TestUtil {
return m;
}
+ public static Element createSpan(String value) {
+ Element s = Document.get().createElement("SPAN");
+ s.setInnerHTML(value);
+ return s;
+ }
+
private static void createDivTreeImpl(Element e, int depth, List<Element> divs) {
if (depth > 2) return;
for (int i = 0; i < 2; i++) {
« no previous file with comments | « test/com/dom_distiller/client/SchemaOrgParserAccessorTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698