Included leaflet.css in html instead of TileLayerSpec.js

This commit is contained in:
bennlich 2014-07-31 23:43:14 -06:00
parent 609386397b
commit 4eb033c719
2 changed files with 1 additions and 8 deletions

View File

@ -4,6 +4,7 @@
<meta charset="utf-8">
<title>Leaflet Spec Runner</title>
<link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css">
<link rel="stylesheet" type="text/css" href="../dist/leaflet.css">
</head>
<body>
<div id="mocha"></div>

View File

@ -110,14 +110,6 @@ describe('TileLayer', function () {
var tileUrl1 = 'http://{s}.tile.osm.org/{z}/{x}/{y}.png',
tileUrl2 = 'http://{s}.tile.stamen.com/toner/{z}/{x}/{y}.png';
// Inject Leaflet css
var head = document.getElementsByTagName("head")[0],
link = document.createElement("link");
link.href = "../dist/leaflet.css";
link.type = "text/css";
link.rel = "stylesheet";
head.appendChild(link);
// Add map div to DOM. The map panning tests do not work reliably unless
// the Leaflet map is properly styled and part of the DOM
var mapDiv = document.createElement('div');