Removing unused image load error handling code. r=fredj (closes #3420)

This commit is contained in:
ahocevar
2011-10-05 14:51:22 -04:00
parent 4c610135fd
commit 91cd42bfe6
4 changed files with 8 additions and 122 deletions
-15
View File
@@ -254,21 +254,6 @@
}
function test_Util_imageLoadError(t) {
t.plan(2);
var img = OpenLayers.Util.createImage(null, null, null, null, null, null, null, false);
// mock up image load failure
img._attempts = OpenLayers.IMAGE_RELOAD_ATTEMPTS + 1;
OpenLayers.Util.onImageLoadError.call(img);
t.ok(OpenLayers.Element.hasClass(img, 'olImageLoadError'), 'broken image has class olImageLoadError');
// mock up image load success
OpenLayers.Util.onImageLoad.call(img);
t.ok(!OpenLayers.Element.hasClass(img, 'olImageLoadError'), 'good image does not have class olImageLoadError');
}
function test_Util_applyDefaults(t) {
t.plan(12);