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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-card/test/basic.html

Issue 1401633002: Update Polymer from 1.1.4 -> 1.1.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dzhioev@ review Created 5 years, 2 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 <meta charset="UTF-8">
14 <title>paper-card a11y tests</title>
15 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum- scale=1.0">
16
17 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
18 <script src="../../web-component-tester/browser.js"></script>
19 <script src="../../test-fixture/test-fixture-mocha.js"></script>
20
21 <link rel="import" href="../../test-fixture/test-fixture.html">
22 <link rel="import" href="../paper-card.html">
23
24 <style>
25 paper-card {
26 width: 400px;
27 }
28 </style>
29
30 </head>
31 <body>
32 <test-fixture id="basic">
33 <template>
34 <paper-card heading="header">
35 <div class="card-content"><p>Sample content</p></div>
36 </paper-card>
37 </template>
38 </test-fixture>
39
40 <script>
41 suite('a11y', function() {
42 test('aria-label set on card', function() {
43 var f = fixture('basic');
44 assert.strictEqual(f.getAttribute('aria-label'), f.heading);
45 });
46
47 test('aria-label can be updated', function() {
48 var f = fixture('basic');
49 assert.strictEqual(f.getAttribute('aria-label'), f.heading);
50 f.heading = 'batman';
51 assert.strictEqual(f.getAttribute('aria-label'), 'batman');
52 });
53 });
54 </script>
55
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698