Skip to content

Commit

Permalink
core(driver): [minor] fix spelling of evaluate (#5553)
Browse files Browse the repository at this point in the history
  • Loading branch information
crellison authored and paulirish committed Jun 25, 2018
1 parent 114ebf5 commit 38831b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lighthouse-core/gather/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Driver {
* @param {string} scriptSource
* @return {Promise<LH.Crdp.Page.AddScriptToEvaluateOnLoadResponse>} Identifier of the added script.
*/
evaluteScriptOnNewDocument(scriptSource) {
evaluateScriptOnNewDocument(scriptSource) {
return this.sendCommand('Page.addScriptToEvaluateOnLoad', {
scriptSource,
});
Expand Down Expand Up @@ -1064,7 +1064,7 @@ class Driver {
* @return {Promise<void>}
*/
async cacheNatives() {
await this.evaluteScriptOnNewDocument(`window.__nativePromise = Promise;
await this.evaluateScriptOnNewDocument(`window.__nativePromise = Promise;
window.__nativeError = Error;`);
}

Expand All @@ -1074,7 +1074,7 @@ class Driver {
*/
async registerPerformanceObserver() {
const scriptStr = `(${pageFunctions.registerPerformanceObserverInPage.toString()})()`;
await this.evaluteScriptOnNewDocument(scriptStr);
await this.evaluateScriptOnNewDocument(scriptStr);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class TagsBlockingFirstPaint extends Gatherer {
* @param {LH.Gatherer.PassContext} passContext
*/
beforePass(passContext) {
return passContext.driver.evaluteScriptOnNewDocument(`(${installMediaListener.toString()})()`);
return passContext.driver.evaluateScriptOnNewDocument(`(${installMediaListener.toString()})()`);
}

/**
Expand Down

0 comments on commit 38831b7

Please sign in to comment.