Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
155bfba0
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
155bfba0
编写于
3月 15, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 15, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2438 【communication】修改 xts 代码检视问题
Merge pull request !2438 from 权力/myfeature1
上级
614af8b0
379c2010
变更
34
隐藏空白更改
内联
并排
Showing
34 changed file
with
254 addition
and
60 deletion
+254
-60
communication/BUILD.gn
communication/BUILD.gn
+1
-1
communication/bluetooth_ble/src/main/js/default/pages/index/index.css
...n/bluetooth_ble/src/main/js/default/pages/index/index.css
+15
-0
communication/bluetooth_ble/src/main/js/default/pages/index/index.hml
...n/bluetooth_ble/src/main/js/default/pages/index/index.hml
+15
-0
communication/bluetooth_ble/src/main/js/default/pages/index/index.js
...on/bluetooth_ble/src/main/js/default/pages/index/index.js
+1
-2
communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js
...uetooth_ble/src/main/js/default/test/BluetoothBle.test.js
+36
-25
communication/bluetooth_on/src/main/js/default/pages/index/index.css
...on/bluetooth_on/src/main/js/default/pages/index/index.css
+15
-0
communication/bluetooth_on/src/main/js/default/pages/index/index.hml
...on/bluetooth_on/src/main/js/default/pages/index/index.hml
+15
-0
communication/bluetooth_on/src/main/js/default/pages/index/index.js
...ion/bluetooth_on/src/main/js/default/pages/index/index.js
+1
-3
communication/bluetooth_on/src/main/js/default/test/BluetoothOn.test.js
...bluetooth_on/src/main/js/default/test/BluetoothOn.test.js
+1
-1
communication/bluetooth_standard/src/main/js/default/pages/index/index.css
...etooth_standard/src/main/js/default/pages/index/index.css
+15
-0
communication/bluetooth_standard/src/main/js/default/pages/index/index.hml
...etooth_standard/src/main/js/default/pages/index/index.hml
+15
-0
communication/bluetooth_standard/src/main/js/default/pages/index/index.js
...uetooth_standard/src/main/js/default/pages/index/index.js
+1
-2
communication/bluetooth_standard/src/main/js/default/test/Bluetooth.test.js
...tooth_standard/src/main/js/default/test/Bluetooth.test.js
+1
-1
communication/wifi_hotspot/BUILD.gn
communication/wifi_hotspot/BUILD.gn
+1
-1
communication/wifi_hotspot/src/main/js/default/app.js
communication/wifi_hotspot/src/main/js/default/app.js
+1
-1
communication/wifi_hotspot/src/main/js/default/pages/index/index.css
...on/wifi_hotspot/src/main/js/default/pages/index/index.css
+16
-0
communication/wifi_hotspot/src/main/js/default/pages/index/index.hml
...on/wifi_hotspot/src/main/js/default/pages/index/index.hml
+16
-0
communication/wifi_hotspot/src/main/js/default/pages/index/index.js
...ion/wifi_hotspot/src/main/js/default/pages/index/index.js
+5
-4
communication/wifi_hotspot/src/main/js/default/test/List.test.js
...cation/wifi_hotspot/src/main/js/default/test/List.test.js
+1
-1
communication/wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
.../wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
+1
-1
communication/wifi_p2p/BUILD.gn
communication/wifi_p2p/BUILD.gn
+1
-1
communication/wifi_p2p/src/main/js/default/app.js
communication/wifi_p2p/src/main/js/default/app.js
+1
-1
communication/wifi_p2p/src/main/js/default/pages/index/index.css
...cation/wifi_p2p/src/main/js/default/pages/index/index.css
+16
-0
communication/wifi_p2p/src/main/js/default/pages/index/index.hml
...cation/wifi_p2p/src/main/js/default/pages/index/index.hml
+16
-0
communication/wifi_p2p/src/main/js/default/pages/index/index.js
...ication/wifi_p2p/src/main/js/default/pages/index/index.js
+6
-4
communication/wifi_p2p/src/main/js/default/test/List.test.js
communication/wifi_p2p/src/main/js/default/test/List.test.js
+1
-1
communication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
...ication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
+1
-1
communication/wifi_standard/BUILD.gn
communication/wifi_standard/BUILD.gn
+1
-1
communication/wifi_standard/src/main/js/default/app.js
communication/wifi_standard/src/main/js/default/app.js
+1
-1
communication/wifi_standard/src/main/js/default/pages/index/index.css
...n/wifi_standard/src/main/js/default/pages/index/index.css
+15
-0
communication/wifi_standard/src/main/js/default/pages/index/index.hml
...n/wifi_standard/src/main/js/default/pages/index/index.hml
+16
-0
communication/wifi_standard/src/main/js/default/pages/index/index.js
...on/wifi_standard/src/main/js/default/pages/index/index.js
+4
-5
communication/wifi_standard/src/main/js/default/test/List.test.js
...ation/wifi_standard/src/main/js/default/test/List.test.js
+1
-1
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
...on/wifi_standard/src/main/js/default/test/WifiSta.test.js
+1
-1
未找到文件。
communication/BUILD.gn
浏览文件 @
155bfba0
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
communication/bluetooth_ble/src/main/js/default/pages/index/index.css
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
communication/bluetooth_ble/src/main/js/default/pages/index/index.hml
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
communication/bluetooth_ble/src/main/js/default/pages/index/index.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -13,7 +13,6 @@
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
...
...
communication/bluetooth_ble/src/main/js/default/test/BluetoothBle.test.js
浏览文件 @
155bfba0
...
...
@@ -157,7 +157,7 @@ describe('bluetoothhostTest', function() {
* @tc.level Level 2
*/
it
(
'
bluetooth_ble_start_advertising
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
BLE advertising start
'
);
console
.
info
(
'
[bluetooth_js]
BLE advertising start
'
);
var
manufactureValueBuffer
=
new
Uint8Array
(
4
);
manufactureValueBuffer
[
0
]
=
1
;
manufactureValueBuffer
[
1
]
=
2
;
...
...
@@ -269,16 +269,22 @@ describe('bluetoothhostTest', function() {
*/
it
(
'
bluetooth_ble_read_rssi
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
[bluetooth_js] BLE get rssi1 start
'
);
var
gattClient
=
bluetooth
.
BLE
.
createGattClientDevice
(
"
00:00:00:00:00:00
"
);
gattClient
.
getRssiValue
((
err
,
data
)
=>
{
console
.
info
(
'
[bluetooth_js] rssi err:
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
[bluetooth_js] rssi value:
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertNull
();
console
.
info
(
'
[bluetooth_js] BLE read rssi1 end
'
);
done
();
});
let
promise
=
new
Promise
((
resolve
)
=>
{
var
gattClient
=
bluetooth
.
BLE
.
createGattClientDevice
(
"
00:00:00:00:00:00
"
);
gattClient
.
getRssiValue
((
err
,
data
)
=>
{
console
.
info
(
'
[bluetooth_js] rssi err:
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
[bluetooth_js] rssi value:
'
+
JSON
.
stringify
(
data
));
expect
(
data
).
assertNull
();
console
.
info
(
'
[bluetooth_js] BLE read rssi1 end
'
);
done
();
});
resolve
()
})
await
promise
.
then
(
done
)
done
();
})
/**
* @tc.number SUB_COMMUNACATION_bluetooth_DEVICE_JS_GET_RSSI_VALUE_PROMISE_0001
* @tc.name testGetRssiValue
...
...
@@ -290,24 +296,29 @@ describe('bluetoothhostTest', function() {
*/
it
(
'
bluetooth_ble_read_rssi_promise
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
[bluetooth_js] BLE get rssi start
'
);
var
gattClient
=
bluetooth
.
BLE
.
createGattClientDevice
(
"
00:00:00:00:00:00
"
);
await
gattClient
.
getRssiValue
().
then
((
data
)
=>
{
if
(
data
!=
null
)
{
console
.
info
(
'
[bluetooth_js] rssi
'
+
JSON
.
stringify
(
data
));
done
();
let
promise
=
new
Promise
((
resolve
)
=>
{
var
gattClient
=
bluetooth
.
BLE
.
createGattClientDevice
(
"
00:00:00:00:00:00
"
);
gattClient
.
getRssiValue
().
then
((
data
)
=>
{
if
(
data
!=
null
)
{
console
.
info
(
'
[bluetooth_js] rssi
'
+
JSON
.
stringify
(
data
));
done
();
expect
(
true
).
assertEqual
(
true
);
}
else
{
console
.
info
(
'
[bluetooth_js] BLE read rssi
'
+
JSON
.
stringify
(
data
));
var
rssiLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[bluetooth_js] ble rssi_length ->
"
+
rssiLength
);
expect
(
rssiLength
).
assertEqual
(
0
);
done
();
}
}).
catch
(
err
=>
{
console
.
error
(
`bluetooth getRssiValue has error:
${
err
}
`
);
expect
(
true
).
assertEqual
(
true
);
}
else
{
console
.
info
(
'
[bluetooth_js] BLE read rssi
'
+
JSON
.
stringify
(
data
));
var
rssiLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[bluetooth_js] ble rssi_length ->
"
+
rssiLength
);
expect
(
rssiLength
).
assertEqual
(
0
);
done
();
}
}).
catch
(
err
=>
{
console
.
error
(
`bluetooth getRssiValue has error:
${
err
}
`
);
expect
(
true
).
assertEqual
(
true
);
done
();
});
});
resolve
()
})
await
promise
.
then
(
done
)
done
();
})
...
...
communication/bluetooth_on/src/main/js/default/pages/index/index.css
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
communication/bluetooth_on/src/main/js/default/pages/index/index.hml
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
communication/bluetooth_on/src/main/js/default/pages/index/index.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -13,8 +13,6 @@
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
export
default
{
...
...
communication/bluetooth_on/src/main/js/default/test/BluetoothOn.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/bluetooth_standard/src/main/js/default/pages/index/index.css
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
communication/bluetooth_standard/src/main/js/default/pages/index/index.hml
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
communication/bluetooth_standard/src/main/js/default/pages/index/index.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -13,7 +13,6 @@
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
...
...
communication/bluetooth_standard/src/main/js/default/test/Bluetooth.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_hotspot/BUILD.gn
浏览文件 @
155bfba0
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
communication/wifi_hotspot/src/main/js/default/app.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_hotspot/src/main/js/default/pages/index/index.css
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
communication/wifi_hotspot/src/main/js/default/pages/index/index.hml
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
communication/wifi_hotspot/src/main/js/default/pages/index/index.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -13,13 +13,14 @@
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
export
default
{
data
:
{
title
:
""
title
:
''
,
myTimeout
:
15000
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
...
...
@@ -37,7 +38,7 @@ export default {
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
this
.
timeout
=
15000
this
.
timeout
=
this
.
myTimeout
configService
.
setConfig
(
this
)
require
(
'
../../test/List.test
'
)
...
...
communication/wifi_hotspot/src/main/js/default/test/List.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_p2p/BUILD.gn
浏览文件 @
155bfba0
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
communication/wifi_p2p/src/main/js/default/app.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_p2p/src/main/js/default/pages/index/index.css
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
communication/wifi_p2p/src/main/js/default/pages/index/index.hml
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
communication/wifi_p2p/src/main/js/default/pages/index/index.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -13,13 +13,14 @@
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
export
default
{
data
:
{
title
:
""
title
:
''
,
myTimeout
:
15000
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
...
...
@@ -37,7 +38,8 @@ export default {
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
this
.
timeout
=
15000
this
.
timeout
=
this
.
myTimeout
configService
.
setConfig
(
this
)
require
(
'
../../test/List.test
'
)
...
...
communication/wifi_p2p/src/main/js/default/test/List.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_standard/BUILD.gn
浏览文件 @
155bfba0
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
communication/wifi_standard/src/main/js/default/app.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_standard/src/main/js/default/pages/index/index.css
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.container
{
flex-direction
:
column
;
justify-content
:
center
;
...
...
communication/wifi_standard/src/main/js/default/pages/index/index.hml
浏览文件 @
155bfba0
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
...
...
communication/wifi_standard/src/main/js/default/pages/index/index.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -13,13 +13,12 @@
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
export
default
{
data
:
{
title
:
""
title
:
''
,
myTimeout
:
15000
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
...
...
@@ -37,7 +36,7 @@ export default {
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
this
.
timeout
=
15000
this
.
timeout
=
this
.
myTimeout
configService
.
setConfig
(
this
)
require
(
'
../../test/List.test
'
)
...
...
communication/wifi_standard/src/main/js/default/test/List.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
浏览文件 @
155bfba0
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录