From 2a9669e1d853d4e18d2eb1f07e84ee5baec838c2 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 22 Apr 2010 15:50:20 -0700 Subject: working on jQuery passing tests --- test/testabilityPatch.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test') 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('; ') + ';"'; } -- cgit v1.2.3