Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r9086 r9147 1108 1108 public void actionPerformed(ActionEvent e) { 1109 1109 try { 1110 String base = Main.pref.get("url.openstreetmap-wiki", "http ://wiki.openstreetmap.org/wiki/");1110 String base = Main.pref.get("url.openstreetmap-wiki", "https://wiki.openstreetmap.org/wiki/"); 1111 1111 String lang = LanguageInfo.getWikiLanguagePrefix(); 1112 1112 final List<URI> uris = new ArrayList<>(); -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r9070 r9147 888 888 private static ImageResource getIfAvailableWiki(String name, ImageType type) { 889 889 final Collection<String> defaultBaseUrls = Arrays.asList( 890 "http ://wiki.openstreetmap.org/w/images/",891 "http ://upload.wikimedia.org/wikipedia/commons/",892 "http ://wiki.openstreetmap.org/wiki/File:"890 "https://wiki.openstreetmap.org/w/images/", 891 "https://upload.wikimedia.org/wikipedia/commons/", 892 "https://wiki.openstreetmap.org/wiki/File:" 893 893 ); 894 894 final Collection<String> baseUrls = Main.pref.getCollection("image-provider.wiki.urls", defaultBaseUrls); -
trunk/test/unit/org/openstreetmap/josm/tools/ImageProviderTest.java
r8857 r9147 10 10 import java.io.IOException; 11 11 12 import org.junit.BeforeClass; 12 13 import org.junit.Test; 14 import org.openstreetmap.josm.JOSMFixture; 13 15 import org.openstreetmap.josm.TestUtils; 14 16 … … 17 19 */ 18 20 public class ImageProviderTest { 21 22 /** 23 * Setup test. 24 */ 25 @BeforeClass 26 public static void setUp() { 27 JOSMFixture.createUnitTestFixture().init(); 28 } 19 29 20 30 /** … … 41 51 assertNotNull(img); 42 52 } 53 54 @Test 55 public void testWikiProtocol() throws Exception { 56 // https://commons.wikimedia.org/wiki/File:OpenJDK_logo.svg 57 assertNotNull(ImageProvider.get("wiki://OpenJDK_logo.svg")); 58 } 43 59 }
Note:
See TracChangeset
for help on using the changeset viewer.