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

Unified Diff: runtime/vm/debugger_api_impl_test.cc

Issue 10704216: Fix type checking of void type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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: runtime/vm/debugger_api_impl_test.cc
===================================================================
--- runtime/vm/debugger_api_impl_test.cc (revision 9649)
+++ runtime/vm/debugger_api_impl_test.cc (working copy)
@@ -319,15 +319,15 @@
TEST_CASE(Debug_StepOut) {
const char* kScriptChars =
- "void f1() { return 1; } \n"
- "void f2() { return 2; } \n"
+ "f1() { return 1; } \n"
+ "f2() { return 2; } \n"
" \n"
- "void foo() { \n"
+ "foo() { \n"
" f1(); \n"
" return f2(); \n"
"} \n"
" \n"
- "void main() { \n"
+ "main() { \n"
" return foo(); \n"
"} \n";
@@ -393,8 +393,8 @@
TEST_CASE(Debug_StepInto) {
const char* kScriptChars =
- "void f1() { return 1; } \n"
- "void f2() { return 2; } \n"
+ "f1() { return 1; } \n"
+ "f2() { return 2; } \n"
" \n"
"class X { \n"
" kvmk(a, [b, c]) { \n"
@@ -402,13 +402,13 @@
" } \n"
"} \n"
" \n"
- "void foo() { \n"
+ "foo() { \n"
" f1(); \n"
" var o = new X(); \n"
" return o.kvmk(3, c:5); \n"
"} \n"
" \n"
- "void main() { \n"
+ "main() { \n"
" return foo(); \n"
"} \n";
@@ -453,7 +453,7 @@
" var s = 'Dr Seuss'; \n"
"} \n"
" \n"
- "void main() { \n"
+ "main() { \n"
" var x = new B(); \n"
" return x.i + 1; \n"
"} \n";
@@ -477,17 +477,17 @@
TEST_CASE(Debug_DeoptimizeFunction) {
const char* kScriptChars =
- "foo(x) => 2 * x; \n"
- " \n"
- "warmup() { \n"
+ "foo(x) => 2 * x; \n"
+ " \n"
+ "warmup() { \n"
" for (int i = 0; i < 5000; i++) { \n"
- " foo(i); \n"
- " } \n"
- "} \n"
- " \n"
- "void main() { \n"
- " return foo(99); \n"
- "} \n";
+ " foo(i); \n"
+ " } \n"
+ "} \n"
+ " \n"
+ "main() { \n"
+ " return foo(99); \n"
+ "} \n";
LoadScript(kScriptChars);
Dart_SetBreakpointHandler(&StepIntoHandler);
@@ -544,7 +544,7 @@
TEST_CASE(Debug_SingleStep) {
const char* kScriptChars =
- "void moo(s) { return 1; } \n"
+ "moo(s) { return 1; } \n"
" \n"
"void foo() { \n"
" moo('step one'); \n"

Powered by Google App Engine
This is Rietveld 408576698