@@ -87,8 +87,6 @@ Item {
89 function setup() {
89 function setup() {
90− AccountsService.hereEnabled = false;
91− AccountsService.hereLicensePath = Qt.resolvedUrl("licenses");
92 i18n.language = "en";
90 i18n.language = "en";
93 MockQOfono.setModems(["sim1"], [false], []);
91 MockQOfono.setModems(["sim1"], [false], []);
94 MockQOfono.available = true;
92 MockQOfono.available = true;
@@ -395,7 +393,6 @@ Item {
395 function test_locationGpsOnly() {
393 function test_locationGpsOnly() {
396 var page = goToPage("locationPage");
394 var page = goToPage("locationPage");
397 var gpsCheck = findChild(page, "gpsCheckLabel");
395 var gpsCheck = findChild(page, "gpsCheckLabel");
398− var hereCheck = findChild(page, "hereCheckLabel");
399 var nopeCheck = findChild(page, "nopeCheckLabel");
396 var nopeCheck = findChild(page, "nopeCheckLabel");
401 var locationActionGroup = findInvisibleChild(page, "locationActionGroup");
398 var locationActionGroup = findInvisibleChild(page, "locationActionGroup");
@@ -404,11 +401,9 @@ Item {
405 tap(gpsCheck);
402 tap(gpsCheck);
406 tryCompare(gpsCheck, "checked", true);
403 tryCompare(gpsCheck, "checked", true);
407− tryCompare(hereCheck, "checked", false);
408 tryCompare(nopeCheck, "checked", false);
404 tryCompare(nopeCheck, "checked", false);
410 tap(findChild(page, "forwardButton"));
406 tap(findChild(page, "forwardButton"));
411− tryCompare(AccountsService, "hereEnabled", false);
412 tryCompare(activateLocationSpy, "count", 1)
407 tryCompare(activateLocationSpy, "count", 1)
413 tryCompare(activateGPSSpy, "count", 1)
408 tryCompare(activateGPSSpy, "count", 1)
@@ -416,7 +411,6 @@ Item {
416 function test_locationNope() {
411 function test_locationNope() {
417 var page = goToPage("locationPage");
412 var page = goToPage("locationPage");
418 var gpsCheck = findChild(page, "gpsCheckLabel");
413 var gpsCheck = findChild(page, "gpsCheckLabel");
419− var hereCheck = findChild(page, "hereCheckLabel");
420 var nopeCheck = findChild(page, "nopeCheckLabel");
414 var nopeCheck = findChild(page, "nopeCheckLabel");
422 var locationActionGroup = findInvisibleChild(page, "locationActionGroup");
416 var locationActionGroup = findInvisibleChild(page, "locationActionGroup");
@@ -425,36 +419,13 @@ Item {
426 tap(nopeCheck);
420 tap(nopeCheck);
427 tryCompare(gpsCheck, "checked", false);
421 tryCompare(gpsCheck, "checked", false);
428− tryCompare(hereCheck, "checked", false);
429 tryCompare(nopeCheck, "checked", true);
422 tryCompare(nopeCheck, "checked", true);
431 tap(findChild(page, "forwardButton"));
424 tap(findChild(page, "forwardButton"));
432− tryCompare(AccountsService, "hereEnabled", false);
433 tryCompare(activateLocationSpy, "count", 0);
425 tryCompare(activateLocationSpy, "count", 0);
434 tryCompare(activateGPSSpy, "count", 0);
426 tryCompare(activateGPSSpy, "count", 0);
437− function test_locationHere() {
438− var page = goToPage("locationPage");
439− var gpsCheck = findChild(page, "gpsCheckLabel");
440− var hereCheck = findChild(page, "hereCheckLabel");
441− var nopeCheck = findChild(page, "nopeCheckLabel");
443− var locationActionGroup = findInvisibleChild(page, "locationActionGroup");
444− activateLocationSpy.target = locationActionGroup.location;
445− activateGPSSpy.target = locationActionGroup.gps;
447− // no tap because HERE is the default
448− tryCompare(gpsCheck, "checked", false);
449− tryCompare(hereCheck, "checked", true);
450− tryCompare(nopeCheck, "checked", false);
452− tap(findChild(page, "forwardButton"));
453− tryCompare(AccountsService, "hereEnabled", true);
454− tryCompare(activateLocationSpy, "count", 1);
455− tryCompare(activateGPSSpy, "count", 1);
458 function test_timezonePage() {
429 function test_timezonePage() {
459 var page = goToPage("tzPage");
430 var page = goToPage("tzPage");
460 verify(page);
431 verify(page);