update polymer
This commit is contained in:
parent
22a5e48860
commit
61d616c330
44 changed files with 447 additions and 156 deletions
|
@ -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