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

Side by Side Diff: javatests/org/chromium/distiller/webdocument/DomConverterTest.java

Issue 2721133002: Skip some social sharing elements (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « javatests/org/chromium/distiller/TerminatingBlocksFinderTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698