|
10 | 10 | -->
|
11 | 11 |
|
12 | 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 |
| - }); |
| 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); |
57 | 42 | });
|
58 |
| - </script> |
59 | 43 |
|
60 |
| - </body> |
| 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 | + </script> |
| 59 | + |
| 60 | +</body> |
61 | 61 | </html>
|
0 commit comments