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

Unified Diff: test/codegen/expect/collection/algorithms.js

Issue 1507343013: Run tests on Chrome stable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/closure.js ('k') | test/codegen/expect/collection/src/canonicalized_map.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/collection/algorithms.js
diff --git a/test/codegen/expect/collection/algorithms.js b/test/codegen/expect/collection/algorithms.js
index 592d8696ffab31a2f67f7c9efb989ac7a018d3fc..dd35473bd345c0179bf4df333fe78afbd3482c5e 100644
--- a/test/codegen/expect/collection/algorithms.js
+++ b/test/codegen/expect/collection/algorithms.js
@@ -24,7 +24,8 @@ dart_library.library('collection/algorithms', null, /* Imports */[
return -1;
}
dart.fn(_comparableBinarySearch, core.int, [core.List$(core.Comparable), core.Comparable]);
- function binarySearch(sortedList, key, {compare = null} = {}) {
+ function binarySearch(sortedList, key, opts) {
+ let compare = opts && 'compare' in opts ? opts.compare : null;
if (compare == null) {
return _comparableBinarySearch(dart.as(sortedList, core.List$(core.Comparable)), dart.as(key, core.Comparable));
}
@@ -81,7 +82,10 @@ dart_library.library('collection/algorithms', null, /* Imports */[
}
}
dart.fn(_reverse, dart.void, [core.List, core.int, core.int]);
- function insertionSort(list, {compare = null, start = 0, end = null} = {}) {
+ function insertionSort(list, opts) {
+ let compare = opts && 'compare' in opts ? opts.compare : null;
+ let start = opts && 'start' in opts ? opts.start : 0;
+ let end = opts && 'end' in opts ? opts.end : null;
if (end == null)
end = list[dartx.length];
if (compare == null)
@@ -109,7 +113,10 @@ dart_library.library('collection/algorithms', null, /* Imports */[
}
dart.fn(_insertionSort, dart.void, [core.List, dart.functionType(core.int, [dart.dynamic, dart.dynamic]), core.int, core.int, core.int]);
const _MERGE_SORT_LIMIT = 32;
- function mergeSort(list, {start = 0, end = null, compare = null} = {}) {
+ function mergeSort(list, opts) {
+ let start = opts && 'start' in opts ? opts.start : 0;
+ let end = opts && 'end' in opts ? opts.end : null;
+ let compare = opts && 'compare' in opts ? opts.compare : null;
if (end == null)
end = list[dartx.length];
if (compare == null)
« no previous file with comments | « test/codegen/expect/closure.js ('k') | test/codegen/expect/collection/src/canonicalized_map.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698