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

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

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