aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/FormattersTest.js4
-rw-r--r--test/testabilityPatch.js3
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";
};