Changeset 11621 in josm for trunk/test
- Timestamp:
- 2017-02-25T21:21:27+01:00 (8 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTest.java
r10338 r11621 267 267 } 268 268 // RFC3490 3.1. 1) 269 //Whenever dots are used as label separators, the following270 //characters MUST be recognized as dots: U+002E (full stop), U+3002271 //(ideographic full stop), U+FF0E (fullwidth full stop), U+FF61272 //(halfwidth ideographic full stop).269 // Whenever dots are used as label separators, the following 270 // characters MUST be recognized as dots: U+002E (full stop), U+3002 271 // (ideographic full stop), U+FF0E (fullwidth full stop), U+FF61 272 // (halfwidth ideographic full stop). 273 273 final String[][] otherDots = { 274 274 {"b\u3002", "b."}, -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTestIT.java
r10756 r11621 189 189 final Map<String, String[]> info = new HashMap<>(); 190 190 191 // <td><span class="domain tld"><a href="/domains/root/db/ax.html">.ax</a></span></td>192 191 final Pattern domain = Pattern.compile(".*<a href=\"/domains/root/db/([^.]+)\\.html"); 193 // <td>country-code</td>194 192 final Pattern type = Pattern.compile("\\s+<td>([^<]+)</td>"); 195 // <!-- <td>Åland Islands<br/><span class="tld-table-so">Ålands landskapsregering</span></td> </td> -->196 // <td>Ålands landskapsregering</td>197 193 final Pattern comment = Pattern.compile("\\s+<td>([^<]+)</td>"); 198 194 … … 228 224 } 229 225 // Don't save unused entries 230 if (com.contains("Not assigned") || com.contains("Retired") || typ.equals("test")) { 231 // System.out.println("Ignored: " + typ + " " + dom + " " +com); 232 } else { 226 if (!com.contains("Not assigned") && !com.contains("Retired") && !typ.equals("test")) { 233 227 info.put(dom.toLowerCase(Locale.ENGLISH), new String[]{typ, com}); 234 // System.out.println("Storing: " + typ + " " + dom + " " +com);235 228 } 236 229 } else { -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/UrlValidatorTest.java
r10378 r11621 408 408 UrlValidator validator = new UrlValidator(); 409 409 assertTrue(validator.isValid("http://xn--h1acbxfam.idn.icann.org/")); 410 // assertTrue(validator.isValid("http://xn--e1afmkfd.xn--80akhbyknj4f"));411 410 // Internationalized country code top-level domains 412 411 assertTrue(validator.isValid("http://test.xn--lgbbat1ad8j")); //Algeria … … 441 440 assertTrue(validator.isValid("http://test.xn--pgbs0dh")); // Tunisia 442 441 assertTrue(validator.isValid("http://test.xn--mgbaam7a8h")); // United Arab Emirates 443 // Proposed internationalized ccTLDs444 // assertTrue(validator.isValid("http://test.xn--54b7fta0cc")); // Bangladesh445 // assertTrue(validator.isValid("http://test.xn--90ae")); // Bulgaria446 // assertTrue(validator.isValid("http://test.xn--node")); // Georgia447 // assertTrue(validator.isValid("http://test.xn--4dbrk0ce")); // Israel448 // assertTrue(validator.isValid("http://test.xn--mgb9awbf")); // Oman449 // assertTrue(validator.isValid("http://test.xn--j1amh")); // Ukraine450 // assertTrue(validator.isValid("http://test.xn--mgb2ddes")); // Yemen451 // Test TLDs452 // assertTrue(validator.isValid("http://test.xn--kgbechtv")); // Arabic453 // assertTrue(validator.isValid("http://test.xn--hgbk6aj7f53bba")); // Persian454 // assertTrue(validator.isValid("http://test.xn--0zwm56d")); // Chinese455 // assertTrue(validator.isValid("http://test.xn--g6w251d")); // Chinese456 // assertTrue(validator.isValid("http://test.xn--80akhbyknj4f")); // Russian457 // assertTrue(validator.isValid("http://test.xn--11b5bs3a9aj6g")); // Hindi458 // assertTrue(validator.isValid("http://test.xn--jxalpdlp")); // Greek459 // assertTrue(validator.isValid("http://test.xn--9t4b11yi5a")); // Korean460 // assertTrue(validator.isValid("http://test.xn--deba0ad")); // Yiddish461 // assertTrue(validator.isValid("http://test.xn--zckzah")); // Japanese462 // assertTrue(validator.isValid("http://test.xn--hlcj6aya9esc7a")); // Tamil463 442 } 464 443 -
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandlerTest.java
r10974 r11621 87 87 public void testRequestParameter4() throws RequestHandlerBadRequestException { 88 88 assertEquals(Collections.singletonMap("/?:@-._~!$'()* ,;", "/?:@-._~!$'()* ,;=="), getRequestParameter( 89 // CHECKSTYLE.OFF: LineLength 90 "http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;=")); 91 // CHECKSTYLE.ON: LineLength 89 "http://example.com/:@-._~!$&'()*+,=;:@-._~!$&'()*+,=:@-._~!$&'()*+,==?/?:@-._~!$'()*+,;=/?:@-._~!$'()*+,;==#/?:@-._~!$&'()*+,;=" 90 )); 92 91 } 93 92
Note:
See TracChangeset
for help on using the changeset viewer.