提交 74f38647 编写于 作者: G guoenquan

Modify test case

Signed-off-by: Nguoenquan <guoenquan1@huawei-partners.com>
上级 cc594664
...@@ -22,7 +22,7 @@ const TAG = 'ets_apiLack_add'; ...@@ -22,7 +22,7 @@ const TAG = 'ets_apiLack_add';
@Component @Component
export default export default
struct CheckBoxGroupPart { struct CheckBoxGroupPart {
@State SelectStatus: SelectStatus = SelectStatus.Part
aboutToAppear() { aboutToAppear() {
Log.showInfo(TAG, `aboutToAppear CheckBoxGroupPart start`) Log.showInfo(TAG, `aboutToAppear CheckBoxGroupPart start`)
} }
...@@ -84,11 +84,9 @@ struct CheckBoxGroupPart { ...@@ -84,11 +84,9 @@ struct CheckBoxGroupPart {
console.info("Part emit action state err: " + JSON.stringify(err.message)) console.info("Part emit action state err: " + JSON.stringify(err.message))
} }
Utils.sleep(1000); Utils.sleep(1000);
if(itemName.status === SelectStatus.Part){ if(itemName.status === SelectStatus.Part){
console.info("CheckboxGroup SelectStatus.Part") console.info("CheckboxGroup SelectStatus.Part")
} }
}) })
Text('select all').fontSize(20) Text('select all').fontSize(20)
Checkbox({name: 'checkbox1', group: 'checkboxGroup'}) Checkbox({name: 'checkbox1', group: 'checkboxGroup'})
......
...@@ -134,7 +134,7 @@ export default struct CommonColorMode { ...@@ -134,7 +134,7 @@ export default struct CommonColorMode {
path: '' path: ''
} }
}) })
//
Text("common-Middle") Text("common-Middle")
.width(320) .width(320)
.height(40) .height(40)
...@@ -151,7 +151,7 @@ export default struct CommonColorMode { ...@@ -151,7 +151,7 @@ export default struct CommonColorMode {
.alignRules({ .alignRules({
middle: { anchor: 'string', align: HorizontalAlign.Center } middle: { anchor: 'string', align: HorizontalAlign.Center }
}) })
//
Text("common-Area") Text("common-Area")
.width(320) .width(320)
.height(40) .height(40)
...@@ -187,7 +187,6 @@ export default struct CommonColorMode { ...@@ -187,7 +187,6 @@ export default struct CommonColorMode {
console.info("areaValue emit action state err: " + JSON.stringify(err.message)) console.info("areaValue emit action state err: " + JSON.stringify(err.message))
} }
}) })
//
Text("common-Repeat") Text("common-Repeat")
.width(320) .width(320)
.height(40) .height(40)
...@@ -211,7 +210,7 @@ export default struct CommonColorMode { ...@@ -211,7 +210,7 @@ export default struct CommonColorMode {
repeat: RepeatMode.Repeat, repeat: RepeatMode.Repeat,
fill: false fill: false
}); });
//
Text("common-Space") Text("common-Space")
.width(320) .width(320)
.height(40) .height(40)
...@@ -235,7 +234,7 @@ export default struct CommonColorMode { ...@@ -235,7 +234,7 @@ export default struct CommonColorMode {
repeat: RepeatMode.Space, repeat: RepeatMode.Space,
fill: false fill: false
}); });
//
Text("common-Thin") Text("common-Thin")
.width(320) .width(320)
.height(40) .height(40)
...@@ -250,7 +249,7 @@ export default struct CommonColorMode { ...@@ -250,7 +249,7 @@ export default struct CommonColorMode {
.textOverflow({ overflow: TextOverflow.None }) .textOverflow({ overflow: TextOverflow.None })
.key("ThinText") .key("ThinText")
.backgroundBlurStyle(BlurStyle.Thin) .backgroundBlurStyle(BlurStyle.Thin)
//
Text("common-Thick") Text("common-Thick")
.width(320) .width(320)
.height(40) .height(40)
...@@ -265,7 +264,7 @@ export default struct CommonColorMode { ...@@ -265,7 +264,7 @@ export default struct CommonColorMode {
.textOverflow({ overflow: TextOverflow.None }) .textOverflow({ overflow: TextOverflow.None })
.key("ThickText") .key("ThickText")
.backgroundBlurStyle(BlurStyle.Thick) .backgroundBlurStyle(BlurStyle.Thick)
//
Text("common-Slice") Text("common-Slice")
.width(320) .width(320)
.height(40) .height(40)
...@@ -289,7 +288,7 @@ export default struct CommonColorMode { ...@@ -289,7 +288,7 @@ export default struct CommonColorMode {
repeat: RepeatMode.Stretch, repeat: RepeatMode.Stretch,
fill: false fill: false
}); });
//
Text("common-Outset") Text("common-Outset")
.width(320) .width(320)
.height(40) .height(40)
...@@ -315,7 +314,7 @@ export default struct CommonColorMode { ...@@ -315,7 +314,7 @@ export default struct CommonColorMode {
outset: 2 outset: 2
}); });
//
Text("common-Touches") Text("common-Touches")
.width(320) .width(320)
.height(40) .height(40)
...@@ -351,7 +350,7 @@ export default struct CommonColorMode { ...@@ -351,7 +350,7 @@ export default struct CommonColorMode {
console.info("touchesValue emit action state err: " + JSON.stringify(err.message)) console.info("touchesValue emit action state err: " + JSON.stringify(err.message))
} }
}) })
//
Text("common-ChangedTouches") Text("common-ChangedTouches")
.width(320) .width(320)
.height(40) .height(40)
......
...@@ -13,9 +13,8 @@ ...@@ -13,9 +13,8 @@
* limitations under the License. * limitations under the License.
*/ */
import router from '@ohos.router' import router from '@ohos.router'
import uiAppearance from '@ohos.uiAppearance'; // import uiAppearance from '@ohos.uiAppearance';
import Log from '../common/Log.ets'; import Log from '../common/Log.ets';
...@@ -27,7 +26,7 @@ export default ...@@ -27,7 +26,7 @@ export default
struct RouterStandard { struct RouterStandard {
async routePage() { async routePage() {
let options = { let options = {
url: 'pages/page1', url: 'pages/page1',
params: { params: {
...@@ -106,6 +105,7 @@ struct RouterStandard { ...@@ -106,6 +105,7 @@ struct RouterStandard {
.onClick(() => { .onClick(() => {
this.routeSinglePage() this.routeSinglePage()
}) })
Text('这是第一页') Text('这是第一页')
.fontSize(50) .fontSize(50)
.fontWeight(FontWeight.Bold) .fontWeight(FontWeight.Bold)
...@@ -123,3 +123,4 @@ struct RouterStandard { ...@@ -123,3 +123,4 @@ struct RouterStandard {
}.width("100%").height("100%") }.width("100%").height("100%")
} }
} }
...@@ -38,8 +38,7 @@ struct WebEditText { ...@@ -38,8 +38,7 @@ struct WebEditText {
.height(500) .height(500)
.padding(20) .padding(20)
.blur(2) .blur(2)
//修改 // .fileFromUrlAccess(true)
//.fileFromUrlAccess(true)
.initialScale(2) .initialScale(2)
.webDebuggingAccess(true) .webDebuggingAccess(true)
.onRenderExited((event) => { .onRenderExited((event) => {
......
...@@ -60,9 +60,9 @@ export default function loadingProgressCircularJsunit() { ...@@ -60,9 +60,9 @@ export default function loadingProgressCircularJsunit() {
expect(obj.$attrs.color).assertEqual(undefined); expect(obj.$attrs.color).assertEqual(undefined);
expect(obj.$attrs.width).assertEqual('100.00vp'); expect(obj.$attrs.width).assertEqual('100.00vp');
expect(obj.$attrs.margin).assertEqual('5.00vp'); expect(obj.$attrs.margin).assertEqual('5.00vp');
console.info("[gwxtestloadingProgressCircular0011] color value :" + obj.$attrs.color); console.info("[testloadingProgressCircular0011] color value :" + obj.$attrs.color);
console.info("[gwxtestloadingProgressCircular0011] width value :" + obj.$attrs.width); console.info("[testloadingProgressCircular0011] width value :" + obj.$attrs.width);
console.info("[gwxtestloadingProgressCircular0011] margin value :" + obj.$attrs.margin); console.info("[testloadingProgressCircular0011] margin value :" + obj.$attrs.margin);
done(); done();
}); });
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import router from '@system.router'; import router from '@system.router';
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index" import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index"
import Utils from './Utils.ets' import Utils from './Utils.ets'
...@@ -91,4 +92,4 @@ export default function routerStandardJsunit() { ...@@ -91,4 +92,4 @@ export default function routerStandardJsunit() {
console.info('testrouterSingle_0001 END'); console.info('testrouterSingle_0001 END');
}); });
}) })
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册