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

Unified Diff: test/codegen/expect/language/library_ambiguous_test_none_multi.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/library_ambiguous_test_none_multi.js
diff --git a/test/codegen/expect/language/library_ambiguous_test_none_multi.js b/test/codegen/expect/language/library_ambiguous_test_none_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..2a0bea0f88d841433061f6cb935bbf66b5ecc941
--- /dev/null
+++ b/test/codegen/expect/language/library_ambiguous_test_none_multi.js
@@ -0,0 +1,46 @@
+dart_library.library('language/library_ambiguous_test_none_multi', null, /* Imports */[
+ 'dart_sdk'
+], function load__library_ambiguous_test_none_multi(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const library_ambiguous_test_none_multi = Object.create(null);
+ const library1 = Object.create(null);
+ const library2 = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ library_ambiguous_test_none_multi.X = class X extends core.Object {};
+ library_ambiguous_test_none_multi.main = function() {
+ core.print("No error expected if ambiguous definitions are not used.");
+ };
+ dart.fn(library_ambiguous_test_none_multi.main, VoidTodynamic());
+ library1.foo = null;
+ library1.bar = function() {
+ return "library1.dart bar()";
+ };
+ dart.fn(library1.bar, VoidTodynamic());
+ library1.baz = function() {
+ return "library1.dart baz()";
+ };
+ dart.fn(library1.baz, VoidTodynamic());
+ library1.bay = null;
+ library1.bax = dart.typedef('bax', () => dart.functionType(core.int, [core.int, core.int]));
+ library1.baw = class baw extends core.Object {};
+ library2.foo = null;
+ library2.foo1 = 0;
+ library2.bar = function() {
+ return "library2.dart bar()";
+ };
+ dart.fn(library2.bar, VoidTodynamic());
+ library2.baz = null;
+ library2.bay = function() {
+ return "library2.dart bay()";
+ };
+ dart.fn(library2.bay, VoidTodynamic());
+ library2.bax = dart.typedef('bax', () => dart.functionType(core.double, [core.int, core.int]));
+ library2.baw = null;
+ // Exports:
+ exports.library_ambiguous_test_none_multi = library_ambiguous_test_none_multi;
+ exports.library1 = library1;
+ exports.library2 = library2;
+});

Powered by Google App Engine
This is Rietveld 408576698