| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 Copyright (c) 2015 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 |
| 13 <title>iron-validatable-behavior tests</title> |
| 14 |
| 15 <meta charset="utf-8"> |
| 16 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 17 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initia
l-scale=1, user-scalable=yes"> |
| 18 |
| 19 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 20 |
| 21 <script src="../../web-component-tester/browser.js"></script> |
| 22 <script src="../../test-fixture/test-fixture-mocha.js"></script> |
| 23 |
| 24 <link rel="import" href="../../test-fixture/test-fixture.html"> |
| 25 <link rel="import" href="test-validatable.html"> |
| 26 |
| 27 </head> |
| 28 <body> |
| 29 |
| 30 <test-fixture id="basic"> |
| 31 <template> |
| 32 <test-validatable></test-validatable> |
| 33 </template> |
| 34 </test-fixture> |
| 35 |
| 36 <script> |
| 37 |
| 38 suite('basic', function() { |
| 39 |
| 40 test('setting `invalid` sets `aria-invalid=true`', function() { |
| 41 var node = fixture('basic'); |
| 42 node.invalid = true; |
| 43 assert.equal(node.getAttribute('aria-invalid'), 'true', 'aria-invalid is
set'); |
| 44 node.invalid = false; |
| 45 assert.isFalse(node.hasAttribute('aria-invalid'), 'aria-invalid is unset
'); |
| 46 }); |
| 47 |
| 48 }); |
| 49 |
| 50 </script> |
| 51 |
| 52 </body> |
| OLD | NEW |