Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 327aa5b

Browse files
committed
Correct test to work with native HTMLImports.
1 parent 8e8b87a commit 327aa5b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/html/property-changes.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
</template>
1616
<script>
1717
(function() {
18+
var changes = 0;
19+
var doneChanges = 2;
20+
function checkDone() {
21+
if (doneChanges == ++changes) {
22+
done();
23+
}
24+
}
25+
1826
Polymer('x-test', {
1927
bar: '',
2028
ready: function() {
@@ -32,14 +40,6 @@
3240
checkDone();
3341
}
3442
});
35-
36-
changes = 0;
37-
doneChanges = 2;
38-
function checkDone() {
39-
if (doneChanges == ++changes) {
40-
done();
41-
}
42-
}
4343
})();
4444
</script>
4545
</polymer-element>

0 commit comments

Comments
 (0)