From 1192ae44f1d7f944719520f235e9f2ec895bdfd5 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 7 Feb 2014 20:34:04 +0000 Subject: docs(bike-shed-migration): convert examples to ... --- src/ng/directive/booleanAttrs.js | 72 ++++++++++----------- src/ng/directive/form.js | 12 ++-- src/ng/directive/input.js | 120 +++++++++++++++++------------------ src/ng/directive/ngBind.js | 24 +++---- src/ng/directive/ngCloak.js | 12 ++-- src/ng/directive/ngController.js | 24 +++---- src/ng/directive/ngEventDirs.js | 128 +++++++++++++++++++------------------- src/ng/directive/ngInit.js | 12 ++-- src/ng/directive/ngNonBindable.js | 12 ++-- src/ng/directive/ngPluralize.js | 12 ++-- src/ng/directive/ngTransclude.js | 12 ++-- src/ng/directive/script.js | 12 ++-- src/ng/directive/select.js | 12 ++-- 13 files changed, 232 insertions(+), 232 deletions(-) (limited to 'src/ng/directive') diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js index b49105cd..e1d46bc1 100644 --- a/src/ng/directive/booleanAttrs.js +++ b/src/ng/directive/booleanAttrs.js @@ -31,8 +31,8 @@ * @example * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes * in links and their different behaviors: - - + +
link 1 (link, don't reload)
link 2 (link, don't reload)
@@ -40,8 +40,8 @@ anchor (link, don't reload)
anchor (no link)
link (link, change location) -
- + + it('should execute ng-click but not reload when href without value', function() { element(by.id('link-1')).click(); expect(element(by.model('value')).getAttribute('value')).toEqual('1'); @@ -89,8 +89,8 @@ element(by.id('link-6')).click(); expect(browser.getCurrentUrl()).toMatch(/\/6$/); }); - -
+ +
*/ /** @@ -169,19 +169,19 @@ * a permanent reliable place to store the binding information. * * @example - - + + Click me to toggle:
-
- + + it('should toggle button', function() { expect(element(by.css('.doc-example-live button')).getAttribute('disabled')).toBeFalsy(); element(by.model('checked')).click(); expect(element(by.css('.doc-example-live button')).getAttribute('disabled')).toBeTruthy(); }); - -
+ + * * @element INPUT * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy, @@ -204,19 +204,19 @@ * This complementary directive is not removed by the browser and so provides * a permanent reliable place to store the binding information. * @example - - + + Check me to check both:
-
- + + it('should check both checkBoxes', function() { expect(element(by.id('checkSlave')).getAttribute('checked')).toBeFalsy(); element(by.model('master')).click(); expect(element(by.id('checkSlave')).getAttribute('checked')).toBeTruthy(); }); - -
+ + * * @element INPUT * @param {expression} ngChecked If the {@link guide/expression expression} is truthy, @@ -239,19 +239,19 @@ * This complementary directive is not removed by the browser and so provides * a permanent reliable place to store the binding information. * @example - - + + Check me to make text readonly:
-
- + + it('should toggle readonly attr', function() { expect(element(by.css('.doc-example-live [type="text"]')).getAttribute('readonly')).toBeFalsy(); element(by.model('checked')).click(); expect(element(by.css('.doc-example-live [type="text"]')).getAttribute('readonly')).toBeTruthy(); }); - -
+ + * * @element INPUT * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy, @@ -275,22 +275,22 @@ * a permanent reliable place to store the binding information. * * @example - - + + Check me to select:
-
- + + it('should select Greetings!', function() { expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy(); element(by.model('selected')).click(); expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy(); }); - -
+ + * * @element OPTION * @param {expression} ngSelected If the {@link guide/expression expression} is truthy, @@ -312,21 +312,21 @@ * This complementary directive is not removed by the browser and so provides * a permanent reliable place to store the binding information. * @example - - + + Check me check multiple:
Show/Hide me
-
- + + it('should toggle open', function() { expect(element(by.id('details')).getAttribute('open')).toBeFalsy(); element(by.model('open')).click(); expect(element(by.id('details')).getAttribute('open')).toBeTruthy(); }); - -
+ + * * @element DETAILS * @param {expression} ngOpen If the {@link guide/expression expression} is truthy, diff --git a/src/ng/directive/form.js b/src/ng/directive/form.js index 31034730..963ef04d 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -283,8 +283,8 @@ function FormController(element, attrs) { * related scope, under this name. * * @example - - + + Load inlined template
-
- + + it('should load template defined inside script tag', function() { element(by.css('#tpl-link')).click(); expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/); }); - -
+ + */ var scriptDirective = ['$templateCache', function($templateCache) { return { diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index 0b01e612..faa9c7a7 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -72,8 +72,8 @@ var ngOptionsMinErr = minErr('ngOptions'); * `value` variable (e.g. `value.propertyName`). * * @example - - + +