diff options
| author | Di Peng | 2011-07-14 18:28:15 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-07-17 22:19:08 -0700 | 
| commit | f9b4c9da648f81aef1fbee41d24822e420eb56f9 (patch) | |
| tree | 35d40aeda6d1aca27d4b283faf8d84a776b0a141 /src | |
| parent | 83ac1193f2322f71f314e7e160af46142b01a290 (diff) | |
| download | angular.js-f9b4c9da648f81aef1fbee41d24822e420eb56f9.tar.bz2 | |
refactor(docs): run e2e tests with and without jquery
- e2e tests will run index.html (without jquery) and with
index-jq.html(with jquery).
- many small changes to make e2e tests work withough JQuery as we
discover problems that were previously hidden by using real JQuery.
Diffstat (limited to 'src')
| -rw-r--r-- | src/directives.js | 9 | 
1 files changed, 2 insertions, 7 deletions
| diff --git a/src/directives.js b/src/directives.js index 00e6a1d7..cb368c13 100644 --- a/src/directives.js +++ b/src/directives.js @@ -539,19 +539,14 @@ angularDirective("ng:click", function(expression, element){        <form ng:submit="list.push(text);text='';" ng:init="list=[]">          Enter text and hit enter:          <input type="text" name="text" value="hello"/> +        <input type="submit" id="submit" value="Submit" />        </form>        <pre>list={{list}}</pre>       </doc:source>       <doc:scenario>         it('should check ng:submit', function(){           expect(binding('list')).toBe('list=[]'); -         element('.doc-example-live form input').click(); -         this.addFutureAction('submit from', function($window, $document, done) { -           $window.angular.element( -             $document.elements('.doc-example-live form')). -               trigger('submit'); -           done(); -         }); +         element('.doc-example-live #submit').click();           expect(binding('list')).toBe('list=["hello"]');         });       </doc:scenario> | 
