Skip to content

Commit 7295a5e

Browse files
committedDec 12, 2016
refactor: format and lint code
1 parent 20bed46 commit 7295a5e

File tree

4 files changed

+6
-44
lines changed

4 files changed

+6
-44
lines changed
 

‎modules/@angular/examples/common/location/ts/e2e_test/location_component_spec.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,22 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {verifyNoBrowserErrors} from '../../../../_common/e2e_util';
109
import {browser, by, element, protractor} from 'protractor';
1110

11+
import {verifyNoBrowserErrors} from '../../../../_common/e2e_util';
12+
1213

1314
function waitForElement(selector: string) {
14-
var EC = (<any>protractor).ExpectedConditions;
15+
const EC = (<any>protractor).ExpectedConditions;
1516
// Waits for the element with id 'abc' to be present on the dom.
1617
browser.wait(EC.presenceOf($(selector)), 20000);
1718
}
1819

1920
describe('Location', () => {
2021
afterEach(verifyNoBrowserErrors);
2122

22-
var URL = '/common/location/ts/#/bar/baz';
23-
2423
it('should verify paths', () => {
25-
browser.get(URL);
24+
browser.get('/common/location/ts/#/bar/baz');
2625
waitForElement('hash-location');
2726
expect(element.all(by.css('path-location code')).get(0).getText())
2827
.toEqual('/common/location/ts');

‎modules/@angular/examples/platform-browser/dom/debug/ts/debug_element_view_listener/providers.js

-36
This file was deleted.

‎modules/@angular/platform-browser/src/browser/browser_adapter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
8282
if (console.error) {
8383
console.error(error);
8484
} else {
85+
// tslint:disable-next-line:no-console
8586
console.log(error);
8687
}
8788
}

‎protractor-examples-e2e.conf.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ var BROWSER_OPTIONS = {
2727
exports.config = {
2828
onPrepare: function() { beforeEach(function() { browser.ignoreSynchronization = false; }); },
2929
allScriptsTimeout: 11000,
30-
specs: [
31-
'dist/examples/**/e2e_test/*_spec.js'
32-
],
30+
specs: ['dist/examples/**/e2e_test/*_spec.js'],
3331
capabilities: process.env.TRAVIS ? BROWSER_OPTIONS.ChromeOnTravis : BROWSER_OPTIONS.LocalChrome,
3432
directConnect: true,
3533
baseUrl: 'http://localhost:8001/',

0 commit comments

Comments
 (0)
Please sign in to comment.