| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.distiller.webdocument; | 5 package org.chromium.distiller.webdocument; |
| 6 | 6 |
| 7 import org.chromium.distiller.DomDistillerJsTestCase; | 7 import org.chromium.distiller.DomDistillerJsTestCase; |
| 8 import org.chromium.distiller.DomWalker; | 8 import org.chromium.distiller.DomWalker; |
| 9 | 9 |
| 10 import com.google.gwt.dom.client.Document; | 10 import com.google.gwt.dom.client.Document; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 assertTrue(((WebTag) elements.get(4)).isStartTag()); | 224 assertTrue(((WebTag) elements.get(4)).isStartTag()); |
| 225 | 225 |
| 226 assertTrue(elements.get(5) instanceof WebText); | 226 assertTrue(elements.get(5) instanceof WebText); |
| 227 | 227 |
| 228 assertTrue(elements.get(6) instanceof WebTag); | 228 assertTrue(elements.get(6) instanceof WebTag); |
| 229 assertFalse(((WebTag) elements.get(6)).isStartTag()); | 229 assertFalse(((WebTag) elements.get(6)).isStartTag()); |
| 230 | 230 |
| 231 assertTrue(elements.get(7) instanceof WebTag); | 231 assertTrue(elements.get(7) instanceof WebTag); |
| 232 assertFalse(((WebTag) elements.get(7)).isStartTag()); | 232 assertFalse(((WebTag) elements.get(7)).isStartTag()); |
| 233 } | 233 } |
| 234 |
| 235 public void testSocialElements() throws Throwable { |
| 236 runTest("<div></div>", "<div></div>"); |
| 237 runTest("<div data-component=\"share\"></div>", ""); |
| 238 runTest("<div class=\"socialArea\"></div>", ""); |
| 239 runTest("<li></li>", "<li></li>"); |
| 240 runTest("<li class=\"sharing\"></li>", ""); |
| 241 } |
| 234 } | 242 } |
| OLD | NEW |