Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e98cecf0
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,发现更多精彩内容 >>
提交
e98cecf0
编写于
8月 19, 2022
作者:
Z
zhangxinyue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fix
Signed-off-by:
N
zhangxinyue
<
zhangxinyue38@huawei.com
>
上级
47adfa34
变更
49
隐藏空白更改
内联
并排
Showing
49 changed file
with
61 addition
and
59 deletion
+61
-59
arkui/ace_ets_component/entry/src/main/ets/MainAbility/app.ets
.../ace_ets_component/entry/src/main/ets/MainAbility/app.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/global.ets
...component/entry/src/main/ets/MainAbility/pages/global.ets
+6
-4
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/touch.ets
..._component/entry/src/main/ets/MainAbility/pages/touch.ets
+2
-2
arkui/ace_ets_component/entry/src/main/ets/TestAbility/app.ets
.../ace_ets_component/entry/src/main/ets/TestAbility/app.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/AppearJsunit.test.ets
...s_component/entry/src/main/ets/test/AppearJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/AreaChangeJsunit.test.ets
...mponent/entry/src/main/ets/test/AreaChangeJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/ColumnJsunit.test.ets
...s_component/entry/src/main/ets/test/ColumnJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/EllipseJsunit.test.ets
..._component/entry/src/main/ets/test/EllipseJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/EnableJsunit.test.ets
...s_component/entry/src/main/ets/test/EnableJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/FlexJsunit.test.ets
...ets_component/entry/src/main/ets/test/FlexJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/GaugeJsunit.test.ets
...ts_component/entry/src/main/ets/test/GaugeJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/GlobalJsunit.test.ets
...s_component/entry/src/main/ets/test/GlobalJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/GridContainerJsunit.test.ets
...nent/entry/src/main/ets/test/GridContainerJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/GridSettingsJsunit.test.ets
...onent/entry/src/main/ets/test/GridSettingsJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/ImageEffectsJsunit.test.ets
...onent/entry/src/main/ets/test/ImageEffectsJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/LayoutConstraintsJsunit.test.ets
.../entry/src/main/ets/test/LayoutConstraintsJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/ListJsunit.test.ets
...ets_component/entry/src/main/ets/test/ListJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/MarqueeJsunit.test.ets
..._component/entry/src/main/ets/test/MarqueeJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/OverlayJsunit.test.ets
..._component/entry/src/main/ets/test/OverlayJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/StepperJsunit.test.ets
..._component/entry/src/main/ets/test/StepperJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
...s_component/entry/src/main/ets/test/SwiperJsunit.test.ets
+3
-3
arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets
...omponent/entry/src/main/ets/test/TextStyleJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/TouchAbleJsunit.test.ets
...omponent/entry/src/main/ets/test/TouchAbleJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/TouchJsunit.test.ets
...ts_component/entry/src/main/ets/test/TouchJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/VisibilityJsunit.test.ets
...mponent/entry/src/main/ets/test/VisibilityJsunit.test.ets
+1
-1
arkui/ace_ets_component/entry/src/main/ets/test/ZIndexJsunit.test.ets
...s_component/entry/src/main/ets/test/ZIndexJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/MainAbility/app.ets
...i/ace_ets_standard/entry/src/main/ets/MainAbility/app.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/TestAbility/app.ets
...i/ace_ets_standard/entry/src/main/ets/TestAbility/app.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/BadgeJsunit.test.ets
...ets_standard/entry/src/main/ets/test/BadgeJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/BlankJsunit.test.ets
...ets_standard/entry/src/main/ets/test/BlankJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ButtonJsunit.test.ets
...ts_standard/entry/src/main/ets/test/ButtonJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ColumnJsunit.test.ets
...ts_standard/entry/src/main/ets/test/ColumnJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ColumnSplitJsunit.test.ets
...andard/entry/src/main/ets/test/ColumnSplitJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/CounterJsunit.test.ets
...s_standard/entry/src/main/ets/test/CounterJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/DataPanelJsunit.test.ets
...standard/entry/src/main/ets/test/DataPanelJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/DividerJsunit.test.ets
...s_standard/entry/src/main/ets/test/DividerJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/FlexJsunit.test.ets
..._ets_standard/entry/src/main/ets/test/FlexJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/GridContainerJsunit.test.ets
...dard/entry/src/main/ets/test/GridContainerJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ImageJsunit.test.ets
...ets_standard/entry/src/main/ets/test/ImageJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/PanelJsunit.test.ets
...ets_standard/entry/src/main/ets/test/PanelJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ProgressJsunit.test.ets
..._standard/entry/src/main/ets/test/ProgressJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/QrcodeJsunit.test.ets
...ts_standard/entry/src/main/ets/test/QrcodeJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/RatingJsunit.test.ets
...ts_standard/entry/src/main/ets/test/RatingJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/RowSplitJsunit.test.ets
..._standard/entry/src/main/ets/test/RowSplitJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/ScrollJsunit.test.ets
...ts_standard/entry/src/main/ets/test/ScrollJsunit.test.ets
+2
-2
arkui/ace_ets_standard/entry/src/main/ets/test/SliderJsunit.test.ets
...ts_standard/entry/src/main/ets/test/SliderJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/SpanJsunit.test.ets
..._ets_standard/entry/src/main/ets/test/SpanJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/StackJsunit.test.ets
...ets_standard/entry/src/main/ets/test/StackJsunit.test.ets
+1
-1
arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
..._ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
+4
-4
未找到文件。
arkui/ace_ets_component/entry/src/main/ets/MainAbility/app.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '
hypium/index
'
import { Hypium } from '
@ohos/hypium
'
import testsuite from '../test/List.test'
export default {
...
...
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/global.ets
浏览文件 @
e98cecf0
...
...
@@ -18,7 +18,9 @@
@Component
struct GlobalExample {
private settings: RenderingContextSettings = new RenderingContextSettings (true)
private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings)
private offContext: OffscreenCanvasRenderingContext2D = new OffscreenCanvasRenderingContext2D(300, 300, this.settings);
onPageShow() {
console.info("global page called")
...
...
@@ -53,8 +55,8 @@ struct GlobalExample {
}
testOffscreenCanvas() {
var off
screen
= new OffscreenCanvas(300, 300);
var offCanvas2 =
offscreen
.getContext("2d");
var off
Context
= new OffscreenCanvas(300, 300);
var offCanvas2 =
this.offContext
.getContext("2d");
var img = new Image();
img.src = "/images/bg.jpg";
offCanvas2.drawImage(img, 0, 0, 100, 100);
...
...
@@ -64,8 +66,8 @@ struct GlobalExample {
}
testImageData() {
var off
screen
= new OffscreenCanvas(300, 300);
var offCanvas2 =
offscreen
.getContext("2d");
var off
Context
= new OffscreenCanvas(300, 300);
var offCanvas2 =
this.offContext
.getContext("2d");
var imageData = offCanvas2.createImageData(100, 100);
var imgData = imageData.data;
console.log("imageData_width=" + imageData.width);
...
...
arkui/ace_ets_component/entry/src/main/ets/MainAbility/pages/touch.ets
浏览文件 @
e98cecf0
...
...
@@ -78,8 +78,8 @@ struct TouchExample {
console.info('onTouch successful, touchFlag is : ' + this.eventType + ', ' + this.touchFlag)
console.info(this.text = 'TouchType:' + this.eventType
+ '\nDistance between touch point and touch element:\nx: '
+ event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\ncomponent globalPos:('
+ event.target.area.globalPos
.x + ',' + event.target.area.globalPos
.y + ')\nwidth:'
+ event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\ncomponent globalPos
ition
:('
+ event.target.area.globalPos
ition.x + ',' + event.target.area.globalPosition
.y + ')\nwidth:'
+ event.target.area.width + '\nheight:' + event.target.area.height);
console.log('fang--->A')
try {
...
...
arkui/ace_ets_component/entry/src/main/ets/TestAbility/app.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '
hypium/index
'
import { Hypium } from '
@ohos/hypium
'
import testsuite from '../test/List.test'
export default {
...
...
arkui/ace_ets_component/entry/src/main/ets/test/AppearJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter'
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/AreaChangeJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter'
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/ColumnJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
";
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
";
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/EllipseJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
";
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
";
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/EnableJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter'
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/FlexJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@ohos.events.emitter';
import Utils from './Utils.ets';
import router from '@system.router';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/GaugeJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
";
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
";
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/GlobalJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/GridContainerJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/GridSettingsJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/ImageEffectsJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/LayoutConstraintsJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/ListJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
";
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
";
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/MarqueeJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import Utils from './Utils.ets';
import events_emitter from '@ohos.events.emitter';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/OverlayJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter'
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/StepperJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import Utils from './Utils.ets';
import events_emitter from '@ohos.events.emitter';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/SwiperJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import Utils from './Utils.ets';
import events_emitter from '@ohos.events.emitter';
...
...
@@ -127,7 +127,7 @@ export default function swiperJsunit() {
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_0600 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.index).assertEqual('
3
');
expect(objNew.$attrs.index).assertEqual('
4
');
console.info('swiperTest_0600 END');
done();
});
...
...
@@ -466,7 +466,7 @@ export default function swiperJsunit() {
let strJsonNew = getInspectorByKey('swiper');
let objNew = JSON.parse(strJsonNew);
console.info("swiperTest_1900 component objNew is: " + JSON.stringify(objNew));
expect(objNew.$attrs.duration).assertEqual('
0.000000
');
expect(objNew.$attrs.duration).assertEqual('
nan
');
console.info('swiperTest_1900 END');
done();
});
...
...
arkui/ace_ets_component/entry/src/main/ets/test/TextStyleJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/TouchAbleJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import Utils from './Utils.ets';
import events_emitter from '@ohos.events.emitter';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/TouchJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter'
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/VisibilityJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
";
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
";
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_component/entry/src/main/ets/test/ZIndexJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
import events_emitter from '@ohos.events.emitter';
import Utils from './Utils.ets';
...
...
arkui/ace_ets_standard/entry/src/main/ets/MainAbility/app.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '
hypium/index
'
import { Hypium } from '
@ohos/hypium
'
import testsuite from '../test/List.test'
export default {
...
...
arkui/ace_ets_standard/entry/src/main/ets/TestAbility/app.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '
hypium/index
'
import { Hypium } from '
@ohos/hypium
'
import testsuite from '../test/List.test'
export default {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/BadgeJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function badgeJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/BlankJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function blankJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ButtonJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function buttonJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ColumnJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function columnJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ColumnSplitJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function columnSplitJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/CounterJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function counterJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/DataPanelJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function datapanelJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/DividerJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function dividerJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/FlexJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function flexJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/GridContainerJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function gridContainerJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ImageJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function imageJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/PanelJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function panelJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ProgressJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function progressJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/QrcodeJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function qrcodeJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/RatingJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function ratingJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/RowSplitJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function rowSplitJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/ScrollJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function ScrollJsunit() {
...
...
@@ -89,7 +89,7 @@ export default function ScrollJsunit() {
console.log("cd scroll1 scrollable" + JSON.stringify(obj.$attrs.scrollable));
console.log("cd scroll1 scrollBar" + JSON.stringify(obj.$attrs.scrollBar));
expect(obj.$attrs.scrollable).assertEqual('ScrollDirection.Horizontal')
expect(obj.$attrs.scrollBar).assertEqual('BarState.
Off
')
expect(obj.$attrs.scrollBar).assertEqual('BarState.
Auto
')
console.info('cd Scorll1GetInspectorByKey END');
done();
});
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/SliderJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function sliderJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/SpanJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function spanJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/StackJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function StackJsunit() {
...
...
arkui/ace_ets_standard/entry/src/main/ets/test/TextJsunit.test.ets
浏览文件 @
e98cecf0
...
...
@@ -14,7 +14,7 @@
*/
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
hypium/index
"
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "
@ohos/hypium
"
import router from '@system.router';
export default function textJsunit() {
...
...
@@ -93,7 +93,7 @@ export default function textJsunit() {
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bold")
expect(obj.$attrs.fontStyle).assertEqual("FontStyle.Italic")
expect(obj.$attrs.fontFamily).assertEqual("sans-serif")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
End
")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Center
")
expect(obj.$attrs.textOverflow).assertEqual("TextOverflow.Ellipsis")
expect(obj.$attrs.lineHeight).assertEqual("15.00fp")
expect(obj.$attrs.baselineOffset).assertEqual("0")
...
...
@@ -125,7 +125,7 @@ export default function textJsunit() {
expect(obj.$attrs.enabled).assertEqual(true)
expect(obj.$attrs.visibility).assertEqual("Visibility.Hidden")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Normal")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Star
t")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Lef
t")
expect(obj.$attrs.textOverflow).assertEqual("TextOverflow.Clip")
expect(obj.$attrs.decoration).assertEqual(JSON.stringify({
type: "TextDecorationType.LineThrough", color: "#FFFF0000"
...
...
@@ -150,7 +150,7 @@ export default function textJsunit() {
expect(obj.$attrs.borderStyle).assertEqual("BorderStyle.Solid")
expect(obj.$attrs.visibility).assertEqual("Visibility.None")
expect(obj.$attrs.fontWeight).assertEqual("FontWeight.Bolder")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Center
")
expect(obj.$attrs.textAlign).assertEqual("TextAlign.
Right
")
expect(obj.$attrs.textCase).assertEqual("TextCase.UpperCase")
expect(obj.$attrs.decoration).assertEqual(JSON.stringify({
type: "TextDecorationType.None", color: "#FFFF0000"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录