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

Side by Side Diff: polymer_1.0.4/bower_components/paper-behaviors/test/paper-radio-button-behavior.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
12 <html>
13 <head>
14 <title>paper-radio-button-behavior</title>
15
16 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
17 <script src="../../web-component-tester/browser.js"></script>
18 <script src="../../test-fixture/test-fixture-mocha.js"></script>
19 <script src="../../iron-test-helpers/mock-interactions.js"></script>
20
21 <link rel="import" href="../../polymer/polymer.html">
22 <link rel="import" href="../../test-fixture/test-fixture.html">
23 <link rel="import" href="test-radio-button.html">
24 </head>
25 <body>
26
27 <test-fixture id="basic">
28 <template>
29 <test-radio-button></test-radio-button>
30 </template>
31 </test-fixture>
32
33 <script>
34 suite('basic', function() {
35 var button;
36 var ink;
37
38 setup(function() {
39 button = fixture('basic');
40 ink = button.querySelector('paper-ripple');
41 MockInteractions.blur(button);
42 });
43
44 test('normal (no states)', function() {
45 assert.isFalse(button.focused);
46 assert.isFalse(ink._animating);
47 assert.equal(ink.ripples.length, 0);
48 });
49
50 test('receives focus', function() {
51 MockInteractions.focus(button);
52
53 assert.isTrue(button.focused);
54 assert.isTrue(ink._animating);
55 assert.equal(ink.ripples.length, 1);
56 });
57
58 });
59 </script>
60
61 </body>
62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698