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

Side by Side Diff: test/codegen/expect/language/private_clash_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/private_clash_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__private_clash_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 private_clash_test = Object.create(null);
11 const private_clash_lib = Object.create(null);
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 const _b$_c$ = Symbol('_b$_c$');
14 const _c$ = Symbol('_c$');
15 private_clash_lib.B = class B extends core.Object {
16 new() {
17 this[_c$] = 10;
18 }
19 getValueA() {
20 try {
21 } catch (e) {
22 }
23
24 return this[_c$];
25 }
26 };
27 dart.setSignature(private_clash_lib.B, {
28 methods: () => ({getValueA: dart.definiteFunctionType(dart.dynamic, [])})
29 });
30 private_clash_test.A = class A extends private_clash_lib.B {
31 new() {
32 this[_b$_c$] = 100;
33 super.new();
34 }
35 getValueB() {
36 try {
37 } catch (e) {
38 }
39
40 return this[_b$_c$];
41 }
42 };
43 dart.setSignature(private_clash_test.A, {
44 methods: () => ({getValueB: dart.definiteFunctionType(dart.dynamic, [])})
45 });
46 private_clash_test.main = function() {
47 let a = new private_clash_test.A();
48 expect$.Expect.equals(110, dart.dsend(a.getValueA(), '+', a.getValueB()));
49 };
50 dart.fn(private_clash_test.main, VoidTodynamic());
51 // Exports:
52 exports.private_clash_test = private_clash_test;
53 exports.private_clash_lib = private_clash_lib;
54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698