aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/booleanAttrs.js
diff options
context:
space:
mode:
authorJulie2014-02-12 15:07:08 -0800
committerPeter Bacon Darwin2014-02-16 19:03:42 +0000
commit9565cca15b6d30aefb78bcec411dea4f7b305019 (patch)
tree1c0d58d7541b7d6fb96fb1d1d068d48eb0fca97a /src/ng/directive/booleanAttrs.js
parentcd508678cd9baffd2bc0c9e11ae724a7b2ff70bb (diff)
downloadangular.js-9565cca15b6d30aefb78bcec411dea4f7b305019.tar.bz2
chore(protractor tests): fix up e2e tests
Diffstat (limited to 'src/ng/directive/booleanAttrs.js')
-rw-r--r--src/ng/directive/booleanAttrs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js
index 099bdbbb..01b9ee67 100644
--- a/src/ng/directive/booleanAttrs.js
+++ b/src/ng/directive/booleanAttrs.js
@@ -176,9 +176,9 @@
</file>
<file name="protractor.js" type="protractor">
it('should toggle button', function() {
- expect(element(by.css('.doc-example-live button')).getAttribute('disabled')).toBeFalsy();
+ expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();
element(by.model('checked')).click();
- expect(element(by.css('.doc-example-live button')).getAttribute('disabled')).toBeTruthy();
+ expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();
});
</file>
</example>
@@ -246,9 +246,9 @@
</file>
<file name="protractor.js" type="protractor">
it('should toggle readonly attr', function() {
- expect(element(by.css('.doc-example-live [type="text"]')).getAttribute('readonly')).toBeFalsy();
+ expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeFalsy();
element(by.model('checked')).click();
- expect(element(by.css('.doc-example-live [type="text"]')).getAttribute('readonly')).toBeTruthy();
+ expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeTruthy();
});
</file>
</example>