aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorShyam Seshadri2010-08-11 11:42:04 -0700
committerShyam Seshadri2010-08-11 11:42:04 -0700
commitb27fb8a6448b7c8d59b533fe2df9497170fbaa70 (patch)
treee211cd3499813bc144bb94a2206dce958d01863b /test/testabilityPatch.js
parent567341c10fc7f74d5333f27514bb2201f1dbee42 (diff)
downloadangular.js-b27fb8a6448b7c8d59b533fe2df9497170fbaa70.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
});