Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating tests and little css formatting

  • Loading branch information...
commit 3afec74f80c1df9ac12d206b14d91936b9da1a29 1 parent 063bc6b
@tristen tristen authored
View
4 test/spec/attribution.js
@@ -19,11 +19,11 @@ describe('attribution', function() {
});
it('can have its content set', function() {
- expect($('.wax-attribution', map.parent).text()).toEqual('42');
+ expect($('.map-attribution', map.parent).text()).toEqual('42');
});
it('returns its element', function() {
- expect(attribution.element()).toEqual($('.wax-attribution', map.parent)[0]);
+ expect(attribution.element()).toEqual($('.map-attribution', map.parent)[0]);
});
it('can be appended to an element', function() {
View
12 test/spec/fullscreen.js
@@ -14,14 +14,14 @@ describe('fullscreen', function() {
});
it('makes the map fullscreen', function() {
- $('.wax-fullscreen', map.parent).click();
- expect($(map.parent).hasClass('wax-fullscreen-map')).toEqual(true);
+ $('.map-fullscreen', map.parent).click();
+ expect($(map.parent).hasClass('map-fullscreen-map')).toEqual(true);
});
it('can toggle fullscreen', function() {
- $('.wax-fullscreen', map.parent).click();
- expect($(map.parent).hasClass('wax-fullscreen-map')).toEqual(true);
- $('.wax-fullscreen', map.parent).click();
- expect($(map.parent).hasClass('wax-fullscreen-map')).toEqual(false);
+ $('.map-fullscreen', map.parent).click();
+ expect($(map.parent).hasClass('map-fullscreen-map')).toEqual(true);
+ $('.map-fullscreen', map.parent).click();
+ expect($(map.parent).hasClass('map-fullscreen-map')).toEqual(false);
});
});
View
22 theme/controls.css
@@ -1,4 +1,4 @@
-a.map-fullscreen {
+.map-fullscreen {
/* TODO: sprite-based fullscreen button */
position:absolute;
top:5px;
@@ -20,19 +20,19 @@ a.map-fullscreen {
-moz-box-shadow:rgba(0,0,0,0.1) 0 1px 3px;
-webkit-box-shadow:rgba(0,0,0,0.1) 0 1px 3px;
}
-
+
/* ### Zoomer, close buttons, share ### */
- .close,
- .zoomer {
- text-indent:-9999px;
+.close,
+.zoomer {
+ text-indent:-999em;
background-image:url(map-controls.png);
background-position:60px 60px;
background-repeat:no-repeat;
overflow:hidden;
}
- .close:active,
- .zoomer:active {
+.close:active,
+.zoomer:active {
border-color:#bbb;
background-color:#ddd;
box-shadow:inset rgba(0,0,0,0.1) 0 1px 3px;
@@ -40,7 +40,7 @@ a.map-fullscreen {
-webkit-box-shadow:inset rgba(0,0,0,0.1) 0 1px 3px;
}
- .close {
+.close {
top:4px;
right:4px;
width:18px;
@@ -48,7 +48,7 @@ a.map-fullscreen {
background-position:-6px -6px;
}
- .zoomer {
+.zoomer {
width:28px;
height:28px;
top:10px;
@@ -56,7 +56,7 @@ a.map-fullscreen {
z-index:2;
}
- .zoomin {
+.zoomin {
background-position:-31px -1px;
left:39px;
border-radius:0 3px 3px 0;
@@ -64,7 +64,7 @@ a.map-fullscreen {
-webkit-border-radius:0 3px 3px 0;
}
- .zoomout {
+.zoomout {
background-position:-61px -1px;
border-radius:3px 0 0 3px;
-moz-border-radius:3px 0 0 3px;
Please sign in to comment.
Something went wrong with that request. Please try again.