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

Side by Side Diff: test/codegen/expect/language/switch8_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/switch8_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__switch8_test(exports, dart_sdk) {
4 'use strict';
5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx;
8 const switch8_test = Object.create(null);
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
10 switch8_test.A = class A extends core.Object {
11 new() {
12 }
13 };
14 dart.setSignature(switch8_test.A, {
15 constructors: () => ({new: dart.definiteFunctionType(switch8_test.A, [])})
16 });
17 let const$;
18 switch8_test.main = function() {
19 switch (core.List.new(1)[dartx.get](0)) {
20 case const$ || (const$ = dart.const(new switch8_test.A())):
21 {
22 dart.throw('Test failed');
23 }
24 }
25 };
26 dart.fn(switch8_test.main, VoidTodynamic());
27 // Exports:
28 exports.switch8_test = switch8_test;
29 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/switch7_negative_test.js ('k') | test/codegen/expect/language/switch_bad_case_test_01_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698