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

Unified Diff: test/codegen/expect/corelib/symbol_reserved_word_test_03_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/corelib/symbol_reserved_word_test_03_multi.js
diff --git a/test/codegen/expect/corelib/symbol_reserved_word_test_03_multi.js b/test/codegen/expect/corelib/symbol_reserved_word_test_03_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..83d617a912bf5ce53f855a7b8d8c593d872497fc
--- /dev/null
+++ b/test/codegen/expect/corelib/symbol_reserved_word_test_03_multi.js
@@ -0,0 +1,26 @@
+dart_library.library('corelib/symbol_reserved_word_test_03_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__symbol_reserved_word_test_03_multi(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 symbol_reserved_word_test_03_multi = Object.create(null);
+ let VoidToSymbol = () => (VoidToSymbol = dart.constFn(dart.definiteFunctionType(core.Symbol, [])))();
+ let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
+ let StringTovoid = () => (StringTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [core.String])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ symbol_reserved_word_test_03_multi.checkBadSymbol = function(s) {
+ expect$.Expect.throws(dart.fn(() => core.Symbol.new(s), VoidToSymbol()), dart.fn(e => core.ArgumentError.is(e), dynamicTobool()));
+ };
+ dart.fn(symbol_reserved_word_test_03_multi.checkBadSymbol, StringTovoid());
+ symbol_reserved_word_test_03_multi.main = function() {
+ let x = null;
+ x = core.Symbol.new('void');
+ };
+ dart.fn(symbol_reserved_word_test_03_multi.main, VoidTodynamic());
+ // Exports:
+ exports.symbol_reserved_word_test_03_multi = symbol_reserved_word_test_03_multi;
+});

Powered by Google App Engine
This is Rietveld 408576698