Skip to content

Commit c685500

Browse files
committed
fix attribute interpolation tests in IE10/11
1 parent 9facca5 commit c685500

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/unit/specs/compiler/compile_spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,13 @@ if (_.inBrowser) {
478478
c: 'ccc'
479479
}
480480
})
481-
expect(el.innerHTML).toBe('<div id="aaa" class="b ccc d"></div>')
481+
expect(el.firstChild.id).toBe('aaa')
482+
expect(el.firstChild.className).toBe('b ccc d')
482483
vm.a = 'aa'
483484
vm.c = 'cc'
484485
_.nextTick(function () {
485-
expect(el.innerHTML).toBe('<div id="aa" class="b cc d"></div>')
486+
expect(el.firstChild.id).toBe('aa')
487+
expect(el.firstChild.className).toBe('b cc d')
486488
done()
487489
})
488490
})

0 commit comments

Comments
 (0)