@@ -4,7 +4,7 @@ Feature: Parse <Style>
44 I need <Style> tag to be parsed as a Style object
55
66 Scenario : Style with a Balloon
7- Given a KML document with a Document in "tests/kml/document .kml"
7+ Given a KML document with a Document in "tests/kml/style .kml"
88 When I parse the KML document
99 Then I should get a KmlDocument object containing one feature 'LibKml\D omain\F eature\C ontainer\D ocument'
1010 And the feature should contain a Style object with the following properties:
@@ -13,13 +13,15 @@ Feature: Parse <Style>
1313 | targetId | target -1 |
1414 And the Style should contain a BalloonStyle with the following properties:
1515 | property | value |
16- | bgColor | ffffffbb |
17- | textColor | ff00aabb |
1816 | text | $[name ] |
1917 | displayMode | random |
18+ And the BalloonStyle should contain the following property colors:
19+ | property | value |
20+ | bgColor | ffffffbb |
21+ | textColor | ff00aabb |
2022
2123 Scenario : Style with a IconStyle
22- Given a KML document with a Document in "tests/kml/document .kml"
24+ Given a KML document with a Document in "tests/kml/style .kml"
2325 When I parse the KML document
2426 Then I should get a KmlDocument object containing one feature 'LibKml\D omain\F eature\C ontainer\D ocument'
2527 And the feature should contain a Style object with the following properties:
@@ -28,13 +30,15 @@ Feature: Parse <Style>
2830 | targetId | target -1 |
2931 And the Style should contain a IconStyle with the following properties:
3032 | property | value |
31- | color | ff00bbcc |
3233 | colorMode | random |
33- | scale | 0 . 5 |
34+ | scale | 1 . 39 |
3435 | heading | 2 .56 |
36+ And the IconStyle should contain the following property colors:
37+ | property | value |
38+ | color | a1ff00ff |
3539
3640 Scenario : Style with a LabelStyle
37- Given a KML document with a Document in "tests/kml/document .kml"
41+ Given a KML document with a Document in "tests/kml/style .kml"
3842 When I parse the KML document
3943 Then I should get a KmlDocument object containing one feature 'LibKml\D omain\F eature\C ontainer\D ocument'
4044 And the feature should contain a Style object with the following properties:
@@ -43,13 +47,14 @@ Feature: Parse <Style>
4347 | targetId | target -1 |
4448 And the Style should contain a LabelStyle with the following properties:
4549 | property | value |
46- | color | ffaabbcc |
4750 | colorMode | random |
48- | scale | 0 .75 |
49- | heading | 56 .42 |
51+ | scale | 1 .5 |
52+ And the LabelStyle should contain the following property colors:
53+ | property | value |
54+ | color | 7fffaaff |
5055
5156 Scenario : Style with a LineStyle
52- Given a KML document with a Document in "tests/kml/document .kml"
57+ Given a KML document with a Document in "tests/kml/style .kml"
5358 When I parse the KML document
5459 Then I should get a KmlDocument object containing one feature 'LibKml\D omain\F eature\C ontainer\D ocument'
5560 And the feature should contain a Style object with the following properties:
@@ -58,12 +63,14 @@ Feature: Parse <Style>
5863 | targetId | target -1 |
5964 And the Style should contain a LineStyle with the following properties:
6065 | property | value |
61- | color | ffddbbcc |
6266 | colorMode | random |
6367 | width | 2 .75 |
68+ And the LineStyle should contain the following property colors:
69+ | property | value |
70+ | color | ffddbbcc |
6471
6572 Scenario : Style with a ListStyle
66- Given a KML document with a Document in "tests/kml/document .kml"
73+ Given a KML document with a Document in "tests/kml/style .kml"
6774 When I parse the KML document
6875 Then I should get a KmlDocument object containing one feature 'LibKml\D omain\F eature\C ontainer\D ocument'
6976 And the feature should contain a Style object with the following properties:
@@ -73,10 +80,12 @@ Feature: Parse <Style>
7380 And the Style should contain a ListStyle with the following properties:
7481 | property | value |
7582 | listItemType | radioFolder |
83+ And the ListStyle should contain the following property colors:
84+ | property | value |
7685 | bgColor | 55aabbcc |
7786
7887 Scenario : Style with a PolyStyle
79- Given a KML document with a Document in "tests/kml/document .kml"
88+ Given a KML document with a Document in "tests/kml/style .kml"
8089 When I parse the KML document
8190 Then I should get a KmlDocument object containing one feature 'LibKml\D omain\F eature\C ontainer\D ocument'
8291 And the feature should contain a Style object with the following properties:
@@ -85,7 +94,9 @@ Feature: Parse <Style>
8594 | targetId | target -1 |
8695 And the Style should contain a PolyStyle with the following properties:
8796 | property | value |
88- | color | ffddaa00 |
8997 | colorMode | random |
9098 | fill | 0 |
9199 | outline | 0 |
100+ And the PolyStyle should contain the following property colors:
101+ | property | value |
102+ | color | ffddaa00 |
0 commit comments