提交 47be1ba4 编写于 作者: D dhc-123

update testcase

Signed-off-by: Ndhc-123 <duanhaochen2@huawei.com>
上级 74c7eecf
......@@ -29,9 +29,9 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_1900
* @tc.number SUB_WINDOW_MOVETO_JSAPI_007
* @tc.name Test moveTestNegative.
* @tc.desc Test window.moveTo API function test.
* @tc.desc Test window.moveTo API function test7.
*/
it('moveTestNegative', 0,function(){
console.log('jsunittest moveTestNegative begin')
......@@ -47,9 +47,9 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2000
* @tc.number SUB_WINDOW_RESETSIZE_JSAPI_006
* @tc.name Test resetSizeTestLoop.
* @tc.desc Test window.resetSize API function test.
* @tc.desc Test window.resetSize API function test6.
*/
it('resetSizeLoop', 0, function(){
var width = 100;
......@@ -71,15 +71,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2100
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_008
* @tc.name Test setWindowTypeTestZero.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test8.
*/
it('setWindowTypeTestZero', 0, function(){
console.log('jsunittest setWindowTypeTestZero begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTestZero getTopWindow wnd: ' + wnd)
wnd.setWindowType(0).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_APP).then(()=>{
console.log('jsunittest setWindowTypeTestZero wnd.setWindowType(0) success')
})
wnd.moveTo(200,200).then(()=>{
......@@ -92,15 +92,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2200
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_009
* @tc.name Test setWindowTypeTestThirty.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test9.
*/
it('setWindowTypeTestThirty', 0, function(){
console.log('jsunittest setWindowTypeTestThirty begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTestThirty getTopwindow wnd: ' + wnd)
wnd.setWindowType(30).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_SYSTEM_ALTER).then(()=>{
console.log('jsunittest setWindowTypeTestThirty wnd.setWindowType(30) success')
})
wnd.moveTo(200, 200).then(()=>{
......@@ -113,15 +113,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2300
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_010
* @tc.name Test setWindowTypeTestSeventy.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test10.
*/
it('setWindowTypeTestSeventy', 0, function(){
console.log('jsunittest setWindowTypeTestSeventy begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTestSeventy getTopwindow wnd: ' + wnd)
wnd.setWindowType(70).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_SYSTEM_VOLUME).then(()=>{
console.log('jsunittest setWindowTypeTestSeventy wnd.setWindowType(70) success')
})
wnd.moveTo(200, 200).then(()=>{
......@@ -134,15 +134,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2400
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_012
* @tc.name Test setWindowTypeTestNinety.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test12.
*/
it('setWindowTypeTestNinety', 0, function(){
console.log('jsunittest setWindowTypeTestNinety begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTestNinety getTopwindow wnd: ' + wnd)
wnd.setWindowType(90).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_SYSTEM_PANEL).then(()=>{
console.log('jsunittest setWindowTypeTestNinety wnd.setWindowType(90) success')
})
wnd.moveTo(200, 200).then(()=>{
......@@ -155,15 +155,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2500
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_011
* @tc.name Test setWindowTypeTestOrderChange.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test11.
*/
it('setWindowTypeTestOrderChange', 0, function(){
console.log('jsunittest setWindowTypeTestOrderChange begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTestOrderChange getTopwindow wnd: ' + wnd)
wnd.setWindowType(0).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_APP).then(()=>{
console.log('jsunittest setWindowTypeTestOrderChange wnd.setWindowType(0) success')
})
wnd.resetSize(200, 200).then(()=>{
......@@ -176,15 +176,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2600
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_013
* @tc.name Test setWindowTypeTest15.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test13.
*/
it('setWindowTypeTest15', 0, function(){
console.log('jsunittest setWindowTypeTest15 begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTest15 getTopwindow wnd: ' + wnd)
wnd.setWindowType(30).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_SYSTEM_ALTER).then(()=>{
console.log('jsunittest setWindowTypeTest15 wnd.setWindowType(30) success')
})
wnd.resetSize(200, 200).then(()=>{
......@@ -197,15 +197,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2700
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_014
* @tc.name Test setWindowTypeTest16.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test14.
*/
it('setWindowTypeTest16', 0, function(){
console.log('jsunittest setWindowTypeTest16 begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTest16 getTopwindow wnd: ' + wnd)
wnd.setWindowType(70).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_SYSTEM_VOLUME).then(()=>{
console.log('jsunittest setWindowTypeTest16 wnd.setWindowType(70) success')
})
wnd.resetSize(200, 200).then(()=>{
......@@ -218,15 +218,15 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2800
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_015
* @tc.name Test setWindowTypeTest17.
* @tc.desc Test window.setWindowType API function test.
* @tc.desc Test window.setWindowType API function test15.
*/
it('setWindowTypeTest17', 0, function(){
console.log('jsunittest setWindowTypeTest17 begin')
window.getTopwindow().then(wnd => {
console.log('jsunittest setWindowTypeTest17 getTopwindow wnd: ' + wnd)
wnd.setWindowType(90).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_SYSTEM_PANEL).then(()=>{
console.log('jsunittest setWindowTypeTest17 wnd.setWindowType(90) success')
})
wnd.resetSize(200, 200).then(()=>{
......@@ -239,9 +239,9 @@ describe('window_test', function(){
})
/**
* @tc.number GRAPHIC__FUNCTION_WINDOW_TESTWINDOW_JS_API_2900
* @tc.number SUB_WINDOW_MOVETO_JSAPI_006
* @tc.name Test moveTest6.
* @tc.desc Test window.moveTo API function test.
* @tc.desc Test window.moveTo API function test6.
*/
it('moveTest6', 0, function(){
console.log('jsunittest moveTest6 begin')
......
......@@ -28,9 +28,9 @@ describe('window_test', function(){
afterAll(function(){
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0100
* @tc.number SUB_WINDOW_GETTOPWINDOW_JSAPI_001
* @tc.name Test getTopWindowTest.
* @tc.desc Test window.getTopWindow API function test.
* @tc.desc Test window.getTopWindow API function test.
*/
it('getTopWindowTest', 0, function(){
console.log('jsunittest getTopWindowTest begin')
......@@ -40,9 +40,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0200
* @tc.number SUB_WINDOW_MOVETO_JSAPI_001
* @tc.name Test movetest1.
* @tc.desc Test window.moveTo API function test1.
* @tc.desc Test window.moveTo API function test1.
*/
it('moveTest1', 0, function(){
console.log('jsunittest movetest1 begin')
......@@ -54,9 +54,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0300
* @tc.number SUB_WINDOW_MOVETO_JSAPI_002
* @tc.name Test moveTest2.
* @tc.desc Test window.moveTo API function test2.
* @tc.desc Test window.moveTo API function test2.
*/
it('moveTest2', 0, function(){
console.log('jsunittest movetest2 begin')
......@@ -71,9 +71,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0400
* @tc.number SUB_WINDOW_MOVETO_JSAPI_003
* @tc.name Test moveTest3.
* @tc.desc Test window.moveTo API function test3.
* @tc.desc Test window.moveTo API function test3.
*/
it('moveTest3', 0, function(){
console.log('jsunittest movetest3 begin')
......@@ -85,9 +85,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0500
* @tc.number SUB_WINDOW_MOVETO_JSAPI_004
* @tc.name Test moveTest4.
* @tc.desc Test window.moveTo API function test4.
* @tc.desc Test window.moveTo API function test4.
*/
it('moveTest4', 0, function(){
console.log('jsunittest movetest4 begin')
......@@ -99,9 +99,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0600
* @tc.number SUB_WINDOW_MOVETO_JSAPI_005
* @tc.name Test moveTest5.
* @tc.desc Test window.moveTo API function test5.
* @tc.desc Test window.moveTo API function test5.
*/
it('moveTest5', 0, function(){
console.log('jsunittest movetest5 begin')
......@@ -115,23 +115,23 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0700
* @tc.number SUB_WINDOW_RESETSIZE_JSAPI_001
* @tc.name Test resetSizeTest1.
* @tc.desc Test window.resetSize API function test1.
* @tc.desc Test window.resetSize API function test1.
*/
it('resetSizeTest1', 0, function(){
console.log('jsunittest resetSizeTest1 begin')
window.getTopWindow().then(wnd => {
console.log('jsunittest resetSizeTest1 getTopWindow wnd: ' + wnd)
wnd.resetSize(200, 600).then(()=>{
console.log('jsunittest resetSizeTest wnd.resetSize(200, 600) success')
console.log('jsunittest resetSizeTes1t wnd.resetSize(200, 600) success')
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0800
* @tc.number SUB_WINDOW_RESETSIZE_JSAPI_002
* @tc.name Test resetSizeTest2.
* @tc.desc Test window.resetSize API function test2.
* @tc.desc Test window.resetSize API function test2.
*/
it('resetSizeTest2', 0, function(){
console.log('jsunittest resetSizeTest2 begin')
......@@ -143,9 +143,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_0900
* @tc.number SUB_WINDOW_RESETSIZE_JSAPI_003
* @tc.name Test resetSizeTest3.
* @tc.desc Test window.resetSize API function test3.
* @tc.desc Test window.resetSize API function test3.
*/
it('resetSizeTest3', 0, function(){
console.log('jsunittest resetSizeTest3 begin')
......@@ -157,9 +157,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1000
* @tc.number SUB_WINDOW_RESETSIZE_JSAPI_004
* @tc.name Test resetSizeTest4.
* @tc.desc Test window.resetSize API function test4.
* @tc.desc Test window.resetSize API function test4.
*/
it('resetSizeTest4', 0, function(){
console.log('jsunittest resetSizeTest4 begin')
......@@ -171,9 +171,9 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1100
* @tc.number SUB_WINDOW_RESETSIZE_JSAPI_005
* @tc.name Test resetSizeTest5.
* @tc.desc Test window.resetSize API function test5.
* @tc.desc Test window.resetSize API function test5.
*/
it('resetSizeTest5', 0, function(){
console.log('jsunittest resetSizeTest5 begin')
......@@ -187,46 +187,46 @@ describe('window_test', function(){
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1200
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_001
* @tc.name Test setWindowTypeTest1.
* @tc.desc Test window.setWindowType API function test1.
* @tc.desc Test window.setWindowType API function test1.
*/
it('setWindowTypeTest1', 0, function(){
console.log('jsunittest setWindowTypeTest1 begin')
window.getTopWindow().then(wnd => {
console.log('jsunittest setWindowTypeTest1 getTopWindow wnd: ' + wnd)
wnd.setWindowType(0).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_APP).then(()=>{
console.log('jsunittest setWindowTypeTest1 wnd.setWindowType(0) success')
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1300
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_002
* @tc.name Test setWindowTypeTest2.
* @tc.desc Test window.setWindowType API function test2.
* @tc.desc Test window.setWindowType API function test2.
*/
it('setWindowTypeTest2', 0, function(){
console.log('jsunittest setWindowTypeTest2 begin')
window.getTopWindow().then(wnd => {
console.log('jsunittest setWindowTypeTest2 getTopWindow wnd: ' + wnd)
wnd.setWindowType(0).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_APP).then(()=>{
console.log('jsunittest setWindowTypeTest2 wnd.setWindowType(0) success')
})
wnd.moveTo(200, 200).then(()=>{
console.log('jsunittest setWindowType1 wnd.moveTo(200, 200) success')
console.log('jsunittest setWindowTypeTest2 wnd.moveTo(200, 200) success')
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1400
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_003
* @tc.name Test setWindowTypeTest3.
* @tc.desc Test window.setWindowType API function test3.
* @tc.desc Test window.setWindowType API function test3.
*/
it('setWindowTypeTest3', 0, function(){
console.log('jsunittest setWindowTypeTest3 begin')
window.getTopWindow().then(wnd => {
console.log('jsunittest setWindowTypeTest3 getTopWindow wnd: ' + wnd)
wnd.setWindowType(0).then(()=>{
wnd.setWindowType(window.WindowType.TYPE_APP).then(()=>{
console.log('jsunittest setWindowTypeTest3 wnd.setWindowType(0) success')
})
wnd.resetSize(200, 400).then(()=>{
......@@ -234,10 +234,11 @@ describe('window_test', function(){
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1500
* @tc.name Test setWindowTypeTest4.
* @tc.desc Test window.setWindowType API function test4.
* @tc.number SUB_WINDOW_SETWINDOWTYPE_JSAPI_004
* @tc.name Test setWindowTypeTest4
* @tc.desc Test window.setWindowType API function test4.
*/
it('setWindowTypeTest4', 0, function(){
console.log('jsunittest setWindowTypeTest4 begin')
......@@ -246,56 +247,11 @@ describe('window_test', function(){
wnd.setWindowType(1).then(()=>{
console.log('jsunittest setWindowTypeTest4 wnd.setWindowType(1) success')
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1600
* @tc.name Test setWindowTypeTest5.
* @tc.desc Test window.setWindowType API function test5.
*/
it('setWindowTypeTest5', 0, function(){
console.log('jsunittest setWindowTypeTest5 begin')
window.getTopWindow().then(wnd => {
console.log('jsunittest setWindowTypeTest5 getTopWindow wnd: ' + wnd)
wnd.setWindowType(1).then(()=>{
console.log('jsunittest setWindowTypeTest5 wnd.setWindowType(1) success')
})
wnd.moveTo(100, 100).then(()=>{
console.log('jsunittest setWindowTypeTest5 wnd.moveTo(100, 100) success')
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1700
* @tc.name Test setWindowTypeTest6.
* @tc.desc Test window.setWindowType API function test6.
*/
it('setWindowTypeTest6', 0, function(){
console.log('jsunittest setWindowTypeTest6 begin')
window.getTopWindow().then(wnd => {
console.log('jsunittest setWindowTypeTest6 getTopWindow wnd: ' + wnd)
wnd.setWindowType(1).then(()=>{
console.log('jsunittest setWindowTypeTest6 wnd.setWindowType(1) success')
})
wnd.resetSize(100, 100).then(()=>{
console.log('jsunittest setWindowTypeTest6 wnd.resetSize(100, 100) success')
})
})
})
/**
* @tc.number GRAPHIC_FUNCTION_WINDOW_TESTWINDOW_JSNAPI_1800
* @tc.name Test setWindowTypeTest7.
* @tc.desc Test window.setWindowType API function test7.
*/
it('setWindowTypeTest7', 0, function(){
console.log('jsunittest setWindowTypeTest7 begin')
window.getTopWindow().then(wnd => {
console.log('jsunittest setWindowTypeTest7 getTopWindow wnd: ' + wnd)
wnd.setWindowType(10).then(()=>{
console.log('jsunittest setWindowTypeTest7 wnd.setWindowType(10) success')
console.log('jsunittest setWindowTypeTest4 wnd.moveTo(100, 100) success')
})
wnd.resetSize(400, 400).then(()=>{
console.log('jsunittest setWindowTypeTest7 wnd.resetSize(400, 400) success')
wnd.resetSize(100, 100).then(()=>{
console.log('jsunittest setWindowTypeTest4 wnd.resetSize(100, 100) success')
})
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册