Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: polymer_1.2.3/bower_components/paper-spinner/test/paper-spinner.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ });
});
});
« no previous file with comments | « polymer_1.2.3/bower_components/paper-spinner/test/index.html ('k') | polymer_1.2.3/bower_components/paper-styles/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698