From d098cf5a8b80a4adc161cc9dc10b9e969023c78e Mon Sep 17 00:00:00 2001 From: Wilgert Velinga Date: Thu, 3 Aug 2017 21:47:59 +0200 Subject: [PATCH] ci: remove obsolete chromedriverpatch (#18515) Dart(ium) is not used anymore in Angular so this file should be obsolete PR Close #18515 --- tools/chromedriverpatch.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 tools/chromedriverpatch.js diff --git a/tools/chromedriverpatch.js b/tools/chromedriverpatch.js deleted file mode 100644 index 0a574697c0..0000000000 --- a/tools/chromedriverpatch.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ - -/** - * Patch Protractor so that it uses ChromeDriver 2.14 instead of 2.15. - * - * This is necessary because as of v2.1.0, Protractor by default uses - * chromedriver 2.15. However, angular need to test against Dartium, which - * is an old version of Chromium which is incompatible with Chromedriver > 2.14. - * - * TODO(juliemr): Remove this script once Dartium has been updated. - */ -var fs = require('fs'); -var path = require('path'); - -var protractorConfigFile = path.resolve(require.resolve('protractor'), '../../config.json'); - -var newConfig = { - 'webdriverVersions': { - 'selenium': '2.45.0', - 'chromedriver': '2.14', - 'iedriver': '2.45.0', - } -}; - -fs.writeFile(protractorConfigFile, JSON.stringify(newConfig));