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

Side by Side Diff: test/codegen/expect/language/class_literal_test_none_multi.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/class_literal_test_none_multi', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__class_literal_test_none_multi(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 class_literal_test_none_multi = Object.create(null);
11 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 class_literal_test_none_multi.Class = class Class extends core.Object {
14 static fisk() {
15 return 42;
16 }
17 };
18 dart.setSignature(class_literal_test_none_multi.Class, {
19 statics: () => ({fisk: dart.definiteFunctionType(dart.dynamic, [])}),
20 names: ['fisk']
21 });
22 class_literal_test_none_multi.foo = function(x) {
23 };
24 dart.fn(class_literal_test_none_multi.foo, dynamicTodynamic());
25 class_literal_test_none_multi.main = function() {
26 expect$.Expect.equals(42, class_literal_test_none_multi.Class.fisk());
27 expect$.Expect.equals(null, class_literal_test_none_multi.foo(class_literal_ test_none_multi.Class.fisk()));
28 dart.wrapType(class_literal_test_none_multi.Class);
29 let x = dart.wrapType(class_literal_test_none_multi.Class);
30 class_literal_test_none_multi.foo(dart.wrapType(class_literal_test_none_mult i.Class));
31 expect$.Expect.isFalse(dart.wrapType(class_literal_test_none_multi.Class) == null);
32 expect$.Expect.notEquals(dart.wrapType(class_literal_test_none_multi.Class), "Class");
33 expect$.Expect.isTrue(typeof dart.wrapType(class_literal_test_none_multi.Cla ss).toString() == 'string');
34 let y = dart.wrapType(class_literal_test_none_multi.Class);
35 expect$.Expect.isTrue(typeof y.toString() == 'string');
36 };
37 dart.fn(class_literal_test_none_multi.main, VoidTodynamic());
38 // Exports:
39 exports.class_literal_test_none_multi = class_literal_test_none_multi;
40 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698