diff options
| author | Igor Minar | 2011-09-16 00:09:33 +0200 | 
|---|---|---|
| committer | Igor Minar | 2011-09-16 02:44:35 +0200 | 
| commit | 3ace81b92ad00da73c89e7536ac7aa7c6681e30a (patch) | |
| tree | db2fc914f625a0f3acaf0392cc5318d4156ec48a /src/filters.js | |
| parent | 9acf45127e96051e23f28af7650778fe444d8c86 (diff) | |
| download | angular.js-3ace81b92ad00da73c89e7536ac7aa7c6681e30a.tar.bz2 | |
fix(e2e tests): use prop() instead of attr() and quote attributes
Because of changes in jQuery, we need to use element().prop() instead of element().attr() to retrieve className and other element properties.
Additionally all attribute selectors (e.g. input[name=value]) must have value quoted if it contains dots (".").
Diffstat (limited to 'src/filters.js')
| -rw-r--r-- | src/filters.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/filters.js b/src/filters.js index c39e02f9..6a136f92 100644 --- a/src/filters.js +++ b/src/filters.js @@ -61,7 +61,7 @@           input('amount').enter('-1234');           expect(binding('amount | currency')).toBe('($1,234.00)');           expect(binding('amount | currency:"USD$"')).toBe('(USD$1,234.00)'); -         expect(element('.doc-example-live .ng-binding').attr('className')). +         expect(element('.doc-example-live .ng-binding').prop('className')).             toMatch(/ng-format-negative/);         });       </doc:scenario> | 
