Skip to content

Commit fea8c48

Browse files
committed
simplify test slightly.
1 parent 1279f9d commit fea8c48

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/html/mdv-syntax.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</polymer-element>
5151

5252
<!-- expressions -->
53-
<polymer-element name="mdv-expression" attributes="test">
53+
<polymer-element name="mdv-expression" attributes="test" lightdom>
5454
<template>
5555
<template bind="{{test.math as m}}">
5656
<template if="{{ m.a > 0 }}">
@@ -71,13 +71,13 @@
7171
<script>
7272
Polymer('mdv-expression', {
7373
runTests: function() {
74-
var d = this.shadowRoot.querySelectorAll('div');
74+
var d = this.querySelectorAll('div');
7575
for (var i = 0; i < d.length; i++) {
7676
assert.equal(d[i].textContent, this.test.math.expected[i]);
7777
}
78-
assert.ok(this.shadowRoot.querySelector('#conditional'));
79-
assert.ok(this.shadowRoot.querySelector('pre').classList.contains('bar'));
80-
assert.equal(this.shadowRoot.querySelector('#inception').textContent, document.querySelector('mdv-holder').offsetTop);
78+
assert.ok(this.querySelector('#conditional'));
79+
assert.ok(this.querySelector('pre').classList.contains('bar'));
80+
assert.equal(this.querySelector('#inception').textContent, document.querySelector('mdv-holder').offsetTop);
8181
}
8282
});
8383
</script>
@@ -98,7 +98,7 @@
9898
this.$.math.runTests();
9999
},
100100
ready: function() {
101-
this.onMutation(this.$.math.shadowRoot, function() {
101+
this.onMutation(this.$.math, function() {
102102
this.runTests();
103103
done();
104104
});

0 commit comments

Comments
 (0)