Skip to content

Commit

Permalink
Fixed failing test case and added some assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwittenbrink committed Oct 5, 2015
1 parent 6ffb77a commit d3fbafc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
return;
}
this._mutationObserver = new MutationObserver( this._updateMarkers.bind(this));
this._mutationObserver.observe(this, {
this._mutationObserver.observe(this.$.selector, {
childList: true
});
},
Expand Down
4 changes: 3 additions & 1 deletion test/google-map-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<google-map id="map1"></google-map>
<google-map id="map2" latitude="37.555" longitude="-122.555"></google-map>
<google-map id="map3" disable-zoom zoom="11" min-zoom="10" max-zoom="11" no-auto-tilt fit-to-markers></google-map>
<google-map id="map3" disable-zoom zoom="11" min-zoom="10" max-zoom="11" no-auto-tilt fit-to-markers single-info-window></google-map>

<div id='newmap'>
</div>
Expand Down Expand Up @@ -65,6 +65,7 @@
assert.isUndefined(map.maxZoom);
assert.isUndefined(map.minZoom);
assert.isFalse(map.disableZoom);
assert.isFalse(map.singleInfoWindow);
assert.equal(map.latitude, 37.77493);
assert.equal(map.longitude, -122.41942);
assert.equal(map.mapType, 'roadmap');
Expand All @@ -78,6 +79,7 @@
assert.equal(map3.maxZoom, map3.map.maxZoom);
assert.equal(map3.minZoom, map3.map.minZoom);
assert.isTrue(map3.disableZoom);
assert.isTrue(map3.singleInfoWindow);

done();
});
Expand Down
1 change: 1 addition & 0 deletions test/marker-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
assert.equal(markerEl.zIndex, 0);
assert.equal(markerEl.latitude, 37.779);
assert.equal(markerEl.longitude, -122.3892);
assert.isFalse(markerEl.open);
assert.isNull(markerEl.offsetParent,
'google-map-marker should be display: none');
});
Expand Down

0 comments on commit d3fbafc

Please sign in to comment.