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

Side by Side Diff: third_party/WebKit/LayoutTests/resources/idlharness.js

Issue 2665073003: Import wpt@cd5cce9780f84cee679919679b8199084ea96d54 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 10 months 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
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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698