chore(format): update to latest formatter

Closes #7958
This commit is contained in:
Alex Eagle
2016-04-07 17:17:50 -07:00
committed by Alex Eagle
parent 83b8f59297
commit 03627aa84d
527 changed files with 13975 additions and 19252 deletions

View File

@ -15,8 +15,8 @@ describe('ng2 naive infinite scroll benchmark', function() {
var stageButtons = `${ allScrollItems } .row stage-buttons button`;
var count = function(selector) {
return browser.executeScript(`return ` +
`document.querySelectorAll("${ selector }").length;`);
return browser.executeScript(
`return ` + `document.querySelectorAll("${ selector }").length;`);
};
var clickFirstOf = function(selector) {
@ -24,8 +24,8 @@ describe('ng2 naive infinite scroll benchmark', function() {
};
var firstTextOf = function(selector) {
return browser.executeScript(`return ` +
`document.querySelector("${ selector }").innerText;`);
return browser.executeScript(
`return ` + `document.querySelector("${ selector }").innerText;`);
};
// Make sure rows are rendered
@ -35,18 +35,17 @@ describe('ng2 naive infinite scroll benchmark', function() {
count(cells).then(function(c) { expect(c).toEqual(expectedRowCount * expectedCellsPerRow); });
// Click on first enabled button and verify stage changes
firstTextOf(`${ stageButtons }:enabled`)
.then(function(text) {
expect(text).toEqual('Pitched');
clickFirstOf(`${ stageButtons }:enabled`)
.then(function() {
firstTextOf(`${ stageButtons }:enabled`)
.then(function(text) { expect(text).toEqual('Won'); })
});
});
firstTextOf(`${ stageButtons }:enabled`).then(function(text) {
expect(text).toEqual('Pitched');
clickFirstOf(`${ stageButtons }:enabled`).then(function() {
firstTextOf(`${ stageButtons }:enabled`).then(function(text) {
expect(text).toEqual('Won');
})
});
});
$("#reset-btn").click();
$("#run-btn").click();
$('#reset-btn').click();
$('#run-btn').click();
browser.wait(() => {
return $('#done').getText().then(function() { return true; }, function() { return false; });
}, 10000);