Merge branch 'master' of github.com:angular/angular.js

This commit is contained in:
Misko Hevery
2010-08-11 12:04:11 -07:00
4 changed files with 20 additions and 9 deletions

View File

@@ -27,4 +27,12 @@ describe('Matcher', function () {
expect(e).toEqual('Expected 456 but was 123');
}
});
it('should correctly match arrays', function() {
var future = $scenario.addFuture('Calculate first future', function(done) {
done(['a', 'b']);
});
matcher = new Matcher(this, future);
matcher.toEqual(['a', 'b']);
executeFutures();
});
});

View File

@@ -35,22 +35,25 @@ function childNode(element, index) {
}
extend(angular, {
'bind': bind,
'compile': compile,
'copy': copy,
'element': jqLite,
'compile': compile,
'scope': createScope,
'copy': copy,
'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
});