Skip to content

Commit

Permalink
need takeRecords in complex var example
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jun 21, 2016
1 parent 26fe9b9 commit b40561b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/smoke/css-gradient-var.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>CSS Gradient in variable</title>
<!-- <script>Polymer={useNativeCSSProperties: true, lazyRegister: true}</script> -->
<link rel="import" href="../../polymer.html">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
</head>
<body>
<style is="custom-style">
Expand Down Expand Up @@ -35,9 +36,11 @@
<div>Hi!</div>
</template>
<script>
Polymer({
is: 'var-el'
})
HTMLImports.whenReady(function() {
Polymer({
is: 'var-el'
})
});
</script>
</dom-module>
<var-el></var-el>
Expand Down
1 change: 1 addition & 0 deletions test/unit/styling-cross-scope-var.html
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@
test('complex fallback for variables work as expected', function() {
var e = document.createElement('x-super-complex');
document.body.appendChild(e);
CustomElements.takeRecords();
assertComputed(e, 'rgb(102, 205, 170)', null, 'color');
});
});
Expand Down

0 comments on commit b40561b

Please sign in to comment.