aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngStyle.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/ngStyle.js
parentcd508678cd9baffd2bc0c9e11ae724a7b2ff70bb (diff)
downloadangular.js-9565cca15b6d30aefb78bcec411dea4f7b305019.tar.bz2
chore(protractor tests): fix up e2e tests
Diffstat (limited to 'src/ng/directive/ngStyle.js')
-rw-r--r--src/ng/directive/ngStyle.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/directive/ngStyle.js b/src/ng/directive/ngStyle.js
index 1722ca77..3a627f8f 100644
--- a/src/ng/directive/ngStyle.js
+++ b/src/ng/directive/ngStyle.js
@@ -27,14 +27,14 @@
color: black;
}
</file>
- <file name="protractorTest.js">
- var colorSpan = element(by.css('.doc-example-live span'));
+ <file name="protractor.js" type="protractor">
+ var colorSpan = element(by.css('span'));
it('should check ng-style', function() {
expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
- element(by.css('.doc-example-live input[value=set]')).click();
+ element(by.css('input[value=set]')).click();
expect(colorSpan.getCssValue('color')).toBe('rgba(255, 0, 0, 1)');
- element(by.css('.doc-example-live input[value=clear]')).click();
+ element(by.css('input[value=clear]')).click();
expect(colorSpan.getCssValue('color')).toBe('rgba(0, 0, 0, 1)');
});
</file>