From d71e7a7beb8b9d6113f019a87b01fc72a5fb7ccc Mon Sep 17 00:00:00 2001 From: Gregers Gram Rygg Date: Wed, 27 Jun 2012 16:49:59 +0200 Subject: [PATCH] Mock div.style through document.createElement hack instead of exposing method in vendorPrefix.js --- lib/OpenLayers/Util/vendorPrefix.js | 5 +-- tests/Util/vendorPrefix.html | 52 ++++++++++++----------------- 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/lib/OpenLayers/Util/vendorPrefix.js b/lib/OpenLayers/Util/vendorPrefix.js index bdcc2aba02..c6bf3fe72b 100644 --- a/lib/OpenLayers/Util/vendorPrefix.js +++ b/lib/OpenLayers/Util/vendorPrefix.js @@ -126,9 +126,6 @@ OpenLayers.Util.vendorPrefix = (function() { // used for testing cssCache: cssCache, - jsCache: jsCache, - _mockStyle: function(mock) { - divStyle = mock; - } + jsCache: jsCache }; }()); \ No newline at end of file diff --git a/tests/Util/vendorPrefix.html b/tests/Util/vendorPrefix.html index 7ff3a9d24d..924ae09c38 100644 --- a/tests/Util/vendorPrefix.html +++ b/tests/Util/vendorPrefix.html @@ -3,6 +3,14 @@ vendorPrefix.js Tests