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

Side by Side Diff: test/browser/runtime_tests.js

Issue 1058653002: implement mixins in subtype checks, more codegen fixes (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 var assert = chai.assert; 5 var assert = chai.assert;
6 6
7 suite('generic', () => { 7 suite('generic', () => {
8 "use strict"; 8 "use strict";
9 9
10 let generic = dart.generic; 10 let generic = dart.generic;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 checkType(aaraw, aadynamictype); 255 checkType(aaraw, aadynamictype);
256 checkType(aaraw, AA$(dynamic, dynamic)); 256 checkType(aaraw, AA$(dynamic, dynamic));
257 checkType(aadynamic, aarawtype); 257 checkType(aadynamic, aarawtype);
258 checkType(aadynamic, AA); 258 checkType(aadynamic, AA);
259 }); 259 });
260 260
261 test('void', () => { 261 test('void', () => {
262 //checkType((x) => x, type((void _(x)) {})); 262 //checkType((x) => x, type((void _(x)) {}));
263 }); 263 });
264 264
265 test('mixins', () => {
266 let c = collection;
267 var s1 = new (c.SplayTreeSet$(String))();
268
269 checkType(s1, c.IterableMixin);
270 checkType(s1, c.IterableMixin$(String));
271 checkType(s1, c.IterableMixin$(int), false);
272
273 checkType(s1, c.SetMixin);
274 checkType(s1, c.SetMixin$(String));
275 checkType(s1, c.SetMixin$(int), false);
276 });
265 }); 277 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698