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

Side by Side Diff: packages/smoke/test/common.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Common test code that is run by 3 tests: mirrors_test.dart, 5 /// Common test code that is run by 3 tests: mirrors_test.dart,
6 /// mirrors_used_test.dart, and static_test.dart. 6 /// mirrors_used_test.dart, and static_test.dart.
7 library smoke.test.common; 7 library smoke.test.common;
8 8
9 import 'package:smoke/smoke.dart' as smoke; 9 import 'package:smoke/smoke.dart' as smoke;
10 import 'package:unittest/unittest.dart'; 10 import 'package:test/test.dart';
11 11
12 main() { 12 main() {
13 test('read value', () { 13 test('read value', () {
14 var a = new A(); 14 var a = new A();
15 expect(smoke.read(a, #i), 42); 15 expect(smoke.read(a, #i), 42);
16 expect(smoke.read(a, #j), 44); 16 expect(smoke.read(a, #j), 44);
17 expect(smoke.read(a, #j2), 44); 17 expect(smoke.read(a, #j2), 44);
18 }); 18 });
19 19
20 test('write value', () { 20 test('write value', () {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 abstract class L { 434 abstract class L {
435 int get m; 435 int get m;
436 incM(); 436 incM();
437 } 437 }
438 438
439 class L2 extends L { 439 class L2 extends L {
440 int m; 440 int m;
441 incM() { ++m; } 441 incM() { ++m; }
442 int n; 442 int n;
443 } 443 }
OLDNEW
« no previous file with comments | « packages/smoke/test/codegen/testing_resolver_utils.dart ('k') | packages/smoke/test/common_utils_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698