function documentGetBudget() {
  navigator.budget.getBudget().then(function(budget) {
    sendResultToTest("ok - budget returned value of " + budget[0].budgetAt);
  }, function() {
    sendResultToTest("failed - unable to get budget values");
  });
}
// Query for the budget and return the current total.
Query for the budget and return the current total.
Query for the budget and return the current total .
function documentGetBudget() {
  navigator.budget.getBudget().then(function(budget) {
    sendResultToTest("ok - budget returned value of " + budget[0].budgetAt);
  }, function() {
    sendResultToTest("failed - unable to get budget values");
  });
}
function documentGetBudget ( ) { navigator . budget . getBudget ( ) . then ( function ( budget ) { sendResultToTest ( "ok - budget returned value of " + budget [ 0 ] . budgetAt ) ; } , function ( ) { sendResultToTest ( "failed - unable to get budget values" ) ; } ) ; }
Query for the budget and return the current total.
Query for the budget and return the current total .