diff options
| author | Misko Hevery | 2010-04-22 15:50:20 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-22 15:50:20 -0700 |
| commit | 2a9669e1d853d4e18d2eb1f07e84ee5baec838c2 (patch) | |
| tree | 7f801ad292825b61514b2edf6d15f008c47a844f /test/testabilityPatch.js | |
| parent | d7416c4c823b9e74d0c725cffb6f333be9432fba (diff) | |
| download | angular.js-2a9669e1d853d4e18d2eb1f07e84ee5baec838c2.tar.bz2 | |
working on jQuery passing tests
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('; ') + ';"'; } |
