Skip to content

Commit d14e354

Browse files
committed
Implementing acceptance tests
1 parent df2a111 commit d14e354

5 files changed

Lines changed: 13 additions & 23 deletions

File tree

features/read/kml/parse_ground_overlay.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Feature: Parse <GroundOverlay>
1010
And the GroundOverlay should contain the following properties:
1111
| property | value |
1212
| name | Large-scale overlay on terrain |
13-
| visibility | true |
13+
| visibility | false |

features/read/kml/parse_network_link.feature

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ Feature: Parse <NetworkLink>
66
Scenario:
77
Given a KML document with a NetworkLink in "tests/kml/network-link.kml"
88
When I parse the KML document
9-
Then I should get a KmlDocument object containing one 'LibKml\Domain\Feature\Overlay\NetworkLink'
9+
Then I should get a KmlDocument object containing one 'LibKml\Domain\Feature\NetworkLink'
1010
And the NetworkLink should contain the following properties:
1111
| property | value |
12-
| id | networkLink1 |
13-
| targetId | target1 |
14-
| name | My office |
15-
| visibility | 1 |
16-
| address | Blackfriards 240 |
17-
| phoneNumber | tel:+44 7890123456789 |
18-
| snippet | Office location |
19-
| styleUrl | #myIconStyle |
12+
| name | Open NetworkLink |
13+
| open | true |

features/read/kml/parse_network_link_control.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: Parse <NetworkLinkControl>
66
Scenario:
77
Given a KML document with a NetworkLinkControl in "tests/kml/network-link-control.kml"
88
When I parse the KML document
9-
Then I should get a KmlDocument object containing one NetworkLinkControl
9+
Then I should get a KmlDocument object containing one 'LibKml\Domain\FieldType\NetworkLinkControl'
1010
And the NetworkLinkControl should contain the following properties:
1111
| property | value |
1212
| minRefreshPeriod | 60 |

features/read/kml/parse_placemark.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Feature: Parse <Placemark>
1212
| id | placemark1 |
1313
| targetId | target1 |
1414
| name | My office |
15-
| visibility | 1 |
15+
| visibility | true |
1616
| address | Blackfriards 240 |
1717
| phoneNumber | tel:+44 7890123456789 |
1818
| snippet | Office location |

tests/kml/network-link.kml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<kml xmlns="http://www.opengis.net/kml/2.2">
3-
<Document>
4-
<name>Open Document</name>
3+
<NetworkLink>
4+
<name>Open NetworkLink</name>
55
<open>1</open>
6-
<NetworkLink>
7-
<name>Open NetworkLink</name>
8-
<open>1</open>
9-
<description>NetworkLink open to fetched content</description>
10-
<Link>
11-
<href>placemark.kml</href>
12-
</Link>
13-
</NetworkLink>
14-
</Document>
6+
<description>NetworkLink open to fetched content</description>
7+
<Link>
8+
<href>placemark.kml</href>
9+
</Link>
10+
</NetworkLink>
1511
</kml>

0 commit comments

Comments
 (0)