aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorShyam Seshadri2010-08-12 02:42:04 +0800
committerShyam Seshadri2010-08-12 02:45:22 +0800
commitcf331050112ee973b9e8186dc4741028ca22f024 (patch)
treef8b66bc339ccf34700c4bcd73d233de0d4614e42 /test/testabilityPatch.js
parent04e92a875344fb675f27355a8bae7a22d0a6ae63 (diff)
downloadangular.js-cf331050112ee973b9e8186dc4741028ca22f024.tar.bz2
Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 5d0df780..e9a88b67 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -35,22 +35,25 @@ function childNode(element, index) {
}
extend(angular, {
- 'bind': bind,
+ 'element': jqLite,
'compile': compile,
+ 'scope': createScope,
'copy': copy,
- 'element': jqLite,
'extend': extend,
+ 'equals': equals,
'foreach': foreach,
+ 'noop':noop,
+ 'bind':bind,
+ 'toJson': toJson,
+ 'fromJson': fromJson,
'identity':identity,
'isUndefined': isUndefined,
'isDefined': isDefined,
- 'isObject': isObject,
'isString': isString,
'isFunction': isFunction,
+ 'isObject': isObject,
'isNumber': isNumber,
- 'isArray': isArray,
- 'noop':noop,
- 'scope': createScope
+ 'isArray': isArray
});