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

Side by Side Diff: LayoutTests/imported/web-platform-tests/custom-elements/testcommon.js

Issue 727883002: update-w3c-deps import using blink 7f8c8ee3e30dc15b7b821c627fc7ac32331d2253: (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 Distributed under both the W3C Test Suite License [1] and the W3C 2 Distributed under both the W3C Test Suite License [1] and the W3C
3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the 3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
4 policies and contribution forms [3]. 4 policies and contribution forms [3].
5 5
6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license 6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license 7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
8 [3] http://www.w3.org/2004/10/27-testcases 8 [3] http://www.w3.org/2004/10/27-testcases
9 */ 9 */
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 this.array = array; 152 this.array = array;
153 } 153 }
154 154
155 CharRangesArray.prototype.testEach = function(namingFunction, checkFunction) { 155 CharRangesArray.prototype.testEach = function(namingFunction, checkFunction) {
156 if (this.array != null) { 156 if (this.array != null) {
157 for (var i = 0; i < this.array.length; i += 2) { 157 for (var i = 0; i < this.array.length; i += 2) {
158 var rangeStart = getCharCode(this.array[i]); 158 var rangeStart = getCharCode(this.array[i]);
159 var rangeEnd = getCharCode(this.array[i+1]); 159 var rangeEnd = getCharCode(this.array[i+1]);
160 for (var c = rangeStart; c <= rangeEnd; c++) { 160 for (var c = rangeStart; c <= rangeEnd; c++) {
161 checkFunction(namingFunction(c)); 161 checkFunction(namingFunction(c));
162 testCharCode(c, namingFunction, checkFunction);
163 } 162 }
164 } 163 }
165 } 164 }
166 }; 165 };
167 166
168 function testCharCode(charCode, namingFunction, checkFunction) { 167 function testCharCode(charCode, namingFunction, checkFunction) {
169 checkFunction(namingFunction(charCode)); 168 checkFunction(namingFunction(charCode));
170 } 169 }
171 170
172 var extenderChars = new CharsArray(EXTENDER_CHARS); 171 var extenderChars = new CharsArray(EXTENDER_CHARS);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 proto.detachedCallbackThis = this; 277 proto.detachedCallbackThis = this;
279 proto.detachedCallbackCalledCounter++; 278 proto.detachedCallbackCalledCounter++;
280 }; 279 };
281 proto.attributeChangedCallback = function(arg1, arg2, arg3) { 280 proto.attributeChangedCallback = function(arg1, arg2, arg3) {
282 proto.attributeChangedCallbackThis = this; 281 proto.attributeChangedCallbackThis = this;
283 proto.attributeChangedCallbackCalledCounter++; 282 proto.attributeChangedCallbackCalledCounter++;
284 proto.attributeChangedCallbackArgs = [arg1, arg2, arg3]; 283 proto.attributeChangedCallbackArgs = [arg1, arg2, arg3];
285 }; 284 };
286 return proto; 285 return proto;
287 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698