| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 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 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 suite('excluded local names', function() { | 51 suite('excluded local names', function() { |
| 52 | 52 |
| 53 var test1, test2; | 53 var test1, test2; |
| 54 | 54 |
| 55 setup(function () { | 55 setup(function () { |
| 56 test1 = fixture('test1'); | 56 test1 = fixture('test1'); |
| 57 test2 = fixture('test2'); | 57 test2 = fixture('test2'); |
| 58 }); | 58 }); |
| 59 | 59 |
| 60 test('default `excludedLocalNames`', function() { | 60 test('default `_excludedLocalNames`', function() { |
| 61 assert.isTrue('template' in test1.excludedLocalNames); | 61 assert.isTrue('template' in test1._excludedLocalNames); |
| 62 assert.isTrue('template' in test2.excludedLocalNames); | 62 assert.isTrue('template' in test2._excludedLocalNames); |
| 63 }); | 63 }); |
| 64 | 64 |
| 65 test('custom `excludedLocalNames`', function() { | 65 test('custom `_excludedLocalNames`', function() { |
| 66 test1.excludedLocalNames.foo = 1; | 66 test1._excludedLocalNames.foo = 1; |
| 67 | 67 |
| 68 assert.isTrue('foo' in test1.excludedLocalNames); | 68 assert.isTrue('foo' in test1._excludedLocalNames); |
| 69 assert.isFalse('foo' in test2.excludedLocalNames); | 69 assert.isFalse('foo' in test2._excludedLocalNames); |
| 70 }); | 70 }); |
| 71 | 71 |
| 72 | 72 |
| 73 test('items', function() { | 73 test('items', function() { |
| 74 test1.excludedLocalNames.span = 1; | 74 test1._excludedLocalNames.span = 1; |
| 75 test2.excludedLocalNames.div = 1; | 75 test2._excludedLocalNames.div = 1; |
| 76 | 76 |
| 77 var NOT_FOUND = -1; | 77 var NOT_FOUND = -1; |
| 78 var items1 = test1.items.map(function(el) { return el.localName; }); | 78 var items1 = test1.items.map(function(el) { return el.localName; }); |
| 79 var items2 = test2.items.map(function(el) { return el.localName; }); | 79 var items2 = test2.items.map(function(el) { return el.localName; }); |
| 80 | 80 |
| 81 assert.equal(items1.indexOf('span'), NOT_FOUND); | 81 assert.equal(items1.indexOf('span'), NOT_FOUND); |
| 82 assert.equal(items2.indexOf('div'), NOT_FOUND); | 82 assert.equal(items2.indexOf('div'), NOT_FOUND); |
| 83 }); | 83 }); |
| 84 | 84 |
| 85 }); | 85 }); |
| 86 | 86 |
| 87 </script> | 87 </script> |
| 88 | 88 |
| 89 </body> | 89 </body> |
| 90 </html> | 90 </html> |
| OLD | NEW |