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

Side by Side Diff: dart/tests/compiler/dart2js_foreign/native_exceptions1_test.dart

Issue 10855248: Copy all frog/native tests to dart2js_foreign. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Test that hidden native exception classes can be marked as existing. 5 // Test that hidden native exception classes can be marked as existing.
6 // 6 //
7 // To infer which native hidden types exist, we need 7 // To infer which native hidden types exist, we need
8 // (1) return types of native methods and getters 8 // (1) return types of native methods and getters
9 // (2) argument types of callbacks 9 // (2) argument types of callbacks
10 // (3) exceptions thrown by the operation. 10 // (3) exceptions thrown by the operation.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 threw = false; 90 threw = false;
91 try { 91 try {
92 var x = aa.op(51); 92 var x = aa.op(51);
93 } catch (E e) { 93 } catch (E e) {
94 threw = true; 94 threw = true;
95 Expect.equals(100, e.code); 95 Expect.equals(100, e.code);
96 Expect.isTrue(e is E); 96 Expect.isTrue(e is E);
97 } 97 }
98 Expect.isTrue(threw); 98 Expect.isTrue(threw);
99 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698