diff --git a/pages.json b/pages.json index c51e53eba701f0490885a41f507f1d72f0cae299..6adfed4037fdb50569b26b52424f99281de7b886 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 a98e0552fd40e46e5306dde0bf3da94ca306b6dc..1fc25191d4eeb56bba009e6398f0566a64f70166 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); }