aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ApiTest.js2
-rw-r--r--test/BinderTest.js2
-rw-r--r--test/testabilityPatch.js5
3 files changed, 4 insertions, 5 deletions
diff --git a/test/ApiTest.js b/test/ApiTest.js
index 250a27b1..fc9190ed 100644
--- a/test/ApiTest.js
+++ b/test/ApiTest.js
@@ -204,7 +204,7 @@ ApiTest.prototype.testQuoteString = function(){
};
ApiTest.prototype.testQuoteStringBug = function(){
- assertEquals(angular.String.quote('"7\\\\\\\"7"', "7\\\"7"));
+ assertEquals('"7\\\\\\\"7"', angular.String.quote("7\\\"7"));
};
ApiTest.prototype.testQuoteUnicode = function(){
diff --git a/test/BinderTest.js b/test/BinderTest.js
index 6ef46fae..cf2fa31a 100644
--- a/test/BinderTest.js
+++ b/test/BinderTest.js
@@ -401,7 +401,7 @@ BinderTest.prototype.testRepeaterUpdateBindings = function(){
};
BinderTest.prototype.testRepeaterContentDoesNotBind = function(){
- var a = compile('<ul><LI ng-repeat="item in model.items"><span ng-bind="item.a"/></li></ul>');
+ var a = compile('<ul><LI ng-repeat="item in model.items"><span ng-bind="item.a"></span></li></ul>');
a.scope.set('model', {items:[{a:"A"}]});
a.binder.updateView();
assertEquals('<ul>' +
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 8fac7598..d9aed6f2 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -1,5 +1,3 @@
-TestCase = function(name) { return jstestdriver.testCaseManager.TestCase(name); };
-
HIDDEN = jQuery.browser.msie ?
'' :
jQuery.browser.safari ?
@@ -7,7 +5,7 @@ HIDDEN = jQuery.browser.msie ?
' style="display: none;"';
msie = jQuery.browser.msie;
-alert = function(msg) {jstestdriver.console.log("ALERT: " + msg);};
+//alert = function(msg) {jstestdriver.console.log("ALERT: " + msg);};
function noop(){}
@@ -35,6 +33,7 @@ function report(reportTest){
});
}
+
MockLocation = function() {
this.url = "http://server";
};