Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 61c85a9

Browse files
filipesilvanaomiblack
authored andcommitted
chore: add async/await support to e2e tests
1 parent 643c59a commit 61c85a9

File tree

40 files changed

+70
-34
lines changed

40 files changed

+70
-34
lines changed

public/docs/_examples/_protractor/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es6",
44
"module": "commonjs",
55
"moduleResolution": "node",
66
"sourceMap": true,

public/docs/_examples/_protractor/typings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"globalDependencies": {
33
"angular-protractor": "registry:dt/angular-protractor#1.5.0+20160425143459",
4-
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
54
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
65
"node": "registry:dt/node#6.0.0+20160613154055",
76
"selenium-webdriver": "registry:dt/selenium-webdriver#2.44.0+20160317120654"

public/docs/_examples/animations/e2e-spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
/**
34
* The tests here basically just checking that the end styles
45
* of each animation are in effect.
@@ -307,7 +308,9 @@ describe('Animation Tests', () => {
307308
return protractor.promise.all([
308309
getBoundingClientWidth(el),
309310
getOffsetWidth(el)
310-
]).then(function([clientWidth, offsetWidth]) {
311+
]).then(function(promiseResolutions) {
312+
let clientWidth = promiseResolutions[0];
313+
let offsetWidth = promiseResolutions[1];
311314
return clientWidth / offsetWidth;
312315
});
313316
}

public/docs/_examples/architecture/e2e-spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
describe('Architecture', function () {
34

45
let title = 'Hero List';

public/docs/_examples/attribute-directives/e2e-spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
describe('Attribute directives', function () {
34

45
let _title = 'My First Attribute Directive';

public/docs/_examples/cb-a1-a2-quick-reference/e2e-spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
describe('Angular 1 to 2 Quick Reference Tests', function () {
34

45
beforeAll(function () {

public/docs/_examples/cb-component-communication/e2e-spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
describe('Component Communication Cookbook Tests', function () {
34

45
// Note: '?e2e' which app can read to know it is running in protractor

public/docs/_examples/cb-component-relative-paths/e2e-spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/// <reference path="../_protractor/e2e.d.ts" />
1+
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
describe('Cookbook: component-relative paths', function () {
34

45
interface Page {

public/docs/_examples/cb-dependency-injection/e2e-spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/// <reference path="../_protractor/e2e.d.ts" />
1+
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
describe('Dependency Injection Cookbook', function () {
34

45
beforeAll(function () {

public/docs/_examples/cb-dynamic-form/e2e-spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/// <reference path="../_protractor/e2e.d.ts" />
1+
/// <reference path='../_protractor/e2e.d.ts' />
2+
'use strict';
23
/* tslint:disable:quotemark */
34
describe('Dynamic Form', function () {
45

0 commit comments

Comments
 (0)