revert(format): Revert "chore(format): update to latest formatter"

This reverts commit 03627aa84d.
This commit is contained in:
Alex Rickabaugh
2016-04-12 09:40:37 -07:00
parent 03627aa84d
commit 60727c4d2b
527 changed files with 19247 additions and 13970 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,17 +35,18 @@ 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);