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

Side by Side Diff: javatests/org/chromium/distiller/PagingLinksFinderTest.java

Issue 1725243002: Fix some warnings in Eclipse (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: address comments Created 4 years, 7 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
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; 5 package org.chromium.distiller;
6 6
7 import com.google.gwt.dom.client.AnchorElement; 7 import com.google.gwt.dom.client.AnchorElement;
8 import com.google.gwt.dom.client.BaseElement; 8 import com.google.gwt.dom.client.BaseElement;
9 import com.google.gwt.dom.client.Document; 9 import com.google.gwt.dom.client.Document;
10 import com.google.gwt.dom.client.Element; 10 import com.google.gwt.dom.client.Element;
11 import com.google.gwt.user.client.Window;
12 11
13 public class PagingLinksFinderTest extends DomDistillerJsTestCase { 12 public class PagingLinksFinderTest extends DomDistillerJsTestCase {
14 private static String EXAMPLE_URL = "http://example.com/path/toward/news.php "; 13 private static String EXAMPLE_URL = "http://example.com/path/toward/news.php ";
15 14
16 private static String resolveLinkHref(String link, String base) { 15 private static String resolveLinkHref(String link, String base) {
17 return resolveLinkHref(TestUtil.createAnchor(link, ""), base); 16 return resolveLinkHref(TestUtil.createAnchor(link, ""), base);
18 } 17 }
19 18
20 private static String resolveLinkHref(AnchorElement anchor, String base) { 19 private static String resolveLinkHref(AnchorElement anchor, String base) {
21 AnchorElement baseAnchor = PagingLinksFinder.createAnchorWithBase(base); 20 AnchorElement baseAnchor = PagingLinksFinder.createAnchorWithBase(base);
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 assertEquals((Integer) 1, PagingLinksFinder.pageDiff("common1", "common2 ", null, 0)); 378 assertEquals((Integer) 1, PagingLinksFinder.pageDiff("common1", "common2 ", null, 0));
380 assertNull(PagingLinksFinder.pageDiff("common1", "common2", null, 7)); 379 assertNull(PagingLinksFinder.pageDiff("common1", "common2", null, 7));
381 assertNull(PagingLinksFinder.pageDiff("common1", "Common2", null, 0)); 380 assertNull(PagingLinksFinder.pageDiff("common1", "Common2", null, 0));
382 assertEquals((Integer) (-8), PagingLinksFinder.pageDiff("common10", "com mon02", null, 0)); 381 assertEquals((Integer) (-8), PagingLinksFinder.pageDiff("common10", "com mon02", null, 0));
383 assertNull(PagingLinksFinder.pageDiff("commonA10", "commonB02", null, 0) ); 382 assertNull(PagingLinksFinder.pageDiff("commonA10", "commonB02", null, 0) );
384 assertNull(PagingLinksFinder.pageDiff("common10", "commonB02", null, 0)) ; 383 assertNull(PagingLinksFinder.pageDiff("common10", "commonB02", null, 0)) ;
385 assertNull(PagingLinksFinder.pageDiff("commonA10", "common02", null, 0)) ; 384 assertNull(PagingLinksFinder.pageDiff("commonA10", "common02", null, 0)) ;
386 assertEquals((Integer) (-7), PagingLinksFinder.pageDiff("common11", "com mon4", null, 0)); 385 assertEquals((Integer) (-7), PagingLinksFinder.pageDiff("common11", "com mon4", null, 0));
387 } 386 }
388 } 387 }
OLDNEW
« no previous file with comments | « javatests/org/chromium/distiller/PageParameterDetectorTest.java ('k') | javatests/org/chromium/distiller/StringUtilTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698