You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the relevant portion of my my-element-test.html file:
<test-fixture id="cached-page-summary-fixture">
<template>
<cached-page-summary>
<h2>seed-element</h2>
</cached-page-summary>
</template>
</test-fixture>
<script>
suite('<cached-page-summary>', function() {
var myEl;
setup(function() {
myEl = fixture('cached-page-summary-fixture', {captureUrl: 'the url'});
});
test('heading is captureUrl', function() {
var urlDiv = myEl.$$('#txt-url');
// this will obviously fail, but used for logging purposes
assert.equal(urlDiv, boundData.captureUrl);
});
});
</script>
When I run this I see urlDiv in the error message (console.log wasn't working for me), and the div is empty, without captureUrl bound and inserted into the function. What am I doing wrong here? Am I mis-using Polymer? Mis-using test-fixture?
The text was updated successfully, but these errors were encountered:
I'm struggling to get data binding to work.
I'm defining a custom element in a
my-element.html
file, like follows:Here is the relevant portion of my
my-element-test.html
file:When I run this I see
urlDiv
in the error message (console.log
wasn't working for me), and thediv
is empty, withoutcaptureUrl
bound and inserted into the function. What am I doing wrong here? Am I mis-using Polymer? Mis-usingtest-fixture
?The text was updated successfully, but these errors were encountered: