Changeset 14561 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java
r14214 r14561 2009 2009 } 2010 2010 }; 2011 } catch (ParseException e) {2011 } catch (ParseException | IllegalArgumentException e) { 2012 2012 throw new SearchParseError(tr("Failed to parse MapCSS selector"), e); 2013 2013 } -
trunk/test/unit/org/openstreetmap/josm/data/osm/search/SearchCompilerTest.java
r14100 r14561 501 501 502 502 /** 503 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/17112">Bug #17112</a>. 504 * @throws SearchParseError always 505 */ 506 @Test(expected = SearchParseError.class) 507 public void testTicket17112() throws SearchParseError { 508 SearchSetting setting = new SearchSetting(); 509 setting.mapCSSSearch = true; 510 setting.text = "w"; // partial input 511 SearchCompiler.compile(setting); 512 } 513 514 /** 503 515 * Test empty values. 504 516 * @throws SearchParseError never
Note:
See TracChangeset
for help on using the changeset viewer.