From 4a95a4dbfac96240e293041d48faebc2c9bca2e3 Mon Sep 17 00:00:00 2001 From: Dexter Miguel Date: Thu, 17 Nov 2016 00:00:12 -0800 Subject: [PATCH] destroyed elements pass their styles onto others that are similar --- test/unit/features/directives/style.spec.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/unit/features/directives/style.spec.js b/test/unit/features/directives/style.spec.js index a902081e9f5..3ce6ab29388 100644 --- a/test/unit/features/directives/style.spec.js +++ b/test/unit/features/directives/style.spec.js @@ -277,4 +277,22 @@ describe('Directive v-bind:style', () => { expect(style.marginLeft).toBe('40px') }).then(done) }) + + it('should not merge for different adjacent elements', (done) => { + const vm = new Vue({ + template: '
' + + '
' + + '
' + + '
' + + '
', + data: { + bool: false + } + }).$mount() + waitForUpdate(() => { + vm.bool = true + }).then(() => { + expect(vm.$el.children[1].style.color).not.toBe('blue') + }).then(done) + }) })