docs(platform-browser): move examples to `@usageNotes` (#26039)
PR Close #26039
This commit is contained in:
parent
ff028f0b39
commit
fc4b993d98
|
@ -20,7 +20,8 @@ export class By {
|
|||
/**
|
||||
* Match all elements.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
|
||||
*/
|
||||
|
|
|
@ -20,7 +20,8 @@ export interface NgMatchers<T = any> extends jasmine.Matchers<T> {
|
|||
/**
|
||||
* Expect the value to be a `Promise`.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@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.
|
||||
*
|
||||
* ## Example
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* {@example testing/ts/matchers.ts region='toContainError'}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue