@@ -75,20 +75,20 @@ Rectangle {
7575
7676 function test_mapping_data() {
7777 return [
78− { tag: "Actions", type: "actions", source: "PreviewActions.qml" },
79− { tag: "Audio", type: "audio", source: "PreviewAudioPlayback.qml" },
80− { tag: "Comment", type: "comment", source: "PreviewComment.qml" },
81− { tag: "Comment Input", type: "comment-input", source: "PreviewCommentInput.qml" },
82− { tag: "Expandable", type: "expandable", source: "PreviewExpandable.qml" },
83− { tag: "Gallery", type: "gallery", source: "PreviewImageGallery.qml" },
84− { tag: "Header", type: "header", source: "PreviewHeader.qml" },
85− { tag: "Image", type: "image", source: "PreviewZoomableImage.qml" },
86− { tag: "Progress", type: "progress", source: "PreviewProgress.qml" },
87− { tag: "Rating Input", type: "rating-input", source: "PreviewRatingInput.qml" },
88− { tag: "Rating Display", type: "reviews", source: "PreviewRatingDisplay.qml" },
89− { tag: "Table", type: "table", source: "PreviewTable.qml" },
90− { tag: "Text", type: "text", source: "PreviewTextSummary.qml" },
91− { tag: "Video", type: "video", source: "PreviewVideoPlayback.qml" },
78+ { tag: "Actions", type: "actions", source: "PreviewActions.qml", expanded: true },
79+ { tag: "Audio", type: "audio", source: "PreviewAudioPlayback.qml", expanded: true },
80+ { tag: "Comment", type: "comment", source: "PreviewComment.qml", expanded: true },
81+ { tag: "Comment Input", type: "comment-input", source: "PreviewCommentInput.qml", expanded: true },
82+ { tag: "Expandable", type: "expandable", source: "PreviewExpandable.qml", expanded: false },
83+ { tag: "Gallery", type: "gallery", source: "PreviewImageGallery.qml", expanded: true },
84+ { tag: "Header", type: "header", source: "PreviewHeader.qml", expanded: true },
85+ { tag: "Image", type: "image", source: "PreviewZoomableImage.qml", expanded: true },
86+ { tag: "Progress", type: "progress", source: "PreviewProgress.qml", expanded: true },
87+ { tag: "Rating Input", type: "rating-input", source: "PreviewRatingInput.qml", expanded: true },
88+ { tag: "Rating Display", type: "reviews", source: "PreviewRatingDisplay.qml", expanded: true },
89+ { tag: "Table", type: "table", source: "PreviewTable.qml", expanded: true },
90+ { tag: "Text", type: "text", source: "PreviewTextSummary.qml", expanded: true },
91+ { tag: "Video", type: "video", source: "PreviewVideoPlayback.qml", expanded: true },
9292 ];
9393 }
9494
@@ -97,6 +97,7 @@ Rectangle {
9797 factory.widgetType = data.type;
9898
9999 verify((String(factory.source)).indexOf(data.source) != -1);
100+ compare(factory.item.expanded, data.expanded);
100101 }
101102 }
102103}