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

Unified Diff: utils/tests/string_encoding/dunit.dart

Issue 9410001: restructure string decoding to support iterable use and include benchmarks for UTF-8 decoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: "stop using introduced variable _length. Improve docs. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: utils/tests/string_encoding/dunit.dart
diff --git a/utils/tests/string_encoding/dunit.dart b/utils/tests/string_encoding/dunit.dart
index fa4d39ed9898a6c4b7cae1634b183037668b6b75..11e0860deb8dd36dad74f9c2926cebf16e4d66ac 100644
--- a/utils/tests/string_encoding/dunit.dart
+++ b/utils/tests/string_encoding/dunit.dart
@@ -86,11 +86,13 @@ class FailedTest extends _ExceptionResult implements TestResult {
}
class TestError extends _ExceptionResult implements TestResult {
- TestError(String testDescription, var exception) :
+ TestError(String testDescription, var exception, var this.stacktrace) :
super(testDescription, exception);
String toString() => ">>> Test error caught in " +
- "${_testDescription} with:\n${exception}\n";
+ "${_testDescription} with:\n${exception}\n$stacktrace\n";
+
+ var stacktrace;
}
class TestClass {
@@ -104,9 +106,9 @@ class TestClass {
} catch (ExpectException x) {
tearDown();
return new FailedTest(description, x);
- } catch (var x) {
+ } catch (var x, var stacktrace) {
tearDown();
- return new TestError(description, x);
+ return new TestError(description, x, stacktrace);
}
});
}
« no previous file with comments | « utils/tests/string_encoding/benchmark_runner.dart ('k') | utils/tests/string_encoding/unicode_core_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698