diff options
| author | Misko Hevery | 2010-02-04 11:12:34 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-02-04 11:12:34 -0800 |
| commit | 302472f4fa50f995085ebf36b8990bedf3806973 (patch) | |
| tree | b15173d3510794e737d4b16a0e3e38ea3931b85f /test | |
| parent | 88b415a3dccefe80f52a05909e13b266a43939b4 (diff) | |
| download | angular.js-302472f4fa50f995085ebf36b8990bedf3806973.tar.bz2 | |
list formater always should return arry
Diffstat (limited to 'test')
| -rw-r--r-- | test/FormattersTest.js | 4 | ||||
| -rw-r--r-- | test/testabilityPatch.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/FormattersTest.js b/test/FormattersTest.js index b71e68dc..e91fd37f 100644 --- a/test/FormattersTest.js +++ b/test/FormattersTest.js @@ -7,8 +7,10 @@ TestCase("formatterTest", { testList: function() { assertEquals('a, b', angular.formatter.list.format(['a', 'b'])); + assertEquals('', angular.formatter.list.format([])); assertEquals(['abc', 'c'], angular.formatter.list.parse(" , abc , c ,,")); - assertEquals(null, angular.formatter.list.parse(null)); + assertEquals([], angular.formatter.list.parse("")); + assertEquals([], angular.formatter.list.parse(null)); }, testBoolean: function() { diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index d9aed6f2..44199b66 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -12,7 +12,7 @@ function noop(){} jstd = jstestdriver; swfobject = { - createSwf:function(){ + createSwf:function() { fail("must mock out swfobject.createSwf in test."); } }; @@ -33,7 +33,6 @@ function report(reportTest){ }); } - MockLocation = function() { this.url = "http://server"; }; |
