Replace hacky backspacing with clearValue.

This commit is contained in:
LeeDr 2015-11-13 17:48:27 -06:00
parent 745d45b770
commit 61d0053bb2

View file

@ -28,17 +28,15 @@ define(function (require) {
setFromTime: function setFromTime(timeString) {
return thisTime.findByCssSelector('input[ng-model=\'absolute.from\']')
.type('\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' +
'\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' +
'\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' + timeString);
.clearValue()
.type(timeString);
},
setToTime: function setToTime(timeString) {
return thisTime
.findByCssSelector('input[ng-model=\'absolute.to\']')
.type('\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' +
'\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' +
'\b' + '\b' + '\b' + '\b' + '\b' + '\b' + '\b' + timeString);
.clearValue()
.type(timeString);
},
clickGoButton: function clickGoButton() {
@ -160,7 +158,7 @@ define(function (require) {
getBarChartData: function getBarChartData() {
// var barMap = {};
var barArray = [];
common.log('in getBarChartData');
common.debug('in getBarChartData');
return thisTime
.findAllByCssSelector('rect')
.then(function (chartData) {