diff options
| author | Misko Hevery | 2011-12-14 02:55:31 +0100 | 
|---|---|---|
| committer | Misko Hevery | 2012-01-25 11:53:59 -0800 | 
| commit | 4804c83b7db5770d5d02eea9eea4cc012b4aa524 (patch) | |
| tree | be5ae1743179704cc1638f186cddba8d6e3fa37d /test | |
| parent | e2b1d9e994e50bcd01d237302a3357bc7ebb6fa5 (diff) | |
| download | angular.js-4804c83b7db5770d5d02eea9eea4cc012b4aa524.tar.bz2 | |
docs(compiler): update the compiler docs
Diffstat (limited to 'test')
| -rw-r--r-- | test/loaderSpec.js | 2 | ||||
| -rw-r--r-- | test/scenario/dslSpec.js | 7 | 
2 files changed, 9 insertions, 0 deletions
| diff --git a/test/loaderSpec.js b/test/loaderSpec.js index ac48c34e..f983c08b 100644 --- a/test/loaderSpec.js +++ b/test/loaderSpec.js @@ -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']); diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js index c757d8a4..d085256c 100644 --- a/test/scenario/dslSpec.js +++ b/test/scenario/dslSpec.js @@ -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'); | 
