fix(build): report and fail on errors

tree benchmark was broken and we didn’t know it…

also changes reporting to not include messages from `console.time()`, …
This commit is contained in:
Tobias Bosch
2015-03-02 15:48:18 -08:00
parent 733915d99b
commit 81a5ae8f6e
3 changed files with 12 additions and 6 deletions

View File

@ -17,7 +17,9 @@ function verifyNoBrowserErrors() {
browser.executeScript('1+1');
browser.manage().logs().get('browser').then(function(browserLog) {
var filteredLog = browserLog.filter(function(logEntry) {
console.log('>> ' + require('util').inspect(logEntry));
if (logEntry.level.value >= webdriver.logging.Level.INFO.value) {
console.log('>> ' + logEntry.message);
}
return logEntry.level.value > webdriver.logging.Level.WARNING.value;
});
expect(filteredLog.length).toEqual(0);