aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorIgor Minar2011-09-16 00:09:33 +0200
committerIgor Minar2011-09-16 02:44:35 +0200
commit3ace81b92ad00da73c89e7536ac7aa7c6681e30a (patch)
treedb2fc914f625a0f3acaf0392cc5318d4156ec48a /src/Angular.js
parent9acf45127e96051e23f28af7650778fe444d8c86 (diff)
downloadangular.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/Angular.js')
-rw-r--r--src/Angular.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 49a30c07..367a7752 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -613,8 +613,8 @@ function isLeafNode (node) {
* </doc:source>
* <doc:scenario>
it('should print that initialy the form object is NOT equal to master', function() {
- expect(element('.doc-example-live input[name=master.salutation]').val()).toBe('Hello');
- expect(element('.doc-example-live input[name=master.name]').val()).toBe('world');
+ expect(element('.doc-example-live input[name="master.salutation"]').val()).toBe('Hello');
+ expect(element('.doc-example-live input[name="master.name"]').val()).toBe('world');
expect(element('.doc-example-live span').css('display')).toBe('inline');
});
@@ -705,8 +705,8 @@ function copy(source, destination){
* </doc:source>
* <doc:scenario>
it('should print that initialy greeting is equal to the hardcoded value object', function() {
- expect(element('.doc-example-live input[name=greeting.salutation]').val()).toBe('Hello');
- expect(element('.doc-example-live input[name=greeting.name]').val()).toBe('world');
+ expect(element('.doc-example-live input[name="greeting.salutation"]').val()).toBe('Hello');
+ expect(element('.doc-example-live input[name="greeting.name"]').val()).toBe('world');
expect(element('.doc-example-live span').css('display')).toBe('none');
});