Skip to content

Commit 4a96505

Browse files
authored
fix(platform-browser): remove testing_e2e target (angular#10029)
The testing_e2e util does not belong in platform-browser and was never intended to be a public API. Move it out of that whole tree. BREAKING CHANGE: The following API was never intended to be public and is removed: ```js import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e'; ``` Consider using Protractor's console plugin: https://github.com/angular/protractor-console-plugin
1 parent 5725c59 commit 4a96505

File tree

33 files changed

+26
-40
lines changed

33 files changed

+26
-40
lines changed

gulpfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const entrypoints = [
3939
'dist/packages-dist/upgrade/index.d.ts',
4040
'dist/packages-dist/platform-browser/index.d.ts',
4141
'dist/packages-dist/platform-browser/testing.d.ts',
42-
'dist/packages-dist/platform-browser/testing_e2e.d.ts',
4342
'dist/packages-dist/platform-browser-dynamic/index.d.ts',
4443
'dist/packages-dist/platform-browser-dynamic/testing.d.ts',
4544
'dist/packages-dist/platform-server/index.d.ts',

modules/@angular/examples/router_deprecated/ts/can_activate/can_activate_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: string) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/@angular/examples/router_deprecated/ts/can_deactivate/can_deactivate_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: string) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/@angular/examples/router_deprecated/ts/on_deactivate/on_deactivate_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: string) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/@angular/examples/router_deprecated/ts/reuse/reuse_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: string) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/@angular/platform-browser/testing_e2e.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

modules/@angular/platform-browser/tsconfig-es2015.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"files": [
2626
"index.ts",
2727
"testing.ts",
28-
"testing_e2e.ts",
2928
"../../../node_modules/@types/hammerjs/index.d.ts",
3029
"../../../node_modules/@types/jasmine/index.d.ts",
3130
"../../../node_modules/@types/protractor/index.d.ts",

modules/@angular/platform-browser/tsconfig-es5.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"files": [
2727
"index.ts",
2828
"testing.ts",
29-
"testing_e2e.ts",
3029
"../../../node_modules/@types/hammerjs/index.d.ts",
3130
"../../../node_modules/@types/jasmine/index.d.ts",
3231
"../../../node_modules/@types/protractor/index.d.ts",

modules/playground/e2e_test/async/async_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('async', () => {
1212
var URL = 'all/playground/src/async/index.html';

modules/playground/e2e_test/hash_routing/hash_location_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: any /** TODO #9100 */) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/playground/e2e_test/hello_world/hello_world_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('hello world', function() {
1212

modules/playground/e2e_test/http/http_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('http', function() {
1212

modules/playground/e2e_test/jsonp/jsonp_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('jsonp', function() {
1212

modules/playground/e2e_test/key_events/key_events_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing/e2e_util';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('key_events', function() {
1212

modules/playground/e2e_test/model_driven_forms/model_driven_forms_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('Model-Driven Forms', function() {
1212

modules/playground/e2e_test/order_management/order_management_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('Order Management CRUD', function() {
1212
var URL = 'all/playground/src/order_management/index.html';

modules/playground/e2e_test/person_management/person_management_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('Person Management CRUD', function() {
1212
var URL = 'all/playground/src/person_management/index.html';

modules/playground/e2e_test/relative_assets/assets_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: any /** TODO #9100 */) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/playground/e2e_test/routing/routing_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: any /** TODO #9100 */) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/playground/e2e_test/routing_deprecated/routing_deprecated_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
function waitForElement(selector: any /** TODO #9100 */) {
1212
var EC = (<any>protractor).ExpectedConditions;

modules/playground/e2e_test/sourcemap/sourcemap_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import * as testUtil from '@angular/platform-browser/testing_e2e';
9+
import * as testUtil from 'e2e_util/e2e_util';
1010

1111
var fs = require('fs');
1212
var sourceMap = require('source-map');

modules/playground/e2e_test/svg/svg_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('SVG', function() {
1212

modules/playground/e2e_test/template_driven_forms/template_driven_forms_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('Template-Driven Forms', function() {
1212

modules/playground/e2e_test/upgrade/upgrade_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from "@angular/platform-browser/testing_e2e";
9+
import {verifyNoBrowserErrors} from "e2e_util/e2e_util";
1010

1111
// TODO(i): reenable once we fix issue with exposing testability to protractor when using ngUpgrade
1212
// https://github.com/angular/angular/issues/9407

modules/playground/e2e_test/web_workers/input/input_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('WebWorkers Input', function() {
1212
afterEach(() => {

modules/playground/e2e_test/web_workers/kitchen_sink/kitchen_sink_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('WebWorkers Kitchen Sink', function() {
1212
afterEach(() => {

modules/playground/e2e_test/web_workers/message_broker/message_broker_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
var URL = 'all/playground/src/web_workers/message_broker/index.html';
1212

modules/playground/e2e_test/web_workers/router/router_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe("WebWorker Router", () => {
1212
beforeEach(() => {

modules/playground/e2e_test/web_workers/todo/todo_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('WebWorkers Todo', function() {
1212
afterEach(() => {

modules/playground/e2e_test/zippy_component/zippy_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
9+
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
1010

1111
describe('Zippy Component', function() {
1212

tools/public_api_guard/platform-browser/testing_e2e.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)