fix(platform-browser): remove testing_e2e target (#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
This commit is contained in:
Julie Ralph 2016-07-13 10:10:02 -07:00 committed by GitHub
parent 5725c5925c
commit 4a965052f9
33 changed files with 26 additions and 40 deletions

View File

@ -39,7 +39,6 @@ const entrypoints = [
'dist/packages-dist/upgrade/index.d.ts',
'dist/packages-dist/platform-browser/index.d.ts',
'dist/packages-dist/platform-browser/testing.d.ts',
'dist/packages-dist/platform-browser/testing_e2e.d.ts',
'dist/packages-dist/platform-browser-dynamic/index.d.ts',
'dist/packages-dist/platform-browser-dynamic/testing.d.ts',
'dist/packages-dist/platform-server/index.d.ts',

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: string) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: string) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: string) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: string) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -1,9 +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
*/
export * from './testing/e2e_util';

View File

@ -25,7 +25,6 @@
"files": [
"index.ts",
"testing.ts",
"testing_e2e.ts",
"../../../node_modules/@types/hammerjs/index.d.ts",
"../../../node_modules/@types/jasmine/index.d.ts",
"../../../node_modules/@types/protractor/index.d.ts",

View File

@ -26,7 +26,6 @@
"files": [
"index.ts",
"testing.ts",
"testing_e2e.ts",
"../../../node_modules/@types/hammerjs/index.d.ts",
"../../../node_modules/@types/jasmine/index.d.ts",
"../../../node_modules/@types/protractor/index.d.ts",

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('async', () => {
var URL = 'all/playground/src/async/index.html';

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: any /** TODO #9100 */) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('hello world', function() {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('http', function() {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('jsonp', function() {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing/e2e_util';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('key_events', function() {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('Model-Driven Forms', function() {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('Order Management CRUD', function() {
var URL = 'all/playground/src/order_management/index.html';

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('Person Management CRUD', function() {
var URL = 'all/playground/src/person_management/index.html';

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: any /** TODO #9100 */) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: any /** TODO #9100 */) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
function waitForElement(selector: any /** TODO #9100 */) {
var EC = (<any>protractor).ExpectedConditions;

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import * as testUtil from '@angular/platform-browser/testing_e2e';
import * as testUtil from 'e2e_util/e2e_util';
var fs = require('fs');
var sourceMap = require('source-map');

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('SVG', function() {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('Template-Driven Forms', function() {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from "@angular/platform-browser/testing_e2e";
import {verifyNoBrowserErrors} from "e2e_util/e2e_util";
// TODO(i): reenable once we fix issue with exposing testability to protractor when using ngUpgrade
// https://github.com/angular/angular/issues/9407

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('WebWorkers Input', function() {
afterEach(() => {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('WebWorkers Kitchen Sink', function() {
afterEach(() => {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
var URL = 'all/playground/src/web_workers/message_broker/index.html';

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe("WebWorker Router", () => {
beforeEach(() => {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('WebWorkers Todo', function() {
afterEach(() => {

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from '@angular/platform-browser/testing_e2e';
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
describe('Zippy Component', function() {

View File

@ -1,2 +0,0 @@
/** @experimental */
export declare function verifyNoBrowserErrors(): void;