docs(platform-browser): move examples to `@usageNotes` (#26039)

PR Close #26039
This commit is contained in:
Pete Bacon Darwin 2018-09-20 14:51:54 +01:00 committed by Kara Erickson
parent ff028f0b39
commit fc4b993d98
2 changed files with 20 additions and 10 deletions

View File

@ -20,7 +20,8 @@ export class By {
/** /**
* Match all elements. * Match all elements.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'} * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
*/ */
@ -29,7 +30,8 @@ export class By {
/** /**
* Match elements by the given CSS selector. * Match elements by the given CSS selector.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'} * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
*/ */
@ -44,7 +46,8 @@ export class By {
/** /**
* Match elements that have the given directive present. * Match elements that have the given directive present.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'} * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
*/ */

View File

@ -20,7 +20,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
/** /**
* Expect the value to be a `Promise`. * Expect the value to be a `Promise`.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example testing/ts/matchers.ts region='toBePromise'} * {@example testing/ts/matchers.ts region='toBePromise'}
*/ */
@ -29,7 +30,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
/** /**
* Expect the value to be an instance of a class. * Expect the value to be an instance of a class.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example testing/ts/matchers.ts region='toBeAnInstanceOf'} * {@example testing/ts/matchers.ts region='toBeAnInstanceOf'}
*/ */
@ -38,7 +40,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
/** /**
* Expect the element to have exactly the given text. * Expect the element to have exactly the given text.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example testing/ts/matchers.ts region='toHaveText'} * {@example testing/ts/matchers.ts region='toHaveText'}
*/ */
@ -47,7 +50,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
/** /**
* Expect the element to have the given CSS class. * Expect the element to have the given CSS class.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example testing/ts/matchers.ts region='toHaveCssClass'} * {@example testing/ts/matchers.ts region='toHaveCssClass'}
*/ */
@ -56,7 +60,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
/** /**
* Expect the element to have the given CSS styles. * Expect the element to have the given CSS styles.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example testing/ts/matchers.ts region='toHaveCssStyle'} * {@example testing/ts/matchers.ts region='toHaveCssStyle'}
*/ */
@ -65,7 +70,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
/** /**
* Expect a class to implement the interface of the given class. * Expect a class to implement the interface of the given class.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example testing/ts/matchers.ts region='toImplement'} * {@example testing/ts/matchers.ts region='toImplement'}
*/ */
@ -74,7 +80,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
/** /**
* Expect an exception to contain the given error text. * Expect an exception to contain the given error text.
* *
* ## Example * @usageNotes
* ### Example
* *
* {@example testing/ts/matchers.ts region='toContainError'} * {@example testing/ts/matchers.ts region='toContainError'}
*/ */