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

Unified Diff: test/codegen/expect/collection/src/priority_queue.js

Issue 1642903004: Regen tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/collection/src/priority_queue.js
diff --git a/test/codegen/expect/collection/priority_queue.js b/test/codegen/expect/collection/src/priority_queue.js
similarity index 95%
rename from test/codegen/expect/collection/priority_queue.js
rename to test/codegen/expect/collection/src/priority_queue.js
index d9485a50a57be61e12765269a9c94c442fca3b2f..bcf114a733ebbdc076cd8412b0769fc96ba4dbf6 100644
--- a/test/codegen/expect/collection/priority_queue.js
+++ b/test/codegen/expect/collection/src/priority_queue.js
@@ -1,4 +1,4 @@
-dart_library.library('collection/priority_queue', null, /* Imports */[
+dart_library.library('collection/src/priority_queue', null, /* Imports */[
'dart/_runtime',
'dart/core',
'dart/collection'
@@ -7,7 +7,14 @@ dart_library.library('collection/priority_queue', null, /* Imports */[
'use strict';
let dartx = dart.dartx;
const PriorityQueue$ = dart.generic(function(E) {
- class PriorityQueue extends core.Object {}
+ class PriorityQueue extends core.Object {
+ static new(comparison) {
+ return new (HeapPriorityQueue$(E))(comparison);
+ }
+ }
+ dart.setSignature(PriorityQueue, {
+ constructors: () => ({new: [PriorityQueue$(E), [], [dart.functionType(core.int, [E, E])]]})
+ });
return PriorityQueue;
});
let PriorityQueue = PriorityQueue$();
« no previous file with comments | « test/codegen/expect/collection/src/iterable_zip.txt ('k') | test/codegen/expect/collection/src/priority_queue.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698