From b6c42d5e8155edc9013bd531f553c278ce37c3c8 Mon Sep 17 00:00:00 2001 From: Julie Date: Mon, 6 Jan 2014 15:13:57 -0800 Subject: feat(docs): adding the ngdoc-tag This is the first step in migrating tests from to . 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. --- src/ng/directive/ngEventDirs.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 @@ count: {{count}} - + 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'); }); - + */ /* -- cgit v1.2.3