docs: spelling errors (#15375)

This commit is contained in:
Aliaksei Kuncevič 2017-03-23 07:25:35 +11:00 committed by Igor Minar
parent 8b4edcc7ad
commit 941f194a83
3 changed files with 7 additions and 7 deletions

View File

@ -51,7 +51,7 @@ import {AnimationTimelineInstruction, createTimelineInstruction} from './animati
* [TimelineBuilder] * [TimelineBuilder]
* This class is responsible for tracking the styles and building a series of keyframe objects for a * This class is responsible for tracking the styles and building a series of keyframe objects for a
* timeline between a start and end time. The builder starts off with an initial timeline and each * timeline between a start and end time. The builder starts off with an initial timeline and each
* time the AST comes across a `group()`, `keyframes()` or a combination of the two wihtin a * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a
* `sequence()` then it will generate a sub timeline for each step as well as a new one after * `sequence()` then it will generate a sub timeline for each step as well as a new one after
* they are complete. * they are complete.
* *
@ -83,7 +83,7 @@ import {AnimationTimelineInstruction, createTimelineInstruction} from './animati
* from all previous keyframes up until where it is first used. For the timeline keyframe generation * from all previous keyframes up until where it is first used. For the timeline keyframe generation
* to properly fill in the style it will place the previous value (the value from the parent * to properly fill in the style it will place the previous value (the value from the parent
* timeline) or a default value of `*` into the backFill object. Given that each of the keyframe * timeline) or a default value of `*` into the backFill object. Given that each of the keyframe
* styles are objects that prototypically inhert from the backFill object, this means that if a * styles are objects that prototypically inherited from the backFill object, this means that if a
* value is added into the backFill then it will automatically propagate any missing values to all * value is added into the backFill then it will automatically propagate any missing values to all
* keyframes. Therefore the missing `height` value will be properly filled into the already * keyframes. Therefore the missing `height` value will be properly filled into the already
* processed keyframes. * processed keyframes.
@ -92,7 +92,7 @@ import {AnimationTimelineInstruction, createTimelineInstruction} from './animati
* styles present within the sub-timeline do not accidentally seep into the previous/future timeline * styles present within the sub-timeline do not accidentally seep into the previous/future timeline
* keyframes * keyframes
* *
* (For prototypically-inherited contents to be detected a `for(i in obj)` loop must be used.) * (For prototypically inherited contents to be detected a `for(i in obj)` loop must be used.)
* *
* [Validation] * [Validation]
* The code in this file is not responsible for validation. That functionality happens with within * The code in this file is not responsible for validation. That functionality happens with within

View File

@ -272,7 +272,7 @@ export class PerflogMetric extends Metric {
} else if (this._receivedData && name === 'receivedData' && ph === 'I') { } else if (this._receivedData && name === 'receivedData' && ph === 'I') {
result['receivedData'] += event['args']['encodedDataLength']; result['receivedData'] += event['args']['encodedDataLength'];
} }
if (ph === 'B' && name === _MARK_NAME_FRAME_CAPUTRE) { if (ph === 'B' && name === _MARK_NAME_FRAME_CAPTURE) {
if (frameCaptureStartEvent) { if (frameCaptureStartEvent) {
throw new Error('can capture frames only once per benchmark run'); throw new Error('can capture frames only once per benchmark run');
} }
@ -281,7 +281,7 @@ export class PerflogMetric extends Metric {
'found start event for frame capture, but frame capture was not requested in benchpress'); 'found start event for frame capture, but frame capture was not requested in benchpress');
} }
frameCaptureStartEvent = event; frameCaptureStartEvent = event;
} else if (ph === 'E' && name === _MARK_NAME_FRAME_CAPUTRE) { } else if (ph === 'E' && name === _MARK_NAME_FRAME_CAPTURE) {
if (!frameCaptureStartEvent) { if (!frameCaptureStartEvent) {
throw new Error('missing start event for frame capture'); throw new Error('missing start event for frame capture');
} }
@ -366,6 +366,6 @@ const _MICRO_ITERATIONS_REGEX = /(.+)\*(\d+)$/;
const _MAX_RETRY_COUNT = 20; const _MAX_RETRY_COUNT = 20;
const _MARK_NAME_PREFIX = 'benchpress'; const _MARK_NAME_PREFIX = 'benchpress';
const _MARK_NAME_FRAME_CAPUTRE = 'frameCapture'; const _MARK_NAME_FRAME_CAPTURE = 'frameCapture';
// using 17ms as a somewhat looser threshold, instead of 16.6666ms // using 17ms as a somewhat looser threshold, instead of 16.6666ms
const _FRAME_TIME_SMOOTH_THRESHOLD = 17; const _FRAME_TIME_SMOOTH_THRESHOLD = 17;

View File

@ -55,6 +55,6 @@ export const COMMON_DIRECTIVES: Provider[] = [
]; ];
/** /**
* A colletion of deprecated directives that are no longer part of the core module. * A collection of deprecated directives that are no longer part of the core module.
*/ */
export const COMMON_DEPRECATED_DIRECTIVES: Provider[] = [NgFor]; export const COMMON_DEPRECATED_DIRECTIVES: Provider[] = [NgFor];