提交 3ea7c329 编写于 作者: O openharmony_ci 提交者: Gitee

!579 modify testcases on 20210911

Merge pull request !579 from 杨清/0911
...@@ -25,7 +25,7 @@ describe('resMgrTest', function () { ...@@ -25,7 +25,7 @@ describe('resMgrTest', function () {
*/ */
it('getResourceManager_test_001', 0, async function (done) { it('getResourceManager_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
expect(mgr != null).assertTrue(); expect(mgr !== null).assertTrue();
}) })
done(); done();
}) })
...@@ -37,7 +37,7 @@ describe('resMgrTest', function () { ...@@ -37,7 +37,7 @@ describe('resMgrTest', function () {
*/ */
it('getResourceManager_test_002', 0, async function (done) { it('getResourceManager_test_002', 0, async function (done) {
resmgr.getResourceManager("com.ohos.settings", (error, mgr) => { resmgr.getResourceManager("com.ohos.settings", (error, mgr) => {
expect(mgr != null).assertTrue(); expect(mgr !== null).assertTrue();
}) })
done(); done();
}) })
...@@ -49,7 +49,7 @@ describe('resMgrTest', function () { ...@@ -49,7 +49,7 @@ describe('resMgrTest', function () {
*/ */
it('getResourceManager_test_003', 0, async function (done) { it('getResourceManager_test_003', 0, async function (done) {
resmgr.getResourceManager().then(mgr => { resmgr.getResourceManager().then(mgr => {
expect(mgr != null).assertTrue(); expect(mgr !== null).assertTrue();
}) })
done(); done();
}) })
...@@ -61,7 +61,7 @@ describe('resMgrTest', function () { ...@@ -61,7 +61,7 @@ describe('resMgrTest', function () {
*/ */
it('getResourceManager_test_004', 0, async function (done) { it('getResourceManager_test_004', 0, async function (done) {
resmgr.getResourceManager("com.ohos.settings").then(mgr => { resmgr.getResourceManager("com.ohos.settings").then(mgr => {
expect(mgr != null).assertTrue(); expect(mgr !== null).assertTrue();
}) })
done(); done();
}) })
...@@ -74,7 +74,7 @@ describe('resMgrTest', function () { ...@@ -74,7 +74,7 @@ describe('resMgrTest', function () {
it('getString_test_001', 0, async function (done) { it('getString_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getString(0x1000000, (err, value) => { mgr.getString(0x1000000, (err, value) => {
expect(value != null).assertTrue(); expect(value !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -88,7 +88,7 @@ describe('resMgrTest', function () { ...@@ -88,7 +88,7 @@ describe('resMgrTest', function () {
it('getString_test_002', 0, async function (done) { it('getString_test_002', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getString(0x1000000).then(value => { mgr.getString(0x1000000).then(value => {
expect(value != null).assertTrue(); expect(value !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -102,7 +102,7 @@ describe('resMgrTest', function () { ...@@ -102,7 +102,7 @@ describe('resMgrTest', function () {
it('getStringArray_test_001', 0, async function (done) { it('getStringArray_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getStringArray(0x1000002, (err, value) => { mgr.getStringArray(0x1000002, (err, value) => {
expect(value != null).assertTrue(); expect(value !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -116,7 +116,7 @@ describe('resMgrTest', function () { ...@@ -116,7 +116,7 @@ describe('resMgrTest', function () {
it('getStringArray_test_002', 0, async function (done) { it('getStringArray_test_002', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getStringArray(0x1000002).then(value => { mgr.getStringArray(0x1000002).then(value => {
expect(value != null).assertTrue(); expect(value !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -186,7 +186,7 @@ describe('resMgrTest', function () { ...@@ -186,7 +186,7 @@ describe('resMgrTest', function () {
it('getConfiguration_test_001', 0, async function (done) { it('getConfiguration_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getConfiguration((error, cfg) => { mgr.getConfiguration((error, cfg) => {
expect(cfg != null).assertTrue(); expect(cfg !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -200,7 +200,7 @@ describe('resMgrTest', function () { ...@@ -200,7 +200,7 @@ describe('resMgrTest', function () {
it('getConfiguration_test_002', 0, async function (done) { it('getConfiguration_test_002', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getConfiguration().then(cfg => { mgr.getConfiguration().then(cfg => {
expect(cfg != null).assertTrue(); expect(cfg !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -214,7 +214,7 @@ describe('resMgrTest', function () { ...@@ -214,7 +214,7 @@ describe('resMgrTest', function () {
it('getDeviceCapability_test_001', 0, async function (done) { it('getDeviceCapability_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getDeviceCapability((error, dc) => { mgr.getDeviceCapability((error, dc) => {
expect(dc != null).assertTrue(); expect(dc !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -228,7 +228,7 @@ describe('resMgrTest', function () { ...@@ -228,7 +228,7 @@ describe('resMgrTest', function () {
it('getDeviceCapability_test_002', 0, async function (done) { it('getDeviceCapability_test_002', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getDeviceCapability().then(dc => { mgr.getDeviceCapability().then(dc => {
expect(dc != null).assertTrue(); expect(dc !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -242,7 +242,7 @@ describe('resMgrTest', function () { ...@@ -242,7 +242,7 @@ describe('resMgrTest', function () {
it('getPluralString_test_001', 0, async function (done) { it('getPluralString_test_001', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getPluralString(0x1000003, 1, (error, value) => { mgr.getPluralString(0x1000003, 1, (error, value) => {
expect(value != null).assertTrue(); expect(value !== null).assertTrue();
}) })
}) })
done(); done();
...@@ -256,7 +256,7 @@ describe('resMgrTest', function () { ...@@ -256,7 +256,7 @@ describe('resMgrTest', function () {
it('getPluralString_test_002', 0, async function (done) { it('getPluralString_test_002', 0, async function (done) {
resmgr.getResourceManager((error, mgr) => { resmgr.getResourceManager((error, mgr) => {
mgr.getPluralString(0x1000003, 1).then(value => { mgr.getPluralString(0x1000003, 1).then(value => {
expect(value != null).assertTrue(); expect(value !== null).assertTrue();
}) })
}) })
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册