You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ta...@apache.org on 2017/06/30 03:25:05 UTC
[4/5] incubator-weex git commit: * [html5] fix test for
getHeadStyleMap & @notdanger
* [html5] fix test for getHeadStyleMap & @notdanger
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/d20e0d88
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/d20e0d88
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/d20e0d88
Branch: refs/heads/0.14-dev
Commit: d20e0d8829e7601ac1a23da0fd77a2ae5b2a39aa
Parents: 6fea967
Author: MrRaindrop <te...@gmail.com>
Authored: Thu Jun 29 15:41:41 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Thu Jun 29 15:41:41 2017 +0800
----------------------------------------------------------------------
html5/test/render/vue/core/scope-style-map.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/d20e0d88/html5/test/render/vue/core/scope-style-map.js
----------------------------------------------------------------------
diff --git a/html5/test/render/vue/core/scope-style-map.js b/html5/test/render/vue/core/scope-style-map.js
index 38ec2a4..29bea0c 100644
--- a/html5/test/render/vue/core/scope-style-map.js
+++ b/html5/test/render/vue/core/scope-style-map.js
@@ -64,6 +64,10 @@ describe('style map', () => {
* get style map.
*/
window._no_remove_style_sheets = false
+ // clear mark set in other test cases.
+ Array.from(document.styleSheets).forEach(function (styleSheet) {
+ styleSheet.ownerNode.removeAttribute('weex-scanned')
+ })
const styleMap = getHeadStyleMap()
window._no_remove_style_sheets = true