[ol.layer.TileLayer] use ol.error

This commit is contained in:
Éric Lemoine
2012-06-22 18:46:52 +02:00
parent a26913f26e
commit 5dc156995a
2 changed files with 10 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ describe('ol.layer.TileLayer', function() {
it('throws an error or return null', function() {
var origin;
if (goog.DEBUG) {
if (ol.error.VERBOSE_ERRORS) {
expect(function() {
origin = layer.getTileOrigin();
}).toThrow();
@@ -118,7 +118,7 @@ describe('ol.layer.TileLayer', function() {
});
it('returns the expected origin', function() {
if (goog.DEBUG) {
if (ol.error.VERBOSE_ERRORS) {
expect(function() {
var origin = layer.getTileOrigin();
}).toThrow();