123
124
{ tag: "Item.properties[searchQuery]", constant: "searchQuery", type: "string" },
124
125
{ tag: "Item.properties[noResultsHint]", constant: "noResultsHint", type: "string" },
125
126
{ tag: "Item.properties[formFactor]", constant: "formFactor", type: "string" },
126
{ tag: "Item.properties[isActive]", constant: "isActive", type: "boolean" }
127
{ tag: "Item.properties[isActive]", constant: "isActive", type: "boolean" },
128
{ tag: "Item.properties[currentDepartmentId]", constant: "currentDepartmentId", type: "string" },
129
{ tag: "Item.properties[hasDepartments]", constant: "hasDepartments", type: "boolean" }
145
148
{ tag: "Model.methods[previewRequested]", method: "previewRequested" },
146
149
{ tag: "Model.methods[gotoScope]", method: "gotoScope" },
147
150
{ tag: "Model.methods[openScope]", method: "openScope" },
148
{ tag: "Model.methods[activateApplication]", method: "activateApplication" }
151
{ tag: "Model.methods[activateApplication]", method: "activateApplication" },
152
{ tag: "Model.methods[getDepartment]", method: "getDepartment" },
153
{ tag: "Model.methods[loadDepartment]", method: "loadDepartment" }
438
443
verifyData(data);
449
id: departmentVerifier
452
id: departmentRepeater
453
model: root.department
455
property var roles: model
459
function test_department_data() {
461
{ tag: "Department[object]", type: "object" },
462
{ tag: "Department[DepartmentInterface]", type: "unity::shell::scopes::DepartmentInterface" },
466
function test_department(data) {
467
object = departmentRepeater.model;
472
function test_department_roles_data() {
474
{ tag: "Model.roles[departmentId]", role: "departmentId", type: "string" },
475
{ tag: "Model.roles[label]", role: "label", type: "string" },
476
{ tag: "Model.roles[hasChildren]", role: "hasChildren", type: "boolean" },
477
{ tag: "Model.roles[isActive]", role: "isActive", type: "boolean" }
481
function test_department_roles(data) {
482
object = departmentRepeater.itemAt(0).roles;
487
function test_department_properties_data() {
489
{ tag: "Model.properties[departmentId]", constant: "departmentId", type: "string" },
490
{ tag: "Model.properties[label]", constant: "label", type: "string" },
491
{ tag: "Model.properties[allLabel]", constant: "allLabel", type: "string" },
492
{ tag: "Model.properties[parentDepartmentId]", constant: "parentDepartmentId", type: "string" },
493
{ tag: "Model.properties[parentLabel]", constant: "parentLabel", type: "string" },
494
{ tag: "Model.properties[loaded]", constant: "loaded", type: "boolean" },
495
{ tag: "Model.properties[isRoot]", constant: "isRoot", type: "boolean" },
496
{ tag: "Model.properties[count]", constant: "count", type: "number" }
500
function test_department_properties(data) {
501
object = departmentRepeater.model;