465
455
var currentDelegate = findChild(view, delegateName);
466
456
var sessionKey = LightDM.Sessions.data(i,LightDM.SessionRoles.KeyRole);
467
457
if (sessionKey === "gnome-classic") {
470
460
waitForRendering(sessionChooserButton);
476
466
compare(icon.indexOf("gnome") > -1, true,
477
467
"Expected icon to contain gnome but it was " + icon);
480
470
function test_noSessionsDoesntBreakView() {
482
472
compare(LightDM.Sessions.count, 0)
485
475
function test_sessionIconNotShownWithOneSession() {
487
477
compare(LightDM.Sessions.count, 1);
489
479
var sessionChooserButton = findChild(view, "sessionChooserButton");