Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7ef5e05

Browse files
committed
fix CI Build
1 parent fe43430 commit 7ef5e05

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

test/BinderTest.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ BinderTest.prototype.testActionOnAHrefThrowsError = function(){
436436
};
437437
var input = c.node;
438438
input.trigger('click');
439-
assertEquals({a:"abc", b:2}, fromJson(input.attr('ng-exception')));
439+
var error = fromJson(input.attr('ng-exception'));
440+
assertEquals("abc", error.a);
441+
assertEquals(2, error.b);
440442
assertTrue("should have an error class", input.hasClass('ng-exception'));
441443

442444
// TODO: I think that exception should never get cleared so this portion of test makes no sense

test/markupSpec.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ describe("markups", function(){
4747
expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('<select name="x"><option value="a">a</option></select>');
4848
});
4949

50-
it('should process all bindings when we have leading space', function(){
51-
var e = jqLite('<a> {{a}}<br/>{{b}}</a>');
52-
if (sortedHtml(e).indexOf('<a>{{') != 0) {
53-
// can only run this test if browser respects leading spaces
54-
compile(e);
55-
var space = msie ? '<span>' + NBSP + '</span>': ' ';
56-
expect(sortedHtml(scope.$element)).toEqual('<a>' + space + '<span ng-bind="a"></span><br></br><span ng-bind="b"></span></a>');
57-
}
58-
});
59-
6050
});
6151

6252

test/testabilityPatch.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
jstd = jstestdriver;
22
dump = bind(jstd.console, jstd.console.log);
33

4-
var NBSP = (function(){
5-
var div = document.createElement('div');
6-
div.innerHtml = '&nbsp;';
7-
return msie ? div.innerText : div.textContent;
8-
})();
9-
104
function nakedExpect(obj) {
115
return expect(angular.fromJson(angular.toJson(obj)));
126
}

0 commit comments

Comments
 (0)