“413543eb8f9ff6939eee457974034afcb3e08718”上不存在“...memory/git@gitcode.net:paddlepaddle/PaddleDetection.git”
未验证 提交 86f6a1f9 编写于 作者: O openharmony_ci 提交者: Gitee

!5040 修改引用文件并适配,删除无效用例

Merge pull request !5040 from 高曦/OpenHarmony-3.1-Release
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import screenLock from '@ohos.app.screenlockability';
import screenLock from '@ohos.screenLock';
import {describe, expect, it} from 'deccjsunit/index'
const SLEEP_TIME = 1000;
......@@ -126,18 +126,11 @@ describe('ScreenLockServicePromiseTest', function () {
console.log("ScreenLock_Test_Promise_0400: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
var unlockScreenResult = 0;
var eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult).then((data) => {
console.log("ScreenLock_Test_Promise_0400: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked().then((data) => {
console.log("ScreenLock_Test_Promise_0400: isScreenLocked result is " + data);
expect(data == false).assertTrue();
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
......@@ -172,14 +165,6 @@ describe('ScreenLockServicePromiseTest', function () {
console.log("ScreenLock_Test_Promise_0500: send unlockScreen issue success");
});
sleep(SLEEP_TIME);
var unlockScreenResult = 1;
var eventType = 'unlockScreenResult';
screenLock.sendScreenLockEvent(eventType, unlockScreenResult).then((data) => {
console.log("ScreenLock_Test_Promise_0500: sendScreenLockEvent result is " + data);
expect(data == true).assertTrue();
});
sleep(SLEEP_TIME);
screenLock.isScreenLocked().then((data) => {
console.log("ScreenLock_Test_Promise_0500: isScreenLocked result is " + data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册