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

Side by Side Diff: standalone/io/test_extension_fail_test.dart

Issue 12094092: Update expected result. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/tests/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | 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) 2012, 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 // Dart test program for testing native extensions. 5 // Dart test program for testing native extensions.
6 6
7 import "dart:async"; 7 import "dart:async";
8 import "dart:io"; 8 import "dart:io";
9 9
10 Future copyFileToDirectory(Path file, Path directory) { 10 Future copyFileToDirectory(Path file, Path directory) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 Path testExtensionTesterFile = 52 Path testExtensionTesterFile =
53 scriptDirectory.append('test_extension_fail_tester.dart'); 53 scriptDirectory.append('test_extension_fail_tester.dart');
54 return copyFileToDirectory(testExtensionTesterFile, testDirectory); 54 return copyFileToDirectory(testExtensionTesterFile, testDirectory);
55 }).then((_) { 55 }).then((_) {
56 Path script = testDirectory.append('test_extension_fail_tester.dart'); 56 Path script = testDirectory.append('test_extension_fail_tester.dart');
57 return Process.run(options.executable, [script.toNativePath()]); 57 return Process.run(options.executable, [script.toNativePath()]);
58 }).then((ProcessResult result) { 58 }).then((ProcessResult result) {
59 print("ERR: ${result.stderr}\n\n"); 59 print("ERR: ${result.stderr}\n\n");
60 print("OUT: ${result.stdout}\n\n"); 60 print("OUT: ${result.stdout}\n\n");
61 Expect.equals(255, result.exitCode); 61 Expect.equals(255, result.exitCode);
62 Expect.isTrue(result.stderr.contains("Unhandled exception:\nball\n")); 62 Expect.isTrue(result.stderr.contains("Unhandled exception:"));
63 Expect.isTrue(result.stderr.contains("ball"));
63 }).whenComplete(() => tempDirectory.deleteSync(recursive: true)); 64 }).whenComplete(() => tempDirectory.deleteSync(recursive: true));
64 } 65 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698