Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9b4388d7
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
9b4388d7
编写于
5月 12, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 12, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3162 Remove some test cases
Merge pull request !3162 from qigongming/master_0511
上级
eb6baccb
f6aa7174
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
807 deletion
+0
-807
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/ContinuousTaskJsunit.test.js
...ger/src/main/js/default/test/ContinuousTaskJsunit.test.js
+0
-26
resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js
...isticsjsunit/src/main/js/default/test/BundleState.test.js
+0
-781
未找到文件。
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/default/test/ContinuousTaskJsunit.test.js
浏览文件 @
9b4388d7
...
...
@@ -466,32 +466,6 @@ describe("ContinuousTaskJsTest", function () {
done
();
})
/*
* @tc.name: ContinuousTaskJsTest015
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest015
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------ContinuousTaskJsTest015---------------------------
'
);
let
value1
=
backgroundTaskManager
.
BackgroundMode
.
WIFI_INTERACTION
;
expect
(
value1
).
assertEqual
(
7
)
done
();
})
/*
* @tc.name: ContinuousTaskJsTest016
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest016
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------ContinuousTaskJsTest016---------------------------
'
);
let
value1
=
backgroundTaskManager
.
BackgroundMode
.
VOIP
;
expect
(
value1
).
assertEqual
(
8
)
done
();
})
/*
* @tc.name: ContinuousTaskJsTest017
* @tc.desc: test work scheduler constant
...
...
resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/default/test/BundleState.test.js
浏览文件 @
9b4388d7
...
...
@@ -99,504 +99,6 @@ describe('bundlestate', function() {
console
.
info
(
'
queryAppUsagePriorityGroup_002 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0003
* @tc.name: queryBundleStateInfos_003.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_003
'
,
0
,
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_003 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfos
(
timer
.
startTime
,
timer
.
endTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_003 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_003 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertInstanceOf
(
'
Object
'
);
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_003 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0004
* @tc.name: queryBundleStateInfos_004.
* @tc.desc: Execute queryBundleStateInfos with promise.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_004
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_004 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfos
(
timer
.
startTime
,
timer
.
endTime
).
then
((
res
)
=>
{
console
.
info
(
'
queryBundleStateInfos_004 promise success result =
'
+
JSON
.
stringify
(
res
));
expect
(
res
).
assertInstanceOf
(
'
Object
'
);
done
();
}).
catch
((
err
)
=>
{
console
.
info
(
'
queryBundleStateInfos_004 promise fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
done
();
})
console
.
info
(
'
queryBundleStateInfos_004 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0005
* @tc.name: queryBundleStateInfos_005.
* @tc.desc: Execute queryBundleStateInfos with promise.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_005
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_005 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfos
(
timer
.
startTime
,
'
endTime
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_005 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_005 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_005 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0006
* @tc.name: queryBundleStateInfos_006.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_006
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_006 start
'
);
bundlestate
.
queryBundleStateInfos
(
'
startTime
'
,
1923746
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_006 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_006 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_006 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0007
* @tc.name: queryBundleStateInfos_007.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_007
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_007 start
'
);
bundlestate
.
queryBundleStateInfos
(
''
,
1923746
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_007 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_007 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_007 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0008
* @tc.name: queryBundleStateInfos_008.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_008
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_008 start
'
);
bundlestate
.
queryBundleStateInfos
(
true
,
true
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_008 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_008 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_008 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0009
* @tc.name: queryBundleStateInfos_009.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_009
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_009 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfos
(
''
,
''
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_009 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_009 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_009 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0010
* @tc.name: queryBundleStateInfos_010.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_010
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_010 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfos
(
timer
.
startTime
,
timer
.
startTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_010 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_010 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_010 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0011
* @tc.name: queryBundleStateInfos_011.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_011
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_011 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfos
(
timer
.
endTime
,
timer
.
startTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_011 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_011 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_011 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0012
* @tc.name: queryBundleStateInfos_012.
* @tc.desc: Execute queryBundleStateInfos with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfos_012
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfos_012 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfos
(
null
,
-
1
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfos_012 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfos_012 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfos_012 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0013
* @tc.name: queryBundleStateInfoByInterval_013.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_013
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_013 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfoByInterval
(
byInterval
,
timer
.
startTime
,
timer
.
endTime
,
(
err
,
data
)
=>
{
console
.
info
(
"
***
"
+
byInterval
+
"
***
"
+
typeof
byInterval
)
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_013 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_013 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertInstanceOf
(
'
Array
'
);
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_013 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0014
* @tc.name: queryBundleStateInfoByInterval_014.
* @tc.desc: Execute queryBundleStateInfoByInterval with promise.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_014
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_014 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfoByInterval
(
byInterval
,
timer
.
startTime
,
timer
.
endTime
).
then
((
data
)
=>
{
console
.
info
(
'
queryBundleStateInfoByInterval_014 promise success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertInstanceOf
(
'
Array
'
);
done
();
}).
catch
((
err
)
=>
{
console
.
info
(
'
queryBundleStateInfoByInterval_014 promise fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
done
();
})
console
.
info
(
'
queryBundleStateInfoByInterval_014 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0015
* @tc.name: queryBundleStateInfoByInterval_015.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_015
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_015 start
'
);
bundlestate
.
queryBundleStateInfoByInterval
(
null
,
0
,
0
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_015 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_015 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_015 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0016
* @tc.name: queryBundleStateInfoByInterval_016.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_016
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_016 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfoByInterval
(
byInterval
,
'
startTime
'
,
timer
.
endTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_016 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_016 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_016 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0017
* @tc.name: queryBundleStateInfoByInterval_017.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_017
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_017 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfoByInterval
(
-
1
,
timer
.
startTime
,
timer
.
endTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_017 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_017 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_017 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0018
* @tc.name: queryBundleStateInfoByInterval_018.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_018
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_018 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfoByInterval
(
byInterval
,
timer
.
startTime
,
true
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_018 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_018 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_018 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0019
* @tc.name: queryBundleStateInfoByInterval_019.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_019
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_019 start
'
);
bundlestate
.
queryBundleStateInfoByInterval
(
byInterval
,
'
timer.startTime
'
,
123
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_019 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_019 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_019 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0020
* @tc.name: queryBundleStateInfoByInterval_020.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_020
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_020 start
'
);
bundlestate
.
queryBundleStateInfoByInterval
(
null
,
null
,
null
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_020 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_020 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_020 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0021
* @tc.name: queryBundleStateInfoByInterval_021.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_021
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_021 start
'
);
bundlestate
.
queryBundleStateInfoByInterval
(
null
,
null
,
null
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_021 callback fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_021 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_021 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0022
* @tc.name: queryBundleStateInfoByInterval_022.
* @tc.desc: Execute queryBundleStateInfoByInterval with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleStateInfoByInterval_022
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_022 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfoByInterval
(
byInterval
,
timer
.
endTime
,
timer
.
startTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleStateInfoByInterval_022 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleStateInfoByInterval_022 callback success result =
'
+
JSON
.
stringify
(
res
));
expect
(
res
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleStateInfoByInterval_022 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_0023
* @tc.name: merge_023.
* @tc.desc: Execute merge with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
merge_023
'
,
0
,
function
(
done
)
{
console
.
info
(
'
bundle merge_023 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleStateInfoByInterval
(
byInterval
,
timer
.
startTime
,
timer
.
endTime
).
then
(
res
=>
{
console
.
info
(
"
&&&&&&&
"
+
JSON
.
stringify
(
res
));
try
{
let
ret
=
bundlestate
.
BundleStateInfo
.
merge
(
toMerge
);
expect
(
ret
).
assertUndefined
()
}
catch
(
e
)
{
console
.
info
(
'
bundle merge_023 failed
'
);
let
err
=
0
;
expect
(
err
).
assertEqual
(
0
);
}
done
()
})
console
.
info
(
'
merge_023 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0024
* @tc.name: merge_024.
...
...
@@ -731,289 +233,6 @@ describe('bundlestate', function() {
console
.
info
(
'
merge_028 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0029
* @tc.name: queryBundleActiveStates_029.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_029
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_029 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
timer
.
startTime
,
timer
.
endTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_029 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertFail
();
done
();
}
else
{
console
.
info
(
'
queryBundleActiveStates_029 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertInstanceOf
(
'
Array
'
);
}
done
();
});
console
.
info
(
'
queryBundleActiveStahdctes_029 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0030
* @tc.name: queryBundleActiveStates_030.
* @tc.desc: Execute queryBundleActiveStates with promise.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_030
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_030 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
timer
.
startTime
,
timer
.
endTime
).
then
((
data
)
=>
{
console
.
info
(
'
queryBundleActiveStates_030 promise success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertInstanceOf
(
'
Array
'
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
queryBundleActiveStates_030 promise fail result =
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
data
).
assertFail
();
})
done
();
console
.
info
(
'
queryBundleActiveStates_030 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0031
* @tc.name: queryBundleActiveStates_031.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_031
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_031 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
3.1415
,
timer
.
endTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_031 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_031 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertInstanceOf
(
'
Array
'
);
}
done
();
});
console
.
info
(
'
queryBundleActiveStahdctes_031 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0032
* @tc.name: queryBundleActiveStates_032.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_032
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_032 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
timer
.
startTime
,
"
endTime
"
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_032 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_032 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_032 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0033
* @tc.name: queryBundleActiveStates_033.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_033
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_033 start
'
);
bundlestate
.
queryBundleActiveStates
(
'
startTime
'
,
-
1
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_033 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_033 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_033 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0034
* @tc.name: queryBundleActiveStates_034.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_034
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_034 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
'
timer.startTime
'
,
timer
.
endTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_034 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_034 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_034 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0035
* @tc.name: queryBundleActiveStates_035.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_035
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_035 start
'
);
bundlestate
.
queryBundleActiveStates
(
'
timer.startTime
'
,
'
timer.endTime
'
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_035 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_035 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_035 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0036
* @tc.name: queryBundleActiveStates_036.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_036
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_036 start
'
);
bundlestate
.
queryBundleActiveStates
(
'
timer.startTime
'
,
true
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_036 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_036 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_036 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0037
* @tc.name: queryBundleActiveStates_037.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_037
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_037 start
'
);
bundlestate
.
queryBundleActiveStates
(
''
,
''
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_037 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_037 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_037 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0038
* @tc.name: queryBundleActiveStates_038.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_038
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_038 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
''
,
timer
.
endTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_038 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_038 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_038 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0039
* @tc.name: queryBundleActiveStates_039.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_039
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_039 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
timer
.
endTime
,
timer
.
startTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_039 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_039 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_039 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0040
* @tc.name: queryBundleActiveStates_040.
* @tc.desc: Execute queryBundleActiveStates with callback.
* @tc.size: MEDIUM
* @tc.type: Function
* @tc.level: level 0
*/
it
(
'
queryBundleActiveStates_040
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
queryBundleActiveStates_040 start
'
);
let
timer
=
onInit
();
bundlestate
.
queryBundleActiveStates
(
timer
.
startTime
,
timer
.
startTime
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
queryBundleActiveStates_040 callback fail result =
'
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
queryBundleActiveStates_040 callback success result =
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertFail
();
}
done
();
});
console
.
info
(
'
queryBundleActiveStates_040 end
'
);
})
/*
* @tc.number: SUB_INTELLITV_JS_BUNDLE_0041
* @tc.name: queryCurrentBundleActiveStates_041.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录