mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-05 21:54:42 +00:00
Merge branch 'master' of github.com:angular/angular.js
This commit is contained in:
commit
0c2dd09e78
4 changed files with 20 additions and 9 deletions
|
|
@ -8,9 +8,9 @@ load:
|
||||||
- src/Angular.js
|
- src/Angular.js
|
||||||
- src/JSON.js
|
- src/JSON.js
|
||||||
- src/*.js
|
- src/*.js
|
||||||
|
- test/testabilityPatch.js
|
||||||
- src/scenario/Runner.js
|
- src/scenario/Runner.js
|
||||||
- src/scenario/*.js
|
- src/scenario/*.js
|
||||||
- test/testabilityPatch.js
|
|
||||||
- test/angular-mocks.js
|
- test/angular-mocks.js
|
||||||
- test/scenario/*.js
|
- test/scenario/*.js
|
||||||
- test/*.js
|
- test/*.js
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,4 @@ Matcher.addMatcher = function(name, matcher) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Matcher.addMatcher('toEqual', function(a,b) { return a == b; });
|
Matcher.addMatcher('toEqual', angular.equals);
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,12 @@ describe('Matcher', function () {
|
||||||
expect(e).toEqual('Expected 456 but was 123');
|
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();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -35,22 +35,25 @@ function childNode(element, index) {
|
||||||
}
|
}
|
||||||
|
|
||||||
extend(angular, {
|
extend(angular, {
|
||||||
'bind': bind,
|
|
||||||
'compile': compile,
|
|
||||||
'copy': copy,
|
|
||||||
'element': jqLite,
|
'element': jqLite,
|
||||||
|
'compile': compile,
|
||||||
|
'scope': createScope,
|
||||||
|
'copy': copy,
|
||||||
'extend': extend,
|
'extend': extend,
|
||||||
|
'equals': equals,
|
||||||
'foreach': foreach,
|
'foreach': foreach,
|
||||||
|
'noop':noop,
|
||||||
|
'bind':bind,
|
||||||
|
'toJson': toJson,
|
||||||
|
'fromJson': fromJson,
|
||||||
'identity':identity,
|
'identity':identity,
|
||||||
'isUndefined': isUndefined,
|
'isUndefined': isUndefined,
|
||||||
'isDefined': isDefined,
|
'isDefined': isDefined,
|
||||||
'isObject': isObject,
|
|
||||||
'isString': isString,
|
'isString': isString,
|
||||||
'isFunction': isFunction,
|
'isFunction': isFunction,
|
||||||
|
'isObject': isObject,
|
||||||
'isNumber': isNumber,
|
'isNumber': isNumber,
|
||||||
'isArray': isArray,
|
'isArray': isArray
|
||||||
'noop':noop,
|
|
||||||
'scope': createScope
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue