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

Side by Side Diff: test/codegen/expect/language/method_name_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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/method_name_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__method_name_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const method_name_test = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 method_name_test.A = class A extends core.Object {
13 get() {
14 return 1;
15 }
16 set() {
17 return 2;
18 }
19 operator() {
20 return 3;
21 }
22 };
23 dart.setSignature(method_name_test.A, {
24 methods: () => ({
25 get: dart.definiteFunctionType(core.int, []),
26 set: dart.definiteFunctionType(core.int, []),
27 operator: dart.definiteFunctionType(core.int, [])
28 })
29 });
30 method_name_test.B = class B extends core.Object {
31 get() {
32 return 1;
33 }
34 set() {
35 return 2;
36 }
37 operator() {
38 return 3;
39 }
40 };
41 dart.setSignature(method_name_test.B, {
42 methods: () => ({
43 get: dart.definiteFunctionType(dart.dynamic, []),
44 set: dart.definiteFunctionType(dart.dynamic, []),
45 operator: dart.definiteFunctionType(dart.dynamic, [])
46 })
47 });
48 method_name_test.main = function() {
49 {
50 let a = new method_name_test.A();
51 expect$.Expect.equals(1, a.get());
52 expect$.Expect.equals(2, a.set());
53 expect$.Expect.equals(3, a.operator());
54 }
55 {
56 let b = new method_name_test.B();
57 expect$.Expect.equals(1, b.get());
58 expect$.Expect.equals(2, b.set());
59 expect$.Expect.equals(3, b.operator());
60 }
61 };
62 dart.fn(method_name_test.main, VoidTodynamic());
63 // Exports:
64 exports.method_name_test = method_name_test;
65 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/method_invocation_test.js ('k') | test/codegen/expect/language/method_override2_test_00_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698