on xenial help sign in
Fix PreviewHeader test
0879bd5Andrea Cimitan
qml/Dash/Previews/PreviewComment.qml+1
@@ -41,6 +41,7 @@ PreviewWidget {
41 source: widgetData["source"]
41 source: widgetData["source"]
42 }
42 }
43 radius: "medium"
43 radius: "medium"
44+ aspect: UbuntuShape.Flat
44 opacity: source.status === Image.Ready ? 1 : 0
45 opacity: source.status === Image.Ready ? 1 : 0
45 visible: widgetData["source"] !== ""
46 visible: widgetData["source"] !== ""
46 }
47 }
tests/qmltests/Dash/Previews/tst_PreviewHeader.qml+1−1
@@ -123,7 +123,7 @@ Rectangle {
123
123
124 function test_dimensions_data() {
124 function test_dimensions_data() {
125 return [
125 return [
126− { tag: "Column width with mascot", object: column, width: previewHeader.width - mascotShapeLoader.width - outerRow.margins * 3, mascot: "artwork/avatar.png" },
126+ { tag: "Column width with mascot", object: column, width: previewHeader.width - mascotShapeLoader.width - outerRow.margins * 2, mascot: "artwork/avatar.png" },
127 { tag: "Header height", object: previewHeader, height: function() { return outerRow.height + outerRow.margins * 2 } },
127 { tag: "Header height", object: previewHeader, height: function() { return outerRow.height + outerRow.margins * 2 } },
128 ]
128 ]
129 }
129 }