| 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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 { | 1377 { |
| 1378 var descriptor = Object.getOwnPropertyDescriptor(self[interfaceName].pro
totype, Symbol.iterator); | 1378 var descriptor = Object.getOwnPropertyDescriptor(self[interfaceName].pro
totype, Symbol.iterator); |
| 1379 assert_true(descriptor.writable, "property is not writable"); | 1379 assert_true(descriptor.writable, "property is not writable"); |
| 1380 assert_true(descriptor.configurable, "property is not configurable"); | 1380 assert_true(descriptor.configurable, "property is not configurable"); |
| 1381 assert_false(descriptor.enumerable, "property is enumerable"); | 1381 assert_false(descriptor.enumerable, "property is enumerable"); |
| 1382 assert_equals(self[interfaceName].prototype[Symbol.iterator].name, isPai
rIterator ? "entries" : "values", "@@iterator function does not have the right n
ame"); | 1382 assert_equals(self[interfaceName].prototype[Symbol.iterator].name, isPai
rIterator ? "entries" : "values", "@@iterator function does not have the right n
ame"); |
| 1383 }, "Testing Symbol.iterator property of iterable interface " + interfaceName
); | 1383 }, "Testing Symbol.iterator property of iterable interface " + interfaceName
); |
| 1384 | 1384 |
| 1385 if (isPairIterator) { | 1385 if (isPairIterator) { |
| 1386 test(function() { | 1386 test(function() { |
| 1387 assert_equals(self[interfaceName].prototype["entries"], self[interfa
ceName].prototype[Symbol.iterator], "entries method is not the same as @@iterato
r"); | 1387 assert_equals(self[interfaceName].prototype[Symbol.iterator], self[i
nterfaceName].prototype["entries"], "entries method is not the same as @@iterato
r"); |
| 1388 }, "Testing pair iterable interface " + interfaceName); | 1388 }, "Testing pair iterable interface " + interfaceName); |
| 1389 } else { | 1389 } else { |
| 1390 test(function() { | 1390 test(function() { |
| 1391 ["entries", "keys", "values", "forEach", Symbol.Iterator].forEach(fu
nction(property) { | 1391 ["entries", "keys", "values", "forEach", Symbol.Iterator].forEach(fu
nction(property) { |
| 1392 assert_equals(self[interfaceName].prototype[property], Array.pro
totype[property], property + " function is not the same as Array one"); | 1392 assert_equals(self[interfaceName].prototype[property], Array.pro
totype[property], property + " function is not the same as Array one"); |
| 1393 }); | 1393 }); |
| 1394 }, "Testing value iterable interface " + interfaceName); | 1394 }, "Testing value iterable interface " + interfaceName); |
| 1395 } | 1395 } |
| 1396 }; | 1396 }; |
| 1397 | 1397 |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1959 /** An array of values produced by the "typedef" production. */ | 1959 /** An array of values produced by the "typedef" production. */ |
| 1960 this.values = obj.values; | 1960 this.values = obj.values; |
| 1961 | 1961 |
| 1962 } | 1962 } |
| 1963 //@} | 1963 //@} |
| 1964 | 1964 |
| 1965 IdlTypedef.prototype = Object.create(IdlObject.prototype); | 1965 IdlTypedef.prototype = Object.create(IdlObject.prototype); |
| 1966 | 1966 |
| 1967 }()); | 1967 }()); |
| 1968 // vim: set expandtab shiftwidth=4 tabstop=4 foldmarker=@{,@} foldmethod=marker: | 1968 // vim: set expandtab shiftwidth=4 tabstop=4 foldmarker=@{,@} foldmethod=marker: |
| OLD | NEW |