diff options
| author | Misko Hevery | 2010-01-25 23:49:52 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-01-25 23:49:52 -0800 |
| commit | a2540fd581f35e8f79240d827d2252da5798c3a2 (patch) | |
| tree | 35d814703e9edbb2c36d0864b2f8a317bba4d830 /test | |
| parent | ba9eef40cfbb6cd969d566b43fd9129642d01351 (diff) | |
| download | angular.js-a2540fd581f35e8f79240d827d2252da5798c3a2.tar.bz2 | |
fixes to make it pass on IE
Diffstat (limited to 'test')
| -rw-r--r-- | test/ApiTest.js | 2 | ||||
| -rw-r--r-- | test/BinderTest.js | 2 | ||||
| -rw-r--r-- | test/testabilityPatch.js | 5 |
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"; }; |
