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

Unified Diff: test/codegen/expect/language/implicit_closure1_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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/language/implicit_closure1_test.js
diff --git a/test/codegen/expect/language/implicit_closure1_test.js b/test/codegen/expect/language/implicit_closure1_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..3d2f01ec9216b53480227c1f871320ec6875a0c3
--- /dev/null
+++ b/test/codegen/expect/language/implicit_closure1_test.js
@@ -0,0 +1,47 @@
+dart_library.library('language/implicit_closure1_test', null, /* Imports */[
+ 'dart_sdk'
+], function load__implicit_closure1_test(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const implicit_closure1_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ implicit_closure1_test.Handler = dart.typedef('Handler', () => dart.functionType(dart.dynamic, [core.bool]));
+ implicit_closure1_test.Hello = class Hello extends core.Object {
+ new() {
+ }
+ handler2(e) {
+ core.print('handler2');
+ }
+ static handler1(e) {
+ core.print('handler1');
+ }
+ addEventListener(s, handler, status) {
+ handler(status);
+ }
+ static main() {
+ let h = new implicit_closure1_test.Hello();
+ h.addEventListener('click', implicit_closure1_test.Hello.handler1, false);
+ h.addEventListener('click', dart.bind(h, 'handler2'), false);
+ }
+ };
+ dart.setSignature(implicit_closure1_test.Hello, {
+ constructors: () => ({new: dart.definiteFunctionType(implicit_closure1_test.Hello, [])}),
+ methods: () => ({
+ handler2: dart.definiteFunctionType(dart.void, [core.bool]),
+ addEventListener: dart.definiteFunctionType(dart.void, [core.String, implicit_closure1_test.Handler, core.bool])
+ }),
+ statics: () => ({
+ handler1: dart.definiteFunctionType(dart.void, [core.bool]),
+ main: dart.definiteFunctionType(dart.void, [])
+ }),
+ names: ['handler1', 'main']
+ });
+ implicit_closure1_test.main = function() {
+ implicit_closure1_test.Hello.main();
+ };
+ dart.fn(implicit_closure1_test.main, VoidTodynamic());
+ // Exports:
+ exports.implicit_closure1_test = implicit_closure1_test;
+});

Powered by Google App Engine
This is Rietveld 408576698