docs(compiler): update the compiler docs

This commit is contained in:
Misko Hevery
2011-12-14 02:55:31 +01:00
parent e2b1d9e994
commit 4804c83b7d
50 changed files with 862 additions and 788 deletions

View File

@@ -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']);

View File

@@ -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');