Changeset 12448 in josm for trunk/test/data


Ignore:
Timestamp:
2017-07-02T13:46:59+02:00 (7 years ago)
Author:
bastiK
Message:

extend test case for MapCSSRendererTest (see #14980)

Location:
trunk/test/data/renderer/way-dashes
Files:
3 edited

Legend:

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

    r11887 r12448  
    11<?xml version='1.0' encoding='UTF-8'?>
    22<osm version='0.6' upload='never' generator='JOSM'>
    3   <node id='-30552' action='modify' visible='true' lat='0.1' lon='0.1' />
    4   <node id='-30554' action='modify' visible='true' lat='0.15' lon='0.3' />
    5   <node id='-30556' action='modify' visible='true' lat='0.1' lon='0.5' />
    6   <node id='-30558' action='modify' visible='true' lat='0.1' lon='0.7' />
    7   <node id='-30560' action='modify' visible='true' lat='0.1' lon='0.9' />
    8   <node id='-30562' action='modify' visible='true' lat='0.3' lon='0.1' />
    9   <node id='-30564' action='modify' visible='true' lat='0.35' lon='0.3' />
    10   <node id='-30566' action='modify' visible='true' lat='0.3' lon='0.5' />
    11   <node id='-30568' action='modify' visible='true' lat='0.3' lon='0.7' />
    12   <node id='-30570' action='modify' visible='true' lat='0.3' lon='0.9' />
    13   <node id='-30572' action='modify' visible='true' lat='0.5' lon='0.1' />
    14   <node id='-30574' action='modify' visible='true' lat='0.55' lon='0.3' />
    15   <node id='-30576' action='modify' visible='true' lat='0.5' lon='0.5' />
    16   <node id='-30578' action='modify' visible='true' lat='0.5' lon='0.7' />
    17   <node id='-30580' action='modify' visible='true' lat='0.5' lon='0.9' />
    18   <node id='-30582' action='modify' visible='true' lat='0.7' lon='0.1' />
    19   <node id='-30584' action='modify' visible='true' lat='0.75' lon='0.3' />
    20   <node id='-30586' action='modify' visible='true' lat='0.7' lon='0.5' />
    21   <node id='-30588' action='modify' visible='true' lat='0.7' lon='0.7' />
    22   <node id='-30590' action='modify' visible='true' lat='0.7' lon='0.9' />
    23   <node id='-30592' action='modify' visible='true' lat='0.9' lon='0.1' />
    24   <node id='-30594' action='modify' visible='true' lat='0.95' lon='0.3' />
    25   <node id='-30596' action='modify' visible='true' lat='0.9' lon='0.5' />
    26   <node id='-30598' action='modify' visible='true' lat='0.9' lon='0.7' />
    27   <node id='-30600' action='modify' visible='true' lat='0.9' lon='0.9' />
    28   <way id='-30626' action='modify' visible='true'>
    29     <nd ref='-30600' />
    30     <nd ref='-30598' />
     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' />
    3137    <tag k='highlight' v='yes' />
    3238    <tag k='test' v='style5' />
    3339  </way>
    34   <way id='-30629' action='modify' visible='true'>
    35     <nd ref='-30590' />
    36     <nd ref='-30588' />
     40  <way id='-38198' action='modify'>
     41    <nd ref='-38184' />
     42    <nd ref='-38182' />
    3743    <tag k='highlight' v='yes' />
    3844    <tag k='test' v='style4' />
    3945  </way>
    40   <way id='-30630' action='modify' visible='true'>
    41     <nd ref='-30580' />
    42     <nd ref='-30578' />
     46  <way id='-38200' action='modify'>
     47    <nd ref='-38174' />
     48    <nd ref='-38172' />
    4349    <tag k='highlight' v='yes' />
    4450    <tag k='test' v='style3' />
    4551  </way>
    46   <way id='-30631' action='modify' visible='true'>
    47     <nd ref='-30570' />
    48     <nd ref='-30568' />
     52  <way id='-38202' action='modify'>
     53    <nd ref='-38164' />
     54    <nd ref='-38162' />
    4955    <tag k='highlight' v='yes' />
    5056    <tag k='test' v='style2' />
    5157  </way>
    52   <way id='-30632' action='modify' visible='true'>
    53     <nd ref='-30560' />
    54     <nd ref='-30558' />
     58  <way id='-38204' action='modify'>
     59    <nd ref='-38154' />
     60    <nd ref='-38152' />
    5561    <tag k='highlight' v='yes' />
    5662    <tag k='test' v='style1' />
    5763  </way>
    58   <way id='-30638' action='modify' visible='true'>
    59     <nd ref='-30596' />
    60     <nd ref='-30594' />
    61     <nd ref='-30592' />
     64  <way id='-38206' action='modify'>
     65    <nd ref='-38190' />
     66    <nd ref='-38188' />
     67    <nd ref='-38186' />
    6268    <tag k='test' v='style5' />
    6369  </way>
    64   <way id='-30640' action='modify' visible='true'>
    65     <nd ref='-30586' />
    66     <nd ref='-30584' />
    67     <nd ref='-30582' />
     70  <way id='-38208' action='modify'>
     71    <nd ref='-38180' />
     72    <nd ref='-38178' />
     73    <nd ref='-38176' />
    6874    <tag k='test' v='style4' />
    6975  </way>
    70   <way id='-30642' action='modify' visible='true'>
    71     <nd ref='-30576' />
    72     <nd ref='-30574' />
    73     <nd ref='-30572' />
     76  <way id='-38210' action='modify'>
     77    <nd ref='-38170' />
     78    <nd ref='-38168' />
     79    <nd ref='-38166' />
    7480    <tag k='test' v='style3' />
    7581  </way>
    76   <way id='-30644' action='modify' visible='true'>
    77     <nd ref='-30566' />
    78     <nd ref='-30564' />
    79     <nd ref='-30562' />
     82  <way id='-38212' action='modify'>
     83    <nd ref='-38160' />
     84    <nd ref='-38158' />
     85    <nd ref='-38156' />
    8086    <tag k='test' v='style2' />
    8187  </way>
    82   <way id='-30646' action='modify' visible='true'>
    83     <nd ref='-30556' />
    84     <nd ref='-30554' />
    85     <nd ref='-30552' />
     88  <way id='-38214' action='modify'>
     89    <nd ref='-38150' />
     90    <nd ref='-38148' />
     91    <nd ref='-38146' />
    8692    <tag k='test' v='style1' />
    8793  </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>
    88103</osm>
  • trunk/test/data/renderer/way-dashes/style.mapcss

    r11693 r12448  
    3535        dashes-background-opacity: .5;
    3636}
     37
     38way[test=out-of-screen] {
     39    width: 5;
     40    color: teal;
     41    opacity: 0.7;
     42        dashes: 18, 14;
     43        dashes-offset: 1;
     44        dashes-background-color: khaki;
     45        dashes-background-opacity: .8;
     46}
     47
Note: See TracChangeset for help on using the changeset viewer.