Skip to content

Commit

Permalink
simplify test slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Oct 16, 2013
1 parent 1279f9d commit fea8c48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/html/mdv-syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</polymer-element>

<!-- expressions -->
<polymer-element name="mdv-expression" attributes="test">
<polymer-element name="mdv-expression" attributes="test" lightdom>
<template>
<template bind="{{test.math as m}}">
<template if="{{ m.a > 0 }}">
Expand All @@ -71,13 +71,13 @@
<script>
Polymer('mdv-expression', {
runTests: function() {
var d = this.shadowRoot.querySelectorAll('div');
var d = this.querySelectorAll('div');
for (var i = 0; i < d.length; i++) {
assert.equal(d[i].textContent, this.test.math.expected[i]);
}
assert.ok(this.shadowRoot.querySelector('#conditional'));
assert.ok(this.shadowRoot.querySelector('pre').classList.contains('bar'));
assert.equal(this.shadowRoot.querySelector('#inception').textContent, document.querySelector('mdv-holder').offsetTop);
assert.ok(this.querySelector('#conditional'));
assert.ok(this.querySelector('pre').classList.contains('bar'));
assert.equal(this.querySelector('#inception').textContent, document.querySelector('mdv-holder').offsetTop);
}
});
</script>
Expand All @@ -98,7 +98,7 @@
this.$.math.runTests();
},
ready: function() {
this.onMutation(this.$.math.shadowRoot, function() {
this.onMutation(this.$.math, function() {
this.runTests();
done();
});
Expand Down

0 comments on commit fea8c48

Please sign in to comment.