| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |