@openui5/sap.ui.core
Version:
OpenUI5 Core Library sap.ui.core
119 lines (118 loc) • 4.8 kB
text/xml
<mvc:View
controllerName="sap.ui.test.BlanketReporterUI"
xmlns="sap.m"
xmlns:table="sap.ui.table"
xmlns:tablerm="sap.ui.table.rowmodes"
xmlns:core="sap.ui.core"
xmlns:mvc="sap.ui.core.mvc"
xmlns:form="sap.ui.layout.form">
<form:SimpleForm editable="false" layout="ResponsiveGridLayout" title="Blanket Code Coverage"
columnsM="2">
<core:Title text="Line Coverage"/>
<Label text="Lines"/>
<Text text="{path : '/lines/total', type : 'sap.ui.model.odata.type.Int32'}"/>
<Label text="Missed"/>
<Text text="{path : '/lines/missed', type : 'sap.ui.model.odata.type.Int32'}"/>
<Label/>
<ProgressIndicator width="10em" percentValue="{/lines/coverage}"
displayValue="{path : '/lines/coverage', type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1,
preserveDecimals : false}} %"
state="{= %{/lines/coverage} < %{/threshold} ? 'Error' : 'Success' }"/>
<core:Title text="{= %{/branchTracking} ? 'Branch Coverage' : '' }"/>
<Label text="Branches" visible="{= %{/branchTracking} }"/>
<Text text="{path : '/branches/total', type : 'sap.ui.model.odata.type.Int32'}"
visible="{= %{/branchTracking} }"/>
<Label text="Missed" visible="{= %{/branchTracking} }"/>
<Text text="{path : '/branches/missed', type : 'sap.ui.model.odata.type.Int32'}"
visible="{= %{/branchTracking} }"/>
<Label visible="{= %{/branchTracking} }"/>
<ProgressIndicator width="10em" percentValue="{/branches/coverage}"
displayValue="{path : '/branches/coverage', type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1,
preserveDecimals : false}} %"
state="{= %{/branches/coverage} < %{/threshold} ? 'Error' : 'Success' }"
visible="{= %{/branchTracking} }"/>
</form:SimpleForm>
<table:Table id="Files" selectionMode="Single" selectionBehavior="RowOnly" rows="{/files}"
rowSelectionChange=".onRowSelection">
<table:extension>
<HBox>
<CheckBox selected="{/filterThreshold}" text="Below Threshold ({/threshold} %)"
select=".onFilterThreshold" visible="{= %{/threshold} > 0 }"/>
<CheckBox select=".onRowSelection" selected="{/showHits}" text="Show Hits"/>
</HBox>
</table:extension>
<table:rowMode>
<tablerm:Interactive rowCount="{/visible}" minRowCount="1"/>
</table:rowMode>
<table:columns>
<table:Column width="5em" hAlign="Right">
<table:label>
<Text text="Lines"/>
</table:label>
<table:template>
<Text text="{path : 'lines/total', type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="lines/missed">
<table:label>
<Text text="Missed"/>
</table:label>
<table:template>
<Text text="{path : 'lines/missed', type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="lines/coverage">
<table:label>
<Text text="%"/>
</table:label>
<table:template>
<Text text="{path : 'lines/coverage', type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1,
preserveDecimals : false}}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" visible="{= %{/branchTracking} }">
<table:label>
<Text text="Branches"/>
</table:label>
<table:template>
<Text text="{path : 'branches/total', type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="branches/missed"
visible="{= %{/branchTracking} }">
<table:label>
<Text text="Missed"/>
</table:label>
<table:template>
<Text text="{path : 'branches/missed',
type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="branches/coverage"
class="{= %{/branches/coverage} < %{/threshold} ? 'blanket_miss' : '' }"
visible="{= %{/branchTracking} }">
<table:label>
<Text text="%"/>
</table:label>
<table:template>
<Text text="{path : 'branches/coverage',
type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1,
preserveDecimals : false}}"/>
</table:template>
</table:Column>
<table:Column filterProperty="name" sortProperty="name" sorted="true" sortOrder="Ascending">
<table:label>
<Text text="File"/>
</table:label>
<table:template>
<Text text="{name}"/>
</table:template>
</table:Column>
</table:columns>
</table:Table>
<core:HTML id="blanket-source" sanitizeContent="true" visible="false"/>
</mvc:View>