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

@ -1,6 +1,6 @@
{
"name": "iron-pages",
"version": "1.0.4",
"version": "1.0.5",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "Organizes a set of pages and shows one at a time",
"main": "iron-pages.html",
@ -31,11 +31,11 @@
},
"ignore": [],
"homepage": "https://github.com/PolymerElements/iron-pages",
"_release": "1.0.4",
"_release": "1.0.5",
"_resolution": {
"type": "version",
"tag": "v1.0.4",
"commit": "238695c7ebf765af321e81c9a5a33a7733f1f6bf"
"tag": "v1.0.5",
"commit": "e248782cb5595849e08454ae863d1ca3b7b94e0b"
},
"_source": "git://github.com/PolymerElements/iron-pages.git",
"_target": "~1.0.2",

View file

@ -11,7 +11,7 @@ env:
- secure: PAn10VQ1AL+FpM/qj2ak7tJe0Epd/RP3FF+jb2eVBXhmUVd9+mBH7nRwYQL4n6fIGXMtJcUkl4t35nwzEegP/nrjZlIslXFT6D/273FbJcbH1SaCsnwLn3Rr0VffwaHC76yLsW7ph2/paAS4iLWS4AeP1c2dAR9zimSpM7Knovs=
node_js: 4
addons:
firefox: '42.0'
firefox: latest
apt:
sources:
- google-chrome

View file

@ -1,6 +1,6 @@
{
"name": "iron-pages",
"version": "1.0.4",
"version": "1.0.5",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "Organizes a set of pages and shows one at a time",
"main": "iron-pages.html",

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>