From 3ace81b92ad00da73c89e7536ac7aa7c6681e30a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 16 Sep 2011 00:09:33 +0200 Subject: 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 ("."). --- src/Angular.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Angular.js') 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) { * * 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){ * * 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'); }); -- cgit v1.2.3