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

Side by Side Diff: tests/compiler/dart2js/js_spec_string_test.dart

Issue 1284673003: Move dart2jslib parts into separate libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try. Created 5 years, 4 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) 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 // Unit test of the [NativeBehavior.processSpecString] method. 5 // Unit test of the [NativeBehavior.processSpecString] method.
6 6
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'package:compiler/src/native/native.dart'; 8 import 'package:compiler/src/native/native.dart';
9 import 'package:compiler/src/dart2jslib.dart' 9 import 'package:compiler/src/diagnostic_listener.dart';
10 show DiagnosticListener;
11 import 'package:compiler/src/universe/universe.dart' 10 import 'package:compiler/src/universe/universe.dart'
12 show SideEffects; 11 show SideEffects;
13 12
14 const OBJECT = 'Object'; 13 const OBJECT = 'Object';
15 const NULL = 'Null'; 14 const NULL = 'Null';
16 15
17 class Listener implements DiagnosticListener { 16 class Listener implements DiagnosticListener {
18 String errorMessage; 17 String errorMessage;
19 internalError(spannable, message) { 18 internalError(spannable, message) {
20 errorMessage = message; 19 errorMessage = message;
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 test('gvn:false', expectedGvn: false); 275 test('gvn:false', expectedGvn: false);
277 test('returns:A;gvn:true', returns: ['A'], expectedGvn: true); 276 test('returns:A;gvn:true', returns: ['A'], expectedGvn: true);
278 test(' gvn : true ; returns:A;', returns: ['A'], expectedGvn: true); 277 test(' gvn : true ; returns:A;', returns: ['A'], expectedGvn: true);
279 test('gvn:true;returns:A;gvn:true', expectError: true); 278 test('gvn:true;returns:A;gvn:true', expectError: true);
280 279
281 test('gvn: true; new: true', expectError: true); 280 test('gvn: true; new: true', expectError: true);
282 test('gvn: true; new: false', expectedGvn: true, expectedNew: false); 281 test('gvn: true; new: false', expectedGvn: true, expectedNew: false);
283 test('gvn: false; new: true', expectedGvn: false, expectedNew: true); 282 test('gvn: false; new: true', expectedGvn: false, expectedNew: true);
284 test('gvn: false; new: false', expectedGvn: false, expectedNew: false); 283 test('gvn: false; new: false', expectedGvn: false, expectedNew: false);
285 } 284 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/issue13354_test.dart ('k') | tests/compiler/dart2js/least_upper_bound_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698