提交 ae027012 编写于 作者: Anne_LXM's avatar Anne_LXM

调整element-get-attribute在pages.json的条件编译

上级 0d430461
...@@ -1049,7 +1049,7 @@ ...@@ -1049,7 +1049,7 @@
} }
}, },
// #endif // #endif
// #ifdef MP-WEIXIN // #ifdef APP-ANDROID || APP-IOS || WEB || MP-WEIXIN
{ {
"path" : "pages/API/element-get-attribute/element-get-attribute", "path" : "pages/API/element-get-attribute/element-get-attribute",
"group": "1,30", "group": "1,30",
......
...@@ -14,6 +14,7 @@ describe('test element-get-attribute', () => { ...@@ -14,6 +14,7 @@ describe('test element-get-attribute', () => {
await page.callMethod('setStyle') await page.callMethod('setStyle')
if(platform != 'app-plus'){ if(platform != 'app-plus'){
await page.callMethod('getAttributeStyle') await page.callMethod('getAttributeStyle')
console.log('attrStyle:',await page.data('attrStyle'))
attrStyle = platform == 'mp-weixin'?'background-color:#FFF000;':'padding: 0.625rem; background-color: rgb(255, 240, 0);' attrStyle = platform == 'mp-weixin'?'background-color:#FFF000;':'padding: 0.625rem; background-color: rgb(255, 240, 0);'
expect(await page.data('attrStyle')).toEqual(attrStyle); expect(await page.data('attrStyle')).toEqual(attrStyle);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册