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

Side by Side Diff: tests/standalone/io/test_relative_extension_fail_tester.dart

Issue 2285223003: Fix native extension lookup (Closed)
Patch Set: Update test for error message change Created 4 years, 3 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
« no previous file with comments | « tests/standalone/io/test_relative_extension.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library test_extension_test; 5 library test_extension_test;
6 6
7 import "dart:async"; 7 import "dart:async";
8 import "dart:isolate"; 8 import "dart:isolate";
9 import "test_extension.dart"; 9 import "test_relative_extension.dart";
10 10
11 main() { 11 main() {
12 try { 12 try {
13 Cat.throwMeTheBall("ball"); 13 Cat.throwMeTheBall("ball");
14 } on String catch (e) { 14 } on String catch (e) {
15 if (e != "ball") throw new StateError("exception not equal to 'ball'"); 15 if (e != "ball") throw new StateError("exception not equal to 'ball'");
16 } 16 }
17 // Make sure the exception is thrown out to the event handler from C++ code. 17 // Make sure the exception is thrown out to the event handler from C++ code.
18 // The harness expects the string "ball" to be thrown and the process to 18 // The harness expects the string "ball" to be thrown and the process to
19 // end with an unhandled exception. 19 // end with an unhandled exception.
20 Timer.run(() => Cat.throwMeTheBall("ball")); 20 Timer.run(() => Cat.throwMeTheBall("ball"));
21 } 21 }
OLDNEW
« no previous file with comments | « tests/standalone/io/test_relative_extension.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698