diff options
| -rw-r--r-- | test/BinderTest.js | 4 | ||||
| -rw-r--r-- | test/markupSpec.js | 10 | ||||
| -rw-r--r-- | test/testabilityPatch.js | 6 |
3 files changed, 3 insertions, 17 deletions
diff --git a/test/BinderTest.js b/test/BinderTest.js index 76561dc3..ecdd506f 100644 --- a/test/BinderTest.js +++ b/test/BinderTest.js @@ -436,7 +436,9 @@ BinderTest.prototype.testActionOnAHrefThrowsError = function(){ }; var input = c.node; input.trigger('click'); - assertEquals({a:"abc", b:2}, fromJson(input.attr('ng-exception'))); + var error = fromJson(input.attr('ng-exception')); + assertEquals("abc", error.a); + assertEquals(2, error.b); assertTrue("should have an error class", input.hasClass('ng-exception')); // TODO: I think that exception should never get cleared so this portion of test makes no sense diff --git a/test/markupSpec.js b/test/markupSpec.js index b2d04fcd..8358b673 100644 --- a/test/markupSpec.js +++ b/test/markupSpec.js @@ -47,16 +47,6 @@ describe("markups", function(){ expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('<select name="x"><option value="a">a</option></select>'); }); - it('should process all bindings when we have leading space', function(){ - var e = jqLite('<a> {{a}}<br/>{{b}}</a>'); - if (sortedHtml(e).indexOf('<a>{{') != 0) { - // can only run this test if browser respects leading spaces - compile(e); - var space = msie ? '<span>' + NBSP + '</span>': ' '; - expect(sortedHtml(scope.$element)).toEqual('<a>' + space + '<span ng-bind="a"></span><br></br><span ng-bind="b"></span></a>'); - } - }); - }); diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index b05770c7..1e6ed970 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -1,12 +1,6 @@ jstd = jstestdriver; dump = bind(jstd.console, jstd.console.log); -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))); } |
