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

Side by Side Diff: test/codegen/expect/language/issue7513_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/issue7513_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__issue7513_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const _interceptors = dart_sdk._interceptors;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const expect$ = expect.expect;
11 const issue7513_test = Object.create(null);
12 let JSArrayOfdouble = () => (JSArrayOfdouble = dart.constFn(_interceptors.JSAr ray$(core.double)))();
13 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons tFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))();
14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
15 issue7513_test.foo = function(a, b) {
16 dart.dsetindex(b, 0, 0.1);
17 return dart.dsend(a, '*', dart.dindex(b, 0));
18 };
19 dart.fn(issue7513_test.foo, dynamicAnddynamicTodynamic());
20 issue7513_test.main = function() {
21 let a = 0.1;
22 let b = JSArrayOfdouble().of([0.1]);
23 for (let i = 0; i < 20; i++) {
24 issue7513_test.foo(a, b);
25 }
26 expect$.Expect.approxEquals(0.01, core.num._check(issue7513_test.foo(a, b))) ;
27 };
28 dart.fn(issue7513_test.main, VoidTodynamic());
29 // Exports:
30 exports.issue7513_test = issue7513_test;
31 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/issue4515170_test.js ('k') | test/codegen/expect/language/issue7525_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698