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

Unified Diff: test/browser/runtime_tests.js

Issue 1117793002: add checks needed for covariant generics, and List<E> (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/covariance.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/browser/runtime_tests.js
diff --git a/test/browser/runtime_tests.js b/test/browser/runtime_tests.js
index eaf27c6d47021bfaa912782ef0debcdd99a6ef28..824edd574a3d34441a0f98d100302ae3cd195ee0 100644
--- a/test/browser/runtime_tests.js
+++ b/test/browser/runtime_tests.js
@@ -85,7 +85,7 @@ suite('instanceOf', () => {
let cast = dart.as;
let instanceOf = dart.is;
let runtimeType = dart.realRuntimeType;
- let setType = dart.setType;
+ let setRuntimeType = dart.setRuntimeType;
let functionType = dart.functionType;
let typedef = dart.typedef;
@@ -118,35 +118,35 @@ suite('instanceOf', () => {
// TODO(vsm): Revisit when we encode types on functions properly.
// A bar1(C c, String s) => null;
function bar1(c, s) { return null; }
- setType(bar1, functionType(A, [C, String]));
+ setRuntimeType(bar1, functionType(A, [C, String]));
// bar2(B b, String s) => null;
function bar2(b, s) { return null; }
- setType(bar2, functionType(dynamic, [B, String]));
+ setRuntimeType(bar2, functionType(dynamic, [B, String]));
// B bar3(B b, Object o) => null;
function bar3(b, o) { return null; }
- setType(bar3, functionType(B, [B, Object]));
+ setRuntimeType(bar3, functionType(B, [B, Object]));
// B bar4(B b, o) => null;
function bar4(b, o) { return null; }
- setType(bar4, functionType(B, [B, dynamic]));
+ setRuntimeType(bar4, functionType(B, [B, dynamic]));
// C bar5(A a, Object o) => null;
function bar5(a, o) { return null; }
- setType(bar5, functionType(C, [A, Object]));
+ setRuntimeType(bar5, functionType(C, [A, Object]));
// B bar6(B b, String s, String o) => null;
function bar6(b, s, o) { return null; }
- setType(bar6, functionType(B, [B, String, String]));
+ setRuntimeType(bar6, functionType(B, [B, String, String]));
// B bar7(B b, String s, [Object o]) => null;
function bar7(b, s, o) { return null; }
- setType(bar7, functionType(B, [B, String], [Object]));
+ setRuntimeType(bar7, functionType(B, [B, String], [Object]));
// B bar8(B b, String s, {Object p}) => null;
function bar8(b, s, o) { return null; }
- setType(bar8, functionType(B, [B, String], {p: Object}));
+ setRuntimeType(bar8, functionType(B, [B, String], {p: Object}));
function checkType(x, type, expectedTrue) {
if (expectedTrue === undefined) expectedTrue = true;
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/covariance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698