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

Side by Side Diff: polymer_0.5.0/bower_components/core-dropdown-menu/test/a11y.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <!--
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 -->
10 <html>
11 <head>
12 <meta charset="UTF-8">
13 <title>paper-dropdown-menu basic tests</title>
14 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum- scale=1.0">
15
16 <script src="../../webcomponentsjs/webcomponents.js"></script>
17 <script src="../../web-component-tester/browser.js"></script>
18
19 <link href="../../core-dropdown/core-dropdown.html" rel="import">
20 <link href="../../core-item/core-item.html" rel="import">
21 <link href="../../core-menu/core-menu.html" rel="import">
22
23 <link href="../core-dropdown-menu.html" rel="import">
24
25 <style>
26 core-collapse {
27 border: 1px solid black;
28 }
29 </style>
30
31 </head>
32 <body>
33
34 <core-dropdown-menu id="dropdown1" label="Your favorite dessert">
35 <core-dropdown class="dropdown">
36 <core-menu id="menu1">
37 <core-item>Cupcake</core-item>
38 <core-item>Donut</core-item>
39 <core-item>Eclair</core-item>
40 <core-item>Froyo</core-item>
41 <core-item>Gingerbread</core-item>
42 <core-item>Honeycomb</core-item>
43 <core-item>Ice cream sandwich</core-item>
44 <core-item>Jellybean</core-item>
45 <core-item>Kit Kat</core-item>
46 <core-item>Lollipop</core-item>
47 </core-menu>
48 </core-dropdown>
49 </core-dropdown-menu>
50
51 <script>
52
53 function flushLayoutAndRender(callback) {
54 flush(function() {
55 document.body.offsetTop;
56 requestAnimationFrame(function() {
57 callback();
58 });
59 });
60 }
61
62 var d1 = document.getElementById('dropdown1');
63 var m1 = document.getElementById('menu1');
64
65 test('aria-disabled is set', function(done) {
66 assert.ok(!d1.hasAttribute('aria-disabled'));
67 d1.setAttribute('disabled', '');
68 flush(function() {
69 assert.ok(d1.hasAttribute('aria-disabled'));
70 d1.removeAttribute('disabled');
71 done();
72 });
73 });
74
75 </script>
76
77 </body>
78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698