Merge branch 'master' of github.com:openlayers/ol3 into vector
This commit is contained in:
@@ -22,8 +22,11 @@ With PhantomJS installed, and assuming phantomjs is in the PATH:
|
||||
|
||||
(Works with PhantomJS 1.6.1, untested with other versions.)
|
||||
|
||||
This command can also be run by doing `make test` at the root of ol3.
|
||||
This command can also be run by doing `./build.py test` at the root of ol3.
|
||||
|
||||
Make sure that the polvr web server is running (`./build.py serve`), otherwise
|
||||
you will most likely see something like `0 specs, 0 failures in 0.001s.`.
|
||||
|
||||
Tip for TDD'ers: to make PhantomJS run the test suite continuously each time
|
||||
a spec file is changed you can use nosier (http://pypi.python.org/pypi/nosier)
|
||||
and do `nosier -p test -p src "make test"`.
|
||||
and do `nosier -p test -p src "./build.py test"`.
|
||||
@@ -220,12 +220,9 @@ goog.inherits(ol.test.source.MockTileSource, ol.source.TileSource);
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.test.source.MockTileSource.prototype.getTile = function(tileCoord) {
|
||||
var tile = new ol.Tile(tileCoord);
|
||||
var key = tileCoord.toString();
|
||||
if (this.loaded_[key]) {
|
||||
tile.state = ol.TileState.LOADED;
|
||||
}
|
||||
return tile;
|
||||
var tileState = this.loaded_[key] ? ol.TileState.LOADED : ol.TileState.IDLE;
|
||||
return new ol.Tile(tileCoord, tileState);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user