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

Unified Diff: test/codegen/expect/language/string_join_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/string_join_test.js
diff --git a/test/codegen/expect/language/string_join_test.js b/test/codegen/expect/language/string_join_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..2758999d7d627b5c3c2c94d33fffdd7418dde5b3
--- /dev/null
+++ b/test/codegen/expect/language/string_join_test.js
@@ -0,0 +1,32 @@
+dart_library.library('language/string_join_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__string_join_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 string_join_test = Object.create(null);
+ let ListOfString = () => (ListOfString = dart.constFn(core.List$(core.String)))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ string_join_test.StringJoinTest = class StringJoinTest extends core.Object {
+ static testMain() {
+ let ga = ListOfString().new();
+ ga[dartx.add]("a");
+ ga[dartx.add]("b");
+ expect$.Expect.equals("ab", ga[dartx.join]());
+ expect$.Expect.equals("ab", ga[dartx.join](""));
+ }
+ };
+ dart.setSignature(string_join_test.StringJoinTest, {
+ statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
+ names: ['testMain']
+ });
+ string_join_test.main = function() {
+ string_join_test.StringJoinTest.testMain();
+ };
+ dart.fn(string_join_test.main, VoidTodynamic());
+ // Exports:
+ exports.string_join_test = string_join_test;
+});
« no previous file with comments | « test/codegen/expect/language/string_intrinsics_test.js ('k') | test/codegen/expect/language/string_no_operator_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698