diff --git a/public/docs/_examples/_protractor/tsconfig.json b/public/docs/_examples/_protractor/tsconfig.json index eab9c24f92..8c87ff4f20 100644 --- a/public/docs/_examples/_protractor/tsconfig.json +++ b/public/docs/_examples/_protractor/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es6", "module": "commonjs", "moduleResolution": "node", "sourceMap": true, diff --git a/public/docs/_examples/_protractor/typings.json b/public/docs/_examples/_protractor/typings.json index 6015f1644c..736747f5a9 100644 --- a/public/docs/_examples/_protractor/typings.json +++ b/public/docs/_examples/_protractor/typings.json @@ -1,7 +1,6 @@ { "globalDependencies": { "angular-protractor": "registry:dt/angular-protractor#1.5.0+20160425143459", - "core-js": "registry:dt/core-js#0.0.0+20160317120654", "jasmine": "registry:dt/jasmine#2.2.0+20160505161446", "node": "registry:dt/node#6.0.0+20160613154055", "selenium-webdriver": "registry:dt/selenium-webdriver#2.44.0+20160317120654" diff --git a/public/docs/_examples/animations/e2e-spec.ts b/public/docs/_examples/animations/e2e-spec.ts index c7516bce2b..2450e7699b 100644 --- a/public/docs/_examples/animations/e2e-spec.ts +++ b/public/docs/_examples/animations/e2e-spec.ts @@ -1,4 +1,5 @@ /// +'use strict'; /** * The tests here basically just checking that the end styles * of each animation are in effect. @@ -307,7 +308,9 @@ describe('Animation Tests', () => { return protractor.promise.all([ getBoundingClientWidth(el), getOffsetWidth(el) - ]).then(function([clientWidth, offsetWidth]) { + ]).then(function(promiseResolutions) { + let clientWidth = promiseResolutions[0]; + let offsetWidth = promiseResolutions[1]; return clientWidth / offsetWidth; }); } diff --git a/public/docs/_examples/architecture/e2e-spec.ts b/public/docs/_examples/architecture/e2e-spec.ts index 66ea2a1081..152ffd322d 100644 --- a/public/docs/_examples/architecture/e2e-spec.ts +++ b/public/docs/_examples/architecture/e2e-spec.ts @@ -1,4 +1,5 @@ /// +'use strict'; describe('Architecture', function () { let title = 'Hero List'; diff --git a/public/docs/_examples/attribute-directives/e2e-spec.ts b/public/docs/_examples/attribute-directives/e2e-spec.ts index b15d85220f..bf63294648 100644 --- a/public/docs/_examples/attribute-directives/e2e-spec.ts +++ b/public/docs/_examples/attribute-directives/e2e-spec.ts @@ -1,4 +1,5 @@ /// +'use strict'; describe('Attribute directives', function () { let _title = 'My First Attribute Directive'; diff --git a/public/docs/_examples/cb-a1-a2-quick-reference/e2e-spec.ts b/public/docs/_examples/cb-a1-a2-quick-reference/e2e-spec.ts index d0e4bdc850..9af9b3f21d 100644 --- a/public/docs/_examples/cb-a1-a2-quick-reference/e2e-spec.ts +++ b/public/docs/_examples/cb-a1-a2-quick-reference/e2e-spec.ts @@ -1,4 +1,5 @@ /// +'use strict'; describe('Angular 1 to 2 Quick Reference Tests', function () { beforeAll(function () { diff --git a/public/docs/_examples/cb-component-communication/e2e-spec.ts b/public/docs/_examples/cb-component-communication/e2e-spec.ts index 8566805c99..47d8c47e05 100644 --- a/public/docs/_examples/cb-component-communication/e2e-spec.ts +++ b/public/docs/_examples/cb-component-communication/e2e-spec.ts @@ -1,4 +1,5 @@ /// +'use strict'; describe('Component Communication Cookbook Tests', function () { // Note: '?e2e' which app can read to know it is running in protractor diff --git a/public/docs/_examples/cb-component-relative-paths/e2e-spec.ts b/public/docs/_examples/cb-component-relative-paths/e2e-spec.ts index e15e664ca4..f3db3774e1 100644 --- a/public/docs/_examples/cb-component-relative-paths/e2e-spec.ts +++ b/public/docs/_examples/cb-component-relative-paths/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Cookbook: component-relative paths', function () { interface Page { diff --git a/public/docs/_examples/cb-dependency-injection/e2e-spec.ts b/public/docs/_examples/cb-dependency-injection/e2e-spec.ts index 51ae8c485d..d7ea6d4832 100644 --- a/public/docs/_examples/cb-dependency-injection/e2e-spec.ts +++ b/public/docs/_examples/cb-dependency-injection/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Dependency Injection Cookbook', function () { beforeAll(function () { diff --git a/public/docs/_examples/cb-dynamic-form/e2e-spec.ts b/public/docs/_examples/cb-dynamic-form/e2e-spec.ts index 3915d9cf90..b6c4a35e0a 100644 --- a/public/docs/_examples/cb-dynamic-form/e2e-spec.ts +++ b/public/docs/_examples/cb-dynamic-form/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; /* tslint:disable:quotemark */ describe('Dynamic Form', function () { diff --git a/public/docs/_examples/cb-set-document-title/e2e-spec.ts b/public/docs/_examples/cb-set-document-title/e2e-spec.ts index 9029c164e0..135bfb1a88 100644 --- a/public/docs/_examples/cb-set-document-title/e2e-spec.ts +++ b/public/docs/_examples/cb-set-document-title/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; // gulp run-e2e-tests --filter=cb-set-document-title describe('Set Document Title', function () { diff --git a/public/docs/_examples/cb-ts-to-js/e2e-spec.ts b/public/docs/_examples/cb-ts-to-js/e2e-spec.ts index f5071cb9b1..d356544496 100644 --- a/public/docs/_examples/cb-ts-to-js/e2e-spec.ts +++ b/public/docs/_examples/cb-ts-to-js/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('TypeScript to Javascript tests', function () { beforeAll(function () { diff --git a/public/docs/_examples/cli-quickstart/e2e-spec.ts b/public/docs/_examples/cli-quickstart/e2e-spec.ts index 7d5b5bf98b..f214b75d93 100644 --- a/public/docs/_examples/cli-quickstart/e2e-spec.ts +++ b/public/docs/_examples/cli-quickstart/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('cli-quickstart App', () => { beforeEach(() => { return browser.get('/'); diff --git a/public/docs/_examples/component-styles/e2e-spec.ts b/public/docs/_examples/component-styles/e2e-spec.ts index dac3cd55a2..6a26fe0d67 100644 --- a/public/docs/_examples/component-styles/e2e-spec.ts +++ b/public/docs/_examples/component-styles/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Component Style Tests', function () { beforeAll(function () { diff --git a/public/docs/_examples/dependency-injection/e2e-spec.ts b/public/docs/_examples/dependency-injection/e2e-spec.ts index 51b73ad40f..4c702f8801 100644 --- a/public/docs/_examples/dependency-injection/e2e-spec.ts +++ b/public/docs/_examples/dependency-injection/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Dependency Injection Tests', function () { diff --git a/public/docs/_examples/displaying-data/e2e-spec.ts b/public/docs/_examples/displaying-data/e2e-spec.ts index 9e4e4a9df1..5a2bd1c5ca 100644 --- a/public/docs/_examples/displaying-data/e2e-spec.ts +++ b/public/docs/_examples/displaying-data/e2e-spec.ts @@ -1,4 +1,5 @@ /// +'use strict'; describe('Displaying Data Tests', function () { let _title = 'Tour of Heroes'; let _defaultHero = 'Windstorm'; diff --git a/public/docs/_examples/forms/e2e-spec.ts b/public/docs/_examples/forms/e2e-spec.ts index 5e68d6e657..502a2cbdce 100644 --- a/public/docs/_examples/forms/e2e-spec.ts +++ b/public/docs/_examples/forms/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describeIf(browser.appIsTs || browser.appIsJs, 'Forms Tests', function () { beforeEach(function () { diff --git a/public/docs/_examples/hierarchical-dependency-injection/e2e-spec.ts b/public/docs/_examples/hierarchical-dependency-injection/e2e-spec.ts index d3dbf6f392..224d649cad 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/e2e-spec.ts +++ b/public/docs/_examples/hierarchical-dependency-injection/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Hierarchical dependency injection', function () { beforeEach(function () { diff --git a/public/docs/_examples/homepage-hello-world/e2e-spec.ts b/public/docs/_examples/homepage-hello-world/e2e-spec.ts index 260a111ec5..54d8f79532 100644 --- a/public/docs/_examples/homepage-hello-world/e2e-spec.ts +++ b/public/docs/_examples/homepage-hello-world/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Homepage Hello World', function () { beforeAll(function () { diff --git a/public/docs/_examples/homepage-tabs/e2e-spec.ts b/public/docs/_examples/homepage-tabs/e2e-spec.ts index 71f8bcd262..2ac27b289f 100644 --- a/public/docs/_examples/homepage-tabs/e2e-spec.ts +++ b/public/docs/_examples/homepage-tabs/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Homepage Tabs', function () { beforeAll(function () { diff --git a/public/docs/_examples/homepage-todo/e2e-spec.ts b/public/docs/_examples/homepage-todo/e2e-spec.ts index 28b3db24e5..f1dae917c6 100644 --- a/public/docs/_examples/homepage-todo/e2e-spec.ts +++ b/public/docs/_examples/homepage-todo/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Homepage Todo', function () { beforeAll(function () { diff --git a/public/docs/_examples/lifecycle-hooks/e2e-spec.ts b/public/docs/_examples/lifecycle-hooks/e2e-spec.ts index 5bb55f9318..535a3c1999 100644 --- a/public/docs/_examples/lifecycle-hooks/e2e-spec.ts +++ b/public/docs/_examples/lifecycle-hooks/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Lifecycle hooks', function () { beforeAll(function () { diff --git a/public/docs/_examples/pipes/e2e-spec.ts b/public/docs/_examples/pipes/e2e-spec.ts index 2e2d3448af..01c9e5fd13 100644 --- a/public/docs/_examples/pipes/e2e-spec.ts +++ b/public/docs/_examples/pipes/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Pipes', function () { beforeAll(function () { diff --git a/public/docs/_examples/quickstart/e2e-spec.ts b/public/docs/_examples/quickstart/e2e-spec.ts index d38d6a3157..4a6d169756 100644 --- a/public/docs/_examples/quickstart/e2e-spec.ts +++ b/public/docs/_examples/quickstart/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('QuickStart E2E Tests', function () { let expectedMsg = 'My First Angular 2 App'; diff --git a/public/docs/_examples/router-deprecated/e2e-spec.ts b/public/docs/_examples/router-deprecated/e2e-spec.ts index 961f5f7f50..3892285845 100644 --- a/public/docs/_examples/router-deprecated/e2e-spec.ts +++ b/public/docs/_examples/router-deprecated/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Router', function () { beforeAll(function () { diff --git a/public/docs/_examples/router/e2e-spec.ts b/public/docs/_examples/router/e2e-spec.ts index d674f7593c..f86293e823 100644 --- a/public/docs/_examples/router/e2e-spec.ts +++ b/public/docs/_examples/router/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Router', function () { beforeAll(function () { diff --git a/public/docs/_examples/server-communication/e2e-spec.ts b/public/docs/_examples/server-communication/e2e-spec.ts index c2c5ef9ff6..3468d363a0 100644 --- a/public/docs/_examples/server-communication/e2e-spec.ts +++ b/public/docs/_examples/server-communication/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Server Communication', function () { beforeAll(function () { diff --git a/public/docs/_examples/structural-directives/e2e-spec.ts b/public/docs/_examples/structural-directives/e2e-spec.ts index 082342e413..5f48b08835 100644 --- a/public/docs/_examples/structural-directives/e2e-spec.ts +++ b/public/docs/_examples/structural-directives/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Structural Directives', function () { // tests interact - so we need beforeEach instead of beforeAll diff --git a/public/docs/_examples/style-guide/e2e-spec.ts b/public/docs/_examples/style-guide/e2e-spec.ts index 1a64dd1598..c0fedf822e 100644 --- a/public/docs/_examples/style-guide/e2e-spec.ts +++ b/public/docs/_examples/style-guide/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Style Guide', function () { it('01-01', function () { browser.get('#/01-01'); diff --git a/public/docs/_examples/styleguide/e2e-spec.ts b/public/docs/_examples/styleguide/e2e-spec.ts index d22930b144..6dc2753038 100644 --- a/public/docs/_examples/styleguide/e2e-spec.ts +++ b/public/docs/_examples/styleguide/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Documentation StyleGuide E2E Tests', function() { let expectedMsg = 'My First Angular 2 App'; diff --git a/public/docs/_examples/template-syntax/e2e-spec.ts b/public/docs/_examples/template-syntax/e2e-spec.ts index 84522a9f03..47cbce0d59 100644 --- a/public/docs/_examples/template-syntax/e2e-spec.ts +++ b/public/docs/_examples/template-syntax/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; // Not yet complete describe('Template Syntax', function () { diff --git a/public/docs/_examples/toh-1/e2e-spec.ts b/public/docs/_examples/toh-1/e2e-spec.ts index 35615de9ba..9746d080c8 100644 --- a/public/docs/_examples/toh-1/e2e-spec.ts +++ b/public/docs/_examples/toh-1/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Tutorial part 1', () => { let expectedH1 = 'Tour of Heroes'; diff --git a/public/docs/_examples/toh-5/e2e-spec.ts b/public/docs/_examples/toh-5/e2e-spec.ts index 584b6ba663..e0dc96b63e 100644 --- a/public/docs/_examples/toh-5/e2e-spec.ts +++ b/public/docs/_examples/toh-5/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Tutorial', function () { beforeAll(function () { diff --git a/public/docs/_examples/toh-6/e2e-spec.ts b/public/docs/_examples/toh-6/e2e-spec.ts index faf5787bae..96277a910a 100644 --- a/public/docs/_examples/toh-6/e2e-spec.ts +++ b/public/docs/_examples/toh-6/e2e-spec.ts @@ -1,4 +1,5 @@ /// +'use strict'; describe('TOH Http Chapter', function () { beforeEach(function () { diff --git a/public/docs/_examples/upgrade-adapter/e2e-spec.ts b/public/docs/_examples/upgrade-adapter/e2e-spec.ts index eb4706137c..de7ffa68cc 100644 --- a/public/docs/_examples/upgrade-adapter/e2e-spec.ts +++ b/public/docs/_examples/upgrade-adapter/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('Upgrade Tests', function () { // Protractor doesn't support the UpgradeAdapter's asynchronous diff --git a/public/docs/_examples/upgrade-phonecat-1-typescript/e2e-spec.ts b/public/docs/_examples/upgrade-phonecat-1-typescript/e2e-spec.ts index ced4fbfbd5..48b0f9baa9 100644 --- a/public/docs/_examples/upgrade-phonecat-1-typescript/e2e-spec.ts +++ b/public/docs/_examples/upgrade-phonecat-1-typescript/e2e-spec.ts @@ -1,4 +1,4 @@ -/// +/// 'use strict'; // Angular E2E Testing Guide: diff --git a/public/docs/_examples/upgrade-phonecat-2-hybrid/e2e-spec.ts b/public/docs/_examples/upgrade-phonecat-2-hybrid/e2e-spec.ts index 6ff865ac8c..c55560f3a3 100644 --- a/public/docs/_examples/upgrade-phonecat-2-hybrid/e2e-spec.ts +++ b/public/docs/_examples/upgrade-phonecat-2-hybrid/e2e-spec.ts @@ -1,4 +1,4 @@ -/// +/// 'use strict'; // Angular E2E Testing Guide: diff --git a/public/docs/_examples/upgrade-phonecat-3-final/e2e-spec.ts b/public/docs/_examples/upgrade-phonecat-3-final/e2e-spec.ts index 3622210403..a56d735d1d 100644 --- a/public/docs/_examples/upgrade-phonecat-3-final/e2e-spec.ts +++ b/public/docs/_examples/upgrade-phonecat-3-final/e2e-spec.ts @@ -1,4 +1,4 @@ -/// +/// 'use strict'; // Angular E2E Testing Guide: diff --git a/public/docs/_examples/user-input/e2e-spec.ts b/public/docs/_examples/user-input/e2e-spec.ts index a57a6ab33c..189c597683 100644 --- a/public/docs/_examples/user-input/e2e-spec.ts +++ b/public/docs/_examples/user-input/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('User Input Tests', function () { beforeAll(function () { diff --git a/public/docs/_examples/webpack/e2e-spec.ts b/public/docs/_examples/webpack/e2e-spec.ts index 8e706597f5..59bf5c5708 100644 --- a/public/docs/_examples/webpack/e2e-spec.ts +++ b/public/docs/_examples/webpack/e2e-spec.ts @@ -1,4 +1,5 @@ -/// +/// +'use strict'; describe('QuickStart E2E Tests', function () { let expectedMsg = 'Hello from Angular 2 App with Webpack';