aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJulie2014-01-06 15:13:57 -0800
committerJulie2014-01-08 13:07:58 -0800
commitb6c42d5e8155edc9013bd531f553c278ce37c3c8 (patch)
tree225bbc1e0522b42b2cdd9bccfe36452ad88ad3d4 /src
parent1c045f1b463cf8c2d0c470fc6e44170997e85d89 (diff)
downloadangular.js-b6c42d5e8155edc9013bd531f553c278ce37c3c8.tar.bz2
feat(docs): adding the <doc:protractor> ngdoc-tag
This is the first step in migrating tests from <doc:scenario> to <doc:protractor>. In-documentation examples with doc:protractor sections will have their contents output to a tab on the docs site as well as output to a standalone test file in build/docs/ptore2e.
Diffstat (limited to 'src')
-rw-r--r--src/ng/directive/ngEventDirs.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ng/directive/ngEventDirs.js b/src/ng/directive/ngEventDirs.js
index e45f5cb7..03da8bc4 100644
--- a/src/ng/directive/ngEventDirs.js
+++ b/src/ng/directive/ngEventDirs.js
@@ -20,13 +20,13 @@
</button>
count: {{count}}
</doc:source>
- <doc:scenario>
+ <doc:protractor>
it('should check ng-click', function() {
- expect(binding('count')).toBe('0');
- element('.doc-example-live :button').click();
- expect(binding('count')).toBe('1');
+ expect(element(by.binding('count')).getText()).toMatch('0');
+ element(by.css('.doc-example-live button')).click();
+ expect(element(by.binding('count')).getText()).toMatch('1');
});
- </doc:scenario>
+ </doc:protractor>
</doc:example>
*/
/*