提交 c60d28be 编写于 作者: I inter515

修改编译问题+适配用例

Signed-off-by: Ninter515 <ry.renyi@huawei.com>
上级 f0ecba6a
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import file from '@system.file'; import file from '@system.file';
import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index.ets" import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index"
import testsuite from "../../test/List.test.ets" import testsuite from "../../test/List.test.ets"
......
...@@ -675,7 +675,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -675,7 +675,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
...@@ -1226,7 +1226,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1226,7 +1226,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
...@@ -1249,7 +1249,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1249,7 +1249,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
...@@ -1273,7 +1273,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1273,7 +1273,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
...@@ -1297,7 +1297,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1297,7 +1297,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
...@@ -1320,7 +1320,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1320,7 +1320,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
...@@ -1342,7 +1342,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1342,7 +1342,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
...@@ -1364,7 +1364,7 @@ describe('ActsBundleManagerTest', function () { ...@@ -1364,7 +1364,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.name.length).assertLarger(0); expect(data[i].appInfo.name.length).assertLarger(0);
if (data[i].name == NAME1 || data[i].name == NAME2 if (data[i].name == NAME1 || data[i].name == NAME2
|| data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) { || data[i].name == NAME3 || data[i].name == NAME4 || data[i].name == NAME5) {
expect(datainfo[i].description.length >= 0).assertTrue(); expect(data[i].appInfo.description.length >= 0).assertTrue();
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +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 commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
const injectRef = Object.getPrototypeOf(global) || global const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册