OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 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 | 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 | 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 | 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 | 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 | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
| 10 <script src="mock-interactions.js"></script> |
| 11 <script src="test-helpers.js"></script> |
10 <script> | 12 <script> |
| 13 (function(global) { |
| 14 'use strict'; |
11 | 15 |
12 Polymer.Base._addFeature({ | 16 var TestHelpers = global.TestHelpers = global.TestHelpers || {}; |
13 | 17 |
14 _prepIs: function() { | 18 TestHelpers.flushAsynchronousOperations = flushAsynchronousOperations; |
15 if (!this.is) { | 19 TestHelpers.forceXIfStamp = forceXIfStamp; |
16 var module = | 20 TestHelpers.fireEvent = fireEvent; |
17 (document._currentScript || document.currentScript).parentNode; | 21 })(this); |
18 if (module.localName === 'dom-module') { | |
19 var id = module.id || module.getAttribute('name') | |
20 || module.getAttribute('is') | |
21 this.is = id; | |
22 } | |
23 } | |
24 } | |
25 | |
26 }); | |
27 | |
28 </script> | 22 </script> |
OLD | NEW |