mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
docs(compiler): update the compiler docs
This commit is contained in:
@@ -36,6 +36,7 @@ describe('module loader', function() {
|
||||
factory('fk', 'fv').
|
||||
value('k', 'v').
|
||||
filter('f', 'ff').
|
||||
directive('d', 'dd').
|
||||
config('init2').
|
||||
run('runBlock')).toBe(myModule);
|
||||
|
||||
@@ -46,6 +47,7 @@ describe('module loader', function() {
|
||||
['$provide', 'factory', ['fk', 'fv'] ],
|
||||
['$provide', 'value', ['k', 'v'] ],
|
||||
['$filterProvider', 'register', ['f', 'ff'] ],
|
||||
['$compileProvider', 'directive', ['d', 'dd'] ],
|
||||
['$injector', 'invoke', ['init2'] ]
|
||||
]);
|
||||
expect(myModule._runBlocks).toEqual(['runBlock']);
|
||||
|
||||
@@ -543,6 +543,13 @@ describe("angular.scenario.dsl", function() {
|
||||
expect(_jQuery('input[ng\\:model="test.input"]').val()).toEqual('foo');
|
||||
});
|
||||
|
||||
it('should change value in text input in dash form', function() {
|
||||
doc.append('<input ng-model="test.input" value="something">');
|
||||
var chain = $root.dsl.input('test.input');
|
||||
chain.enter('foo');
|
||||
expect(_jQuery('input[ng-model="test.input"]').val()).toEqual('foo');
|
||||
});
|
||||
|
||||
it('should return error if no input exists', function() {
|
||||
var chain = $root.dsl.input('test.input');
|
||||
chain.enter('foo');
|
||||
|
||||
Reference in New Issue
Block a user