aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisko Hevery2010-04-22 21:04:20 -0700
committerMisko Hevery2010-04-22 21:04:20 -0700
commit7ef5e055afec5ad7f279bcc4bd70b9f069d87a95 (patch)
tree089c7352415b7e762f3fa48b501174f8631a9a02
parentfe434307d15d697a5ffade51bad068f6443965b2 (diff)
downloadangular.js-7ef5e055afec5ad7f279bcc4bd70b9f069d87a95.tar.bz2
fix CI Build
-rw-r--r--test/BinderTest.js4
-rw-r--r--test/markupSpec.js10
-rw-r--r--test/testabilityPatch.js6
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 = '&nbsp;';
- return msie ? div.innerText : div.textContent;
-})();
-
function nakedExpect(obj) {
return expect(angular.fromJson(angular.toJson(obj)));
}