Changeset 12454 in josm


Ignore:
Timestamp:
2017-07-07T20:23:48+02:00 (3 months ago)
Author:
michael2402
Message:

Move MapCSS dash clamping test to new test case.

Location:
trunk/test
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/data/renderer/way-dashes/data.osm

    r12448 r12454  
    11<?xml version='1.0' encoding='UTF-8'?>
    22<osm version='0.6' upload='never' generator='JOSM'>
    3   <node id='-38146' action='modify' lat='0.1' lon='0.1' />
    4   <node id='-38148' action='modify' lat='0.15' lon='0.3' />
    5   <node id='-38150' action='modify' lat='0.1' lon='0.5' />
    6   <node id='-38152' action='modify' lat='0.1' lon='0.7' />
    7   <node id='-38154' action='modify' lat='0.1' lon='0.9' />
    8   <node id='-38156' action='modify' lat='0.3' lon='0.1' />
    9   <node id='-38158' action='modify' lat='0.35' lon='0.3' />
    10   <node id='-38160' action='modify' lat='0.3' lon='0.5' />
    11   <node id='-38162' action='modify' lat='0.3' lon='0.7' />
    12   <node id='-38164' action='modify' lat='0.3' lon='0.9' />
    13   <node id='-38166' action='modify' lat='0.5' lon='0.1' />
    14   <node id='-38168' action='modify' lat='0.55' lon='0.3' />
    15   <node id='-38170' action='modify' lat='0.5' lon='0.5' />
    16   <node id='-38172' action='modify' lat='0.5' lon='0.7' />
    17   <node id='-38174' action='modify' lat='0.5' lon='0.9' />
    18   <node id='-38176' action='modify' lat='0.7' lon='0.1' />
    19   <node id='-38178' action='modify' lat='0.75' lon='0.3' />
    20   <node id='-38180' action='modify' lat='0.7' lon='0.5' />
    21   <node id='-38182' action='modify' lat='0.7' lon='0.7' />
    22   <node id='-38184' action='modify' lat='0.7' lon='0.9' />
    23   <node id='-38186' action='modify' lat='0.9' lon='0.1' />
    24   <node id='-38188' action='modify' lat='0.95' lon='0.3' />
    25   <node id='-38190' action='modify' lat='0.9' lon='0.5' />
    26   <node id='-38192' action='modify' lat='0.9' lon='0.7' />
    27   <node id='-38194' action='modify' lat='0.9' lon='0.9' />
    28   <node id='-38242' action='modify' lat='0.2993788257' lon='-0.49438751221' />
    29   <node id='-38243' action='modify' lat='0.38452134447' lon='0.01098358154' />
    30   <node id='-38245' action='modify' lat='0.41473301158' lon='0.51910125732' />
    31   <node id='-38247' action='modify' lat='0.40923998953' lon='0.99700653076' />
    32   <node id='-38249' action='modify' lat='0.27465989777' lon='1.13982879639' />
    33   <node id='-38294' action='modify' lat='-0.3048664203' lon='1.31011688232' />
    34   <way id='-38196' action='modify'>
    35     <nd ref='-38194' />
    36     <nd ref='-38192' />
     3  <node id='-32972' action='modify' lat='0.1' lon='0.1' />
     4  <node id='-32974' action='modify' lat='0.15' lon='0.3' />
     5  <node id='-32976' action='modify' lat='0.1' lon='0.5' />
     6  <node id='-32978' action='modify' lat='0.1' lon='0.7' />
     7  <node id='-32980' action='modify' lat='0.1' lon='0.9' />
     8  <node id='-32982' action='modify' lat='0.3' lon='0.1' />
     9  <node id='-32984' action='modify' lat='0.35' lon='0.3' />
     10  <node id='-32986' action='modify' lat='0.3' lon='0.5' />
     11  <node id='-32988' action='modify' lat='0.3' lon='0.7' />
     12  <node id='-32990' action='modify' lat='0.3' lon='0.9' />
     13  <node id='-32992' action='modify' lat='0.5' lon='0.1' />
     14  <node id='-32994' action='modify' lat='0.55' lon='0.3' />
     15  <node id='-32996' action='modify' lat='0.5' lon='0.5' />
     16  <node id='-32998' action='modify' lat='0.5' lon='0.7' />
     17  <node id='-33000' action='modify' lat='0.5' lon='0.9' />
     18  <node id='-33002' action='modify' lat='0.7' lon='0.1' />
     19  <node id='-33004' action='modify' lat='0.75' lon='0.3' />
     20  <node id='-33006' action='modify' lat='0.7' lon='0.5' />
     21  <node id='-33008' action='modify' lat='0.7' lon='0.7' />
     22  <node id='-33010' action='modify' lat='0.7' lon='0.9' />
     23  <node id='-33012' action='modify' lat='0.9' lon='0.1' />
     24  <node id='-33014' action='modify' lat='0.95' lon='0.3' />
     25  <node id='-33016' action='modify' lat='0.9' lon='0.5' />
     26  <node id='-33018' action='modify' lat='0.9' lon='0.7' />
     27  <node id='-33020' action='modify' lat='0.9' lon='0.9' />
     28  <way id='-33034' action='modify'>
     29    <nd ref='-33020' />
     30    <nd ref='-33018' />
    3731    <tag k='highlight' v='yes' />
    3832    <tag k='test' v='style5' />
    3933  </way>
    40   <way id='-38198' action='modify'>
    41     <nd ref='-38184' />
    42     <nd ref='-38182' />
     34  <way id='-33036' action='modify'>
     35    <nd ref='-33010' />
     36    <nd ref='-33008' />
    4337    <tag k='highlight' v='yes' />
    4438    <tag k='test' v='style4' />
    4539  </way>
    46   <way id='-38200' action='modify'>
    47     <nd ref='-38174' />
    48     <nd ref='-38172' />
     40  <way id='-33038' action='modify'>
     41    <nd ref='-33000' />
     42    <nd ref='-32998' />
    4943    <tag k='highlight' v='yes' />
    5044    <tag k='test' v='style3' />
    5145  </way>
    52   <way id='-38202' action='modify'>
    53     <nd ref='-38164' />
    54     <nd ref='-38162' />
     46  <way id='-33040' action='modify'>
     47    <nd ref='-32990' />
     48    <nd ref='-32988' />
    5549    <tag k='highlight' v='yes' />
    5650    <tag k='test' v='style2' />
    5751  </way>
    58   <way id='-38204' action='modify'>
    59     <nd ref='-38154' />
    60     <nd ref='-38152' />
     52  <way id='-33042' action='modify'>
     53    <nd ref='-32980' />
     54    <nd ref='-32978' />
    6155    <tag k='highlight' v='yes' />
    6256    <tag k='test' v='style1' />
    6357  </way>
    64   <way id='-38206' action='modify'>
    65     <nd ref='-38190' />
    66     <nd ref='-38188' />
    67     <nd ref='-38186' />
     58  <way id='-33044' action='modify'>
     59    <nd ref='-33016' />
     60    <nd ref='-33014' />
     61    <nd ref='-33012' />
    6862    <tag k='test' v='style5' />
    6963  </way>
    70   <way id='-38208' action='modify'>
    71     <nd ref='-38180' />
    72     <nd ref='-38178' />
    73     <nd ref='-38176' />
     64  <way id='-33046' action='modify'>
     65    <nd ref='-33006' />
     66    <nd ref='-33004' />
     67    <nd ref='-33002' />
    7468    <tag k='test' v='style4' />
    7569  </way>
    76   <way id='-38210' action='modify'>
    77     <nd ref='-38170' />
    78     <nd ref='-38168' />
    79     <nd ref='-38166' />
     70  <way id='-33048' action='modify'>
     71    <nd ref='-32996' />
     72    <nd ref='-32994' />
     73    <nd ref='-32992' />
    8074    <tag k='test' v='style3' />
    8175  </way>
    82   <way id='-38212' action='modify'>
    83     <nd ref='-38160' />
    84     <nd ref='-38158' />
    85     <nd ref='-38156' />
     76  <way id='-33050' action='modify'>
     77    <nd ref='-32986' />
     78    <nd ref='-32984' />
     79    <nd ref='-32982' />
    8680    <tag k='test' v='style2' />
    8781  </way>
    88   <way id='-38214' action='modify'>
    89     <nd ref='-38150' />
    90     <nd ref='-38148' />
    91     <nd ref='-38146' />
     82  <way id='-33052' action='modify'>
     83    <nd ref='-32976' />
     84    <nd ref='-32974' />
     85    <nd ref='-32972' />
    9286    <tag k='test' v='style1' />
    9387  </way>
    94   <way id='-38244' action='modify'>
    95     <nd ref='-38242' />
    96     <nd ref='-38243' />
    97     <nd ref='-38245' />
    98     <nd ref='-38247' />
    99     <nd ref='-38249' />
    100     <nd ref='-38294' />
    101     <tag k='test' v='out-of-screen' />
    102   </way>
    10388</osm>
  • trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java

    r12447 r12454  
    9292                new TestConfig("way-dashes", AREA_DEFAULT),
    9393
     94                /** Tests dashed way clamping algorithm */
     95                new TestConfig("way-dashes-clamp", AREA_DEFAULT),
     96
    9497                /** Tests fill-color property */
    9598                new TestConfig("area-fill-color", AREA_DEFAULT),
Note: See TracChangeset for help on using the changeset viewer.