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

Side by Side Diff: polymer_1.0.4/bower_components/paper-spinner/test/paper-spinner.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <!--
3 @license
4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
8 Code distributed by Google as part of the polymer project is also
9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
10 -->
11 <html>
12 <head>
13
14 <meta charset="UTF-8">
15 <title>paper-spinner basic tests</title>
16 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximu m-scale=1.0">
17
18 <script src="../../webcomponentsjs/webcomponents.js"></script>
19 <script src="../../web-component-tester/browser.js"></script>
20 <script src="../../test-fixture/test-fixture-mocha.js"></script>
21
22 <link href="../../test-fixture/test-fixture.html" rel="import">
23 <link href="../paper-spinner.html" rel="import">
24
25 </head>
26 <body>
27
28 <test-fixture id="PaperSpinner">
29 <template>
30 <paper-spinner></paper-spinner>
31 </template>
32 </test-fixture>
33
34 <script>
35 'use strict';
36
37 suite('<paper-spinner>', function() {
38
39 suite('an accessible paper spinner', function() {
40 var spinner;
41
42 setup(function() {
43 spinner = fixture('PaperSpinner');
44 });
45
46 test('adds an ARIA label when `alt` is supplied', function() {
47 var ALT_TEXT = 'Loading the next gif...';
48
49 spinner.alt = ALT_TEXT;
50 expect(spinner.getAttribute('aria-label')).to.be.eql(ALT_TEXT);
51 });
52
53 test('hides from ARIA when inactive', function() {
54 spinner.active = false;
55 expect(spinner.getAttribute('aria-hidden')).to.be.eql('true');
56 });
57 });
58
59 });
60 </script>
61
62 </body>
63 </html>
OLDNEW
« no previous file with comments | « polymer_1.0.4/bower_components/paper-spinner/test/index.html ('k') | polymer_1.0.4/bower_components/paper-styles/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698