| 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 6d813cc87734f5d0e3b622a711a2c9fb72869e42..315a4de98a76631309322fd7b33df6723c37cb2f 100644
|
| --- a/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
|
| +++ b/javatests/org/chromium/distiller/webdocument/DomConverterTest.java
|
| @@ -38,10 +38,6 @@ public class DomConverterTest extends DomDistillerJsTestCase {
|
| runTest("<div style=\"display:none\">diplay none</div>", "");
|
| }
|
|
|
| - public void testVisibilityHidden() throws Throwable {
|
| - runTest("<div style=\"visibility:hidden\">visibility hidden</div>", "");
|
| - }
|
| -
|
| public void testInvisibleInVisible() throws Throwable {
|
| String html = "<div>visible parent" +
|
| "<div style=\"display:none\">invisible child</div>" +
|
| @@ -50,7 +46,7 @@ public class DomConverterTest extends DomDistillerJsTestCase {
|
| }
|
|
|
| public void testVisibleInInvisible() throws Throwable {
|
| - String html = "<div style=\"visibility:hidden\">invisible parent" +
|
| + String html = "<div style=\"display:none\">invisible parent" +
|
| "<div>visible child</div>" +
|
| "</div>";
|
| runTest(html, "");
|
| @@ -64,7 +60,7 @@ public class DomConverterTest extends DomDistillerJsTestCase {
|
| }
|
|
|
| public void testInvisibleInInvisible() throws Throwable {
|
| - String html = "<div style=\"visibility:hidden\">invisible parent" +
|
| + String html = "<div style=\"display:none\">invisible parent" +
|
| "<div style=\"display:none\">invisible child</div>" +
|
| "</div>";
|
| runTest(html, "");
|
| @@ -74,20 +70,20 @@ public class DomConverterTest extends DomDistillerJsTestCase {
|
| String html = "<div>visible parent" +
|
| "<div style=\"display:none\">invisible child0</div>" +
|
| "<div>visible child1" +
|
| - "<div style=\"visibility:hidden\">invisible grandchild</div>" +
|
| + "<div style=\"display:none\">invisible grandchild</div>" +
|
| "</div>" +
|
| - "<div style=\"visibility:hidden\">invisible child2</div>" +
|
| + "<div style=\"display:none\">invisible child2</div>" +
|
| "</div>";
|
| runTest(html, "<div>visible parent<div>visible child1</div></div>");
|
| }
|
|
|
| public void testDifferentChildrenInInvisible() throws Throwable {
|
| - String html = "<div style=\"visibility:hidden\">invisible parent" +
|
| + String html = "<div style=\"display:none\">invisible parent" +
|
| "<div style=\"display:none\">invisible child0</div>" +
|
| "<div>visible child1" +
|
| "<div style=\"display:none\">invisible grandchild</div>" +
|
| "</div>" +
|
| - "<div style=\"visibility:hidden\">invisible child2</div>" +
|
| + "<div style=\"display:none\">invisible child2</div>" +
|
| "</div>";
|
| runTest(html, "");
|
| }
|
| @@ -134,6 +130,7 @@ public class DomConverterTest extends DomDistillerJsTestCase {
|
| public void testElementOrder() {
|
| Element container = Document.get().createDivElement();
|
| container.setInnerHTML("Text content <img src=\"http://example.com/1.jpg\"> more content");
|
| + mBody.appendChild(container);
|
|
|
| WebDocumentBuilder builder = new WebDocumentBuilder();
|
| DomConverter converter = new DomConverter(builder);
|
| @@ -156,6 +153,7 @@ public class DomConverterTest extends DomDistillerJsTestCase {
|
| public void testList() throws Throwable {
|
| Element container = Document.get().createDivElement();
|
| container.setInnerHTML("<ol><li>some text1</li><li>some text2</li></ol>");
|
| + mBody.appendChild(container);
|
|
|
| WebDocumentBuilder builder = new WebDocumentBuilder();
|
| DomConverter converter = new DomConverter(builder);
|
|
|