diff options
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index a2d67923..e5eef63e 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -1,7 +1,11 @@ jstd = jstestdriver; dump = bind(jstd.console, jstd.console.log); -var NBSP = jqLite(' ').text(); +var NBSP = (function(){ + var div = document.createElement('div'); + div.innerHtml = ' '; + return msie ? div.innerText : div.textContent; +})(); function nakedExpect(obj) { return expect(angular.fromJson(angular.toJson(obj))); @@ -82,6 +86,12 @@ function sortedHtml(element) { } } style.sort(); + var tmp = style; + style = []; + foreach(tmp, function(value){ + if (!value.match(/^max[^\-]/)) + style.push(value); + }); if (style.length) { html += ' style="' + style.join('; ') + ';"'; } |
