| Index: polymer_1.2.3/bower_components/paper-spinner/test/paper-spinner.html
|
| diff --git a/polymer_1.0.4/bower_components/paper-spinner/test/paper-spinner.html b/polymer_1.2.3/bower_components/paper-spinner/test/paper-spinner.html
|
| similarity index 72%
|
| copy from polymer_1.0.4/bower_components/paper-spinner/test/paper-spinner.html
|
| copy to polymer_1.2.3/bower_components/paper-spinner/test/paper-spinner.html
|
| index f270c33b78490cc6508c8a49e09d4b94a8d28388..6e05f4ce4f93adbdb147a39111c36f4af24fcbfa 100644
|
| --- a/polymer_1.0.4/bower_components/paper-spinner/test/paper-spinner.html
|
| +++ b/polymer_1.2.3/bower_components/paper-spinner/test/paper-spinner.html
|
| @@ -31,6 +31,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| </template>
|
| </test-fixture>
|
|
|
| + <test-fixture id="ActivePaperSpinner">
|
| + <template>
|
| + <paper-spinner active></paper-spinner>
|
| + </template>
|
| + </test-fixture>
|
| +
|
| <script>
|
| 'use strict';
|
|
|
| @@ -38,9 +44,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| suite('an accessible paper spinner', function() {
|
| var spinner;
|
| + var activeSpinner;
|
|
|
| setup(function() {
|
| spinner = fixture('PaperSpinner');
|
| + activeSpinner = fixture('ActivePaperSpinner');
|
| });
|
|
|
| test('adds an ARIA label when `alt` is supplied', function() {
|
| @@ -54,6 +62,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| spinner.active = false;
|
| expect(spinner.getAttribute('aria-hidden')).to.be.eql('true');
|
| });
|
| +
|
| + test('toggle during cooldown', function(done) {
|
| + activeSpinner.active = false;
|
| +
|
| + // Set active to true before cooldown animation completes.
|
| + setTimeout(function() {
|
| + activeSpinner.active = true;
|
| +
|
| + // Wait for cooldown animation to complete.
|
| + setTimeout(function() {
|
| + expect(activeSpinner.active).to.equal(true);
|
| + done();
|
| + }, 500);
|
| + }, 100);
|
| + });
|
| });
|
|
|
| });
|
|
|