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

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

Issue 2285133003: Use .innerText in text-only mode (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 4 years, 4 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/EmbedExtractorTest.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/WebTextTest.java
diff --git a/javatests/org/chromium/distiller/webdocument/WebTextTest.java b/javatests/org/chromium/distiller/webdocument/WebTextTest.java
index 52d804b1a47d2183c747943bb05a4787bc529cf8..b812c587a4c4260dba1db0571c377b74ce7efe4f 100644
--- a/javatests/org/chromium/distiller/webdocument/WebTextTest.java
+++ b/javatests/org/chromium/distiller/webdocument/WebTextTest.java
@@ -88,6 +88,10 @@ public class WebTextTest extends DomDistillerJsTestCase {
String got = text.generateOutput(false);
String want = "<p>Words<br>split<br>with<br>lines</p>";
assertEquals(want, TestUtil.removeAllDirAttributes(got));
+
+ got = text.generateOutput(true);
+ want = "Words\nsplit\nwith\nlines";
+ assertEquals(want, got);
}
public void testGenerateOutputLIElements() {
« no previous file with comments | « javatests/org/chromium/distiller/EmbedExtractorTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698