mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update polymer
This commit is contained in:
parent
22a5e48860
commit
61d616c330
44 changed files with 447 additions and 156 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "iron-iconset-svg",
|
||||
"description": "Manages a set of svg icons",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"keywords": [
|
||||
"web-components",
|
||||
"polymer",
|
||||
|
@ -24,16 +24,17 @@
|
|||
"paper-styles": "polymerelements/paper-styles#^1.0.2",
|
||||
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
|
||||
"iron-icon": "polymerelements/iron-icon#^1.0.0",
|
||||
"promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0",
|
||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"web-component-tester": "*"
|
||||
},
|
||||
"homepage": "https://github.com/polymerelements/iron-iconset-svg",
|
||||
"_release": "1.0.4",
|
||||
"_release": "1.0.5",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.4",
|
||||
"commit": "795aa82ac22971421bc4375efbd2419ebba9099f"
|
||||
"tag": "v1.0.5",
|
||||
"commit": "54d35698c1e06462452997f8731ea31a4bf1638c"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-iconset-svg.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "iron-iconset-svg",
|
||||
"description": "Manages a set of svg icons",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"keywords": [
|
||||
"web-components",
|
||||
"polymer",
|
||||
|
@ -24,6 +24,7 @@
|
|||
"paper-styles": "polymerelements/paper-styles#^1.0.2",
|
||||
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
|
||||
"iron-icon": "polymerelements/iron-icon#^1.0.0",
|
||||
"promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0",
|
||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"web-component-tester": "*"
|
||||
|
|
|
@ -23,7 +23,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
.centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
iron-icon {
|
||||
height: 64px;
|
||||
width: 64px;
|
||||
|
|
|
@ -136,6 +136,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
*/
|
||||
_nameChanged: function() {
|
||||
new Polymer.IronMeta({type: 'iconset', key: this.name, value: this});
|
||||
this.async(function() {
|
||||
this.fire('iron-iconset-added', this, {node: window});
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,6 +22,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<link rel="import" href="../iron-iconset-svg.html">
|
||||
<link rel="import" href="../../iron-meta/iron-meta.html">
|
||||
<link rel="import" href="../../promise-polyfill/promise-polyfill.html">
|
||||
<link rel="import" href="../../test-fixture/test-fixture.html">
|
||||
|
||||
</head>
|
||||
|
@ -55,8 +56,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
suite('basic behavior', function () {
|
||||
var iconset;
|
||||
var meta;
|
||||
var loadedPromise;
|
||||
|
||||
setup(function () {
|
||||
loadedPromise = new Promise(function(resolve) {
|
||||
window.addEventListener('iron-iconset-added', function(ev) {
|
||||
if (ev && ev.detail === iconset) {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
var elements = fixture('TrivialIconsetSvg');
|
||||
iconset = elements[0];
|
||||
meta = elements[1];
|
||||
|
@ -65,6 +74,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
test('it can be accessed via iron-meta', function () {
|
||||
expect(meta.byKey('foo')).to.be.equal(iconset);
|
||||
});
|
||||
|
||||
test('it fires an iron-iconset-added event on the window', function() {
|
||||
return loadedPromise;
|
||||
});
|
||||
});
|
||||
|
||||
suite('when paired with a size and SVG definition', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue