update handling of deleted recording files
This commit is contained in:
parent
3a7ed6f85f
commit
dd2b5bc15e
20 changed files with 79 additions and 45 deletions
|
@ -23,6 +23,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<link rel="import" href="../../test-fixture/test-fixture.html">
|
||||
<link rel="import" href="../neon-animated-pages.html">
|
||||
<link rel="import" href="../neon-animatable.html">
|
||||
<link rel="import" href="../animations/slide-from-top-animation.html">
|
||||
<link rel="import" href="../animations/slide-down-animation.html">
|
||||
<link rel="import" href="test-resizable-pages.html">
|
||||
|
||||
</head>
|
||||
|
@ -45,6 +48,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<test-fixture id="animate-initial-selection">
|
||||
<template>
|
||||
<neon-animated-pages entry-animation="slide-from-left-animation" exit-animation="slide-right-animation" animate-initial-selection>
|
||||
<neon-animatable></neon-animatable>
|
||||
<neon-animatable></neon-animatable>
|
||||
</neon-animated-pages>
|
||||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<script>
|
||||
suite('basic', function() {
|
||||
});
|
||||
|
@ -68,6 +80,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
}, 50);
|
||||
});
|
||||
});
|
||||
suite('animate-initial-selection', function() {
|
||||
test('\'neon-animation-finish\' event fired after animating initial selection', function(done) {
|
||||
var animatedPages = fixture('animate-initial-selection');
|
||||
assert.isUndefined(animatedPages.selected);
|
||||
var pages = Polymer.dom(animatedPages).children;
|
||||
animatedPages.addEventListener('neon-animation-finish', function(event) {
|
||||
assert.strictEqual(animatedPages.selected, 0);
|
||||
assert.isFalse(event.detail.fromPage);
|
||||
assert.deepEqual(event.detail.toPage, pages[0]);
|
||||
done();
|
||||
});
|
||||
animatedPages.selected = 0;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue