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

Side by Side Diff: tests/compiler/dart2js_native/js_constant_test.dart

Issue 2383273002: Revert "Add native_testing library to mock @Native classes" (Closed)
Patch Set: Created 4 years, 2 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 import 'native_testing.dart'; 5 import 'dart:_foreign_helper' show JS;
6 import "package:expect/expect.dart";
6 7
7 // Negative constant numbers must be generated as negation, not just a literal 8 // Negative constant numbers must be generated as negation, not just a literal
8 // with a sign, i.e. 9 // with a sign, i.e.
9 // 10 //
10 // (-5).toString() 11 // (-5).toString()
11 // 12 //
12 // not 13 // not
13 // 14 //
14 // -5 .toString() 15 // -5 .toString()
15 // 16 //
(...skipping 17 matching lines...) Expand all
33 34
34 test3() { 35 test3() {
35 checkString(JS('', '#.toString()', -0.0)); 36 checkString(JS('', '#.toString()', -0.0));
36 } 37 }
37 38
38 main() { 39 main() {
39 test1(); 40 test1();
40 test2(); 41 test2();
41 test3(); 42 test3();
42 } 43 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_native/issue9182_test.dart ('k') | tests/compiler/dart2js_native/jsobject_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698