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

Unified Diff: test/codegen/expect/fieldtest/fieldtest.js

Issue 968273002: Fixing layout in js output (use full paths rather than just the library name) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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/fieldtest/fieldtest.js
diff --git a/test/codegen/expect/fieldtest/fieldtest.js b/test/codegen/expect/fieldtest/fieldtest.js
deleted file mode 100644
index ca1dda434ae0786e5e5d7ea0ad26bdc3d2e94a68..0000000000000000000000000000000000000000
--- a/test/codegen/expect/fieldtest/fieldtest.js
+++ /dev/null
@@ -1,74 +0,0 @@
-var fieldtest;
-(function(fieldtest) {
- 'use strict';
- class A extends dart.Object {
- A() {
- this.x = 42;
- }
- }
- let B$ = dart.generic(function(T) {
- class B extends dart.Object {
- B() {
- this.x = dart.as(null, core.int);
- this.y = null;
- this.z = dart.as(null, T);
- }
- }
- return B;
- });
- let B = B$(dynamic);
- // Function foo: (A) → int
- function foo(a) {
- core.print(a.x);
- return a.x;
- }
- // Function bar: (dynamic) → int
- function bar(a) {
- core.print(dart.dload(a, 'x'));
- return dart.as(dart.dload(a, 'x'), core.int);
- }
- // Function baz: (A) → dynamic
- function baz(a) {
- return a.x;
- }
- // Function compute: () → int
- function compute() {
- return 123;
- }
- dart.defineLazyProperties(fieldtest, {
- get y() {
- return compute() + 444;
- },
- set y() {}
- });
- dart.copyProperties(fieldtest, {
- get q() {
- return core.String['+'](core.String['+']('life, ', 'the universe '), 'and everything');
- },
- get z() {
- return 42;
- },
- set z(value) {
- fieldtest.y = dart.as(value, core.int);
- }
- });
- // Function main: () → void
- function main() {
- let a = new A();
- foo(a);
- bar(a);
- core.print(baz(a));
- }
- // Exports:
- fieldtest.A = A;
- fieldtest.B = B;
- fieldtest.B$ = B$;
- fieldtest.foo = foo;
- fieldtest.bar = bar;
- fieldtest.baz = baz;
- fieldtest.compute = compute;
- fieldtest.q = q;
- fieldtest.z = z;
- fieldtest.z = z;
- fieldtest.main = main;
-})(fieldtest || (fieldtest = {}));

Powered by Google App Engine
This is Rietveld 408576698