From 7ef5e055afec5ad7f279bcc4bd70b9f069d87a95 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Thu, 22 Apr 2010 21:04:20 -0700
Subject: fix CI Build
---
test/BinderTest.js | 4 +++-
test/markupSpec.js | 10 ----------
test/testabilityPatch.js | 6 ------
3 files changed, 3 insertions(+), 17 deletions(-)
(limited to 'test')
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('');
});
- it('should process all bindings when we have leading space', function(){
- var e = jqLite(' {{a}}
{{b}}');
- if (sortedHtml(e).indexOf('{{') != 0) {
- // can only run this test if browser respects leading spaces
- compile(e);
- var space = msie ? '' + NBSP + '': ' ';
- expect(sortedHtml(scope.$element)).toEqual('' + space + '
');
- }
- });
-
});
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)));
}
--
cgit v1.2.3