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

Side by Side Diff: test/codegen/expect/language/value_range3_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/value_range3_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__value_range3_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 value_range3_test = Object.create(null);
11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))();
12 let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionT ype(core.bool, [dart.dynamic])))();
13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
14 value_range3_test.A = class A extends core.Object {
15 copy(array, index1, index2) {
16 if (dart.test(dart.dsend(index1, '<', dart.dsend(index2, '+', index2)))) {
17 return dart.dindex(array, index1);
18 }
19 }
20 };
21 dart.setSignature(value_range3_test.A, {
22 methods: () => ({copy: dart.definiteFunctionType(dart.dynamic, [dart.dynamic , dart.dynamic, dart.dynamic])})
23 });
24 value_range3_test.main = function() {
25 expect$.Expect.throws(dart.fn(() => new value_range3_test.A().copy(core.List .new(0), 0, 1), VoidTovoid()), dart.fn(e => core.RangeError.is(e), dynamicTobool ()));
26 };
27 dart.fn(value_range3_test.main, VoidTodynamic());
28 // Exports:
29 exports.value_range3_test = value_range3_test;
30 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/value_range2_test.js ('k') | test/codegen/expect/language/value_range_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698