update sorting menus

This commit is contained in:
Luke Pulverenti 2015-12-10 23:48:28 -05:00
parent 9622aceeca
commit 705a817b12
29 changed files with 361 additions and 222 deletions

View file

@ -19,7 +19,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../web-component-tester/browser.js"></script>
<link rel="import" href="../iron-pages.html">
</head>
<body>
@ -48,8 +48,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.equal(pages.selected, 'page0');
});
test('selected item', function() {
assert.equal(pages.selectedItem, pages.items[0]);
test('selected item', function(done) {
// iron-selector uses observeNodes, which is async.
Polymer.Base.async(function() {
assert.equal(pages.selectedItem, pages.items[0])
done();
}, 1);
});
test('selected item is display:block and all others are display:none', function() {

View file

@ -23,7 +23,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
WCT.loadSuites([
'basic.html',
'attr-for-selected.html'
'attr-for-selected.html',
'basic.html?dom=shadow',
'attr-for-selected.html?dom=shadow'
]);
</script>