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

Unified Diff: test/codegen/expect/language/operator6_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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/language/operator6_test.js
diff --git a/test/codegen/expect/language/operator6_test.js b/test/codegen/expect/language/operator6_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..143bded1d97cf0d283e9c41bfe086ec32623465f
--- /dev/null
+++ b/test/codegen/expect/language/operator6_test.js
@@ -0,0 +1,47 @@
+dart_library.library('language/operator6_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__operator6_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const operator6_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ operator6_test.OperatorTest = class OperatorTest extends core.Object {
+ new() {
+ }
+ static testMain() {
+ let op1 = new operator6_test.Operator(1);
+ let op2 = new operator6_test.Operator(2);
+ expect$.Expect.equals(~1 >>> 0, op1['~']());
+ }
+ };
+ dart.setSignature(operator6_test.OperatorTest, {
+ constructors: () => ({new: dart.definiteFunctionType(operator6_test.OperatorTest, [])}),
+ statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
+ names: ['testMain']
+ });
+ operator6_test.OperatorTest.i1 = null;
+ operator6_test.OperatorTest.i2 = null;
+ operator6_test.Operator = class Operator extends core.Object {
+ new(i) {
+ this.value = null;
+ this.value = i;
+ }
+ ['~']() {
+ return ~dart.notNull(this.value) >>> 0;
+ }
+ };
+ dart.setSignature(operator6_test.Operator, {
+ constructors: () => ({new: dart.definiteFunctionType(operator6_test.Operator, [core.int])}),
+ methods: () => ({'~': dart.definiteFunctionType(dart.dynamic, [])})
+ });
+ operator6_test.main = function() {
+ operator6_test.OperatorTest.testMain();
+ };
+ dart.fn(operator6_test.main, VoidTodynamic());
+ // Exports:
+ exports.operator6_test = operator6_test;
+});
« no previous file with comments | « test/codegen/expect/language/operator5_test.js ('k') | test/codegen/expect/language/operator_equals_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698