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

Side by Side Diff: test/codegen/expect/language/final_field_override_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/final_field_override_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__final_field_override_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 final_field_override_test = Object.create(null);
11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
12 const _x = Symbol('_x');
13 final_field_override_test.A = class A extends core.Object {
14 new() {
15 this[_x] = 42;
16 }
17 set x(val) {
18 this[_x] = val;
19 }
20 get x() {
21 return this[_x];
22 }
23 };
24 final_field_override_test.B = class B extends final_field_override_test.A {
25 new() {
26 this[x] = 3;
27 super.new();
28 }
29 get x() {
30 return this[x];
31 }
32 set x(value) {
33 super.x = value;
34 }
35 get y() {
36 return this[_x];
37 }
38 };
39 const x = Symbol(final_field_override_test.B.name + "." + 'x'.toString());
40 final_field_override_test.main = function() {
41 let b = new final_field_override_test.B();
42 expect$.Expect.equals(3, b.x);
43 b.x = 21;
44 expect$.Expect.equals(3, b.x);
45 expect$.Expect.equals(21, b.y);
46 };
47 dart.fn(final_field_override_test.main, VoidTovoid());
48 // Exports:
49 exports.final_field_override_test = final_field_override_test;
50 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698