Permalink
Browse files

Update tests for noCoerce

  • Loading branch information...
1 parent 9d19a3e commit da50ee99be448b50a46756df5a5385f75b60f44b @tmcw tmcw committed Feb 1, 2012
@@ -9,7 +9,7 @@ describe('DoubleClickHandler', function() {
var template = 'http://{S}tile.openstreetmap.org/{Z}/{X}/{Y}.png';
var subdomains = [ '', 'a.', 'b.', 'c.' ];
- var provider = new MM.TemplatedMapProvider(template, subdomains);
+ var provider = new MM.TemplatedLayer(template, subdomains);
map = new MM.Map(div, provider, [
new MM.DoubleClickHandler()
@@ -9,7 +9,7 @@ describe('DragHandler', function() {
var template = 'http://{S}tile.openstreetmap.org/{Z}/{X}/{Y}.png';
var subdomains = [ '', 'a.', 'b.', 'c.' ];
- var provider = new MM.TemplatedMapProvider(template, subdomains);
+ var provider = new MM.TemplatedLayer(template, subdomains);
map = new MM.Map(div, provider, [
new MM.DragHandler()
@@ -2,7 +2,7 @@ describe('Layer', function() {
// Currently not testing subdomain-based templatedmapprovider, since
// the implementation should be kind of undefined.
it('layer can be created and destroyed', function() {
- var p = new MM.TemplatedMapProvider(
+ var p = new MM.TemplatedLayer(
'http://{S}.tile.openstreetmap.org/{Z}/{X}/{Y}.png', ['a']);
var l = new MM.Layer(p);
View
@@ -13,7 +13,7 @@ describe('Map', function() {
var template = 'http://{S}tile.openstreetmap.org/{Z}/{X}/{Y}.png';
var subdomains = [ '', 'a.', 'b.', 'c.' ];
- var provider = new MM.TemplatedMapProvider(template, subdomains);
+ var provider = new MM.TemplatedLayer(template, subdomains);
map = new MM.Map(div, provider, new MM.Point(400, 400));
map.setCenterZoom(new MM.Location(0, 0), 0);
@@ -9,7 +9,7 @@ describe('MouseWheelHandler', function() {
var template = 'http://{S}tile.openstreetmap.org/{Z}/{X}/{Y}.png';
var subdomains = [ '', 'a.', 'b.', 'c.' ];
- var provider = new MM.TemplatedMapProvider(template, subdomains);
+ var provider = new MM.TemplatedLayer(template, subdomains);
map = new MM.Map(div, provider, [
new MM.MouseWheelHandler()

0 comments on commit da50ee9

Please sign in to comment.