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

Unified Diff: test/codegen/expect/corelib/symbol_reserved_word_test_06_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_06_multi.js
diff --git a/test/codegen/expect/corelib/symbol_reserved_word_test_06_multi.js b/test/codegen/expect/corelib/symbol_reserved_word_test_06_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..b9ef4aad966f1bb020a8541a66b895cbe4aa3b81
--- /dev/null
+++ b/test/codegen/expect/corelib/symbol_reserved_word_test_06_multi.js
@@ -0,0 +1,26 @@
+dart_library.library('corelib/symbol_reserved_word_test_06_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__symbol_reserved_word_test_06_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_06_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_06_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_06_multi.checkBadSymbol, StringTovoid());
+ symbol_reserved_word_test_06_multi.main = function() {
+ let x = null;
+ symbol_reserved_word_test_06_multi.checkBadSymbol('void.foo');
+ };
+ dart.fn(symbol_reserved_word_test_06_multi.main, VoidTodynamic());
+ // Exports:
+ exports.symbol_reserved_word_test_06_multi = symbol_reserved_word_test_06_multi;
+});

Powered by Google App Engine
This is Rietveld 408576698