refactor(TypeScript): Add noImplicitAny
We automatically insert explicit 'any's where needed. These need to be addressed as in #9100. Fixes #4924
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector) {
|
||||
function waitForElement(selector: any /** TODO #9100 */) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
// Waits for the element with id 'abc' to be present on the dom.
|
||||
browser.wait(EC.presenceOf($(selector)), 20000);
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector) {
|
||||
function waitForElement(selector: any /** TODO #9100 */) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
// Waits for the element with id 'abc' to be present on the dom.
|
||||
browser.wait(EC.presenceOf($(selector)), 20000);
|
||||
|
@ -23,12 +23,12 @@ describe('hello world', function() {
|
||||
|
||||
});
|
||||
|
||||
function getComponentText(selector, innerSelector) {
|
||||
function getComponentText(selector: any /** TODO #9100 */, innerSelector: any /** TODO #9100 */) {
|
||||
return browser.executeScript('return document.querySelector("' + selector + '").querySelector("' +
|
||||
innerSelector + '").textContent');
|
||||
}
|
||||
|
||||
function clickComponentButton(selector, innerSelector) {
|
||||
function clickComponentButton(selector: any /** TODO #9100 */, innerSelector: any /** TODO #9100 */) {
|
||||
return browser.executeScript('return document.querySelector("' + selector + '").querySelector("' +
|
||||
innerSelector + '").click()');
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ describe('http', function() {
|
||||
});
|
||||
});
|
||||
|
||||
function getComponentText(selector, innerSelector) {
|
||||
function getComponentText(selector: any /** TODO #9100 */, innerSelector: any /** TODO #9100 */) {
|
||||
return browser.executeScript('return document.querySelector("' + selector + '").querySelector("' +
|
||||
innerSelector + '").textContent.trim()');
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ describe('jsonp', function() {
|
||||
});
|
||||
});
|
||||
|
||||
function getComponentText(selector, innerSelector) {
|
||||
function getComponentText(selector: any /** TODO #9100 */, innerSelector: any /** TODO #9100 */) {
|
||||
return browser.executeScript('return document.querySelector("' + selector + '").querySelector("' +
|
||||
innerSelector + '").textContent.trim()');
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector) {
|
||||
function waitForElement(selector: any /** TODO #9100 */) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
// Waits for the element with id 'abc' to be present on the dom.
|
||||
browser.wait(EC.presenceOf($(selector)), 20000);
|
||||
@ -24,7 +24,7 @@ describe('relative assets relative-app', () => {
|
||||
|
||||
waitForElement('my-cmp .inner-container');
|
||||
var elem = element(by.css('my-cmp .inner-container'));
|
||||
var width = browser.executeScript(function(e) {
|
||||
var width = browser.executeScript(function(e: any /** TODO #9100 */) {
|
||||
return parseInt(window.getComputedStyle(e).width);
|
||||
}, elem.getWebElement());
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
|
||||
|
||||
function waitForElement(selector) {
|
||||
function waitForElement(selector: any /** TODO #9100 */) {
|
||||
var EC = (<any>protractor).ExpectedConditions;
|
||||
// Waits for the element with id 'abc' to be present on the dom.
|
||||
browser.wait(EC.presenceOf($(selector)), 20000);
|
||||
|
@ -15,8 +15,8 @@ describe('sourcemaps', function() {
|
||||
// so that the browser logs can be read out!
|
||||
browser.executeScript('1+1');
|
||||
browser.manage().logs().get('browser').then(function(logs) {
|
||||
var errorLine = null;
|
||||
var errorColumn = null;
|
||||
var errorLine: any /** TODO #9100 */ = null;
|
||||
var errorColumn: any /** TODO #9100 */ = null;
|
||||
logs.forEach(function(log) {
|
||||
var match = /\.createError\s+\(.+:(\d+):(\d+)/m.exec(log.message);
|
||||
if (match) {
|
||||
|
@ -64,7 +64,7 @@ describe("WebWorker Router", () => {
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
function waitForUrl(regex): void {
|
||||
function waitForUrl(regex: any /** TODO #9100 */): void {
|
||||
browser.wait(() => {
|
||||
let deferred = protractor.promise.defer();
|
||||
browser.getCurrentUrl().then(
|
||||
|
Reference in New Issue
Block a user