From b9dda4c5b22beed16017414b67ee4c0f45585ccb Mon Sep 17 00:00:00 2001 From: anne-xml Date: Tue, 10 Dec 2024 19:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4element-get-attribute?= =?UTF-8?q?=E5=9C=A8pages.json=E7=9A=84=E6=9D=A1=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/API/element-get-attribute/element-get-attribute.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pages.json b/pages.json index c51e53eb..6adfed40 100644 --- a/pages.json +++ b/pages.json @@ -1049,7 +1049,7 @@ } }, // #endif - // #ifdef MP-WEIXIN + // #ifdef APP-ANDROID || APP-IOS || WEB || MP-WEIXIN { "path" : "pages/API/element-get-attribute/element-get-attribute", "group": "1,30", diff --git a/pages/API/element-get-attribute/element-get-attribute.test.js b/pages/API/element-get-attribute/element-get-attribute.test.js index a98e0552..1fc25191 100644 --- a/pages/API/element-get-attribute/element-get-attribute.test.js +++ b/pages/API/element-get-attribute/element-get-attribute.test.js @@ -14,6 +14,7 @@ describe('test element-get-attribute', () => { await page.callMethod('setStyle') if(platform != 'app-plus'){ 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);' expect(await page.data('attrStyle')).toEqual(attrStyle); } -- GitLab