diff options
| author | Julie | 2014-01-11 16:59:15 -0800 | 
|---|---|---|
| committer | Caitlin Potter | 2014-01-28 14:14:20 -0500 | 
| commit | 7aef2d54e0a48fae18a289813f699962d8310565 (patch) | |
| tree | 60d1d559510c17e879aff798f298e6bcc262d3ab /src/ng/directive/script.js | |
| parent | ce37ae28687167f7b4274ba547f013980126a219 (diff) | |
| download | angular.js-7aef2d54e0a48fae18a289813f699962d8310565.tar.bz2 | |
test(docs): convert example end to end doc tests from scenario runner to protractor
Thanks to jeffbcross, petebacondarwin, btford, jdeboer, tbosch for contributions!
Closes #6023
Diffstat (limited to 'src/ng/directive/script.js')
| -rw-r--r-- | src/ng/directive/script.js | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/ng/directive/script.js b/src/ng/directive/script.js index 86233ff8..e86285ae 100644 --- a/src/ng/directive/script.js +++ b/src/ng/directive/script.js @@ -25,12 +25,12 @@        <a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a>        <div id="tpl-content" ng-include src="currentTpl"></div>      </doc:source> -    <doc:scenario> +    <doc:protractor>        it('should load template defined inside script tag', function() { -        element('#tpl-link').click(); -        expect(element('#tpl-content').text()).toMatch(/Content of the template/); +        element(by.css('#tpl-link')).click(); +        expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);        }); -    </doc:scenario> +    </doc:protractor>    </doc:example>   */  var scriptDirective = ['$templateCache', function($templateCache) { | 
