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

Side by Side Diff: lib/src/iron-selector/test/excluded-local-names.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month 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
« no previous file with comments | « lib/src/iron-selector/test/basic.html ('k') | lib/src/iron-selector/test/multi.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « lib/src/iron-selector/test/basic.html ('k') | lib/src/iron-selector/test/multi.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698