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

Side by Side Diff: test/mjsunit/debug-return-value.js

Issue 1525173003: [debugger] remove step count parameter from prepare step. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 assertEquals(debugger_source_position + 19, 91 assertEquals(debugger_source_position + 19,
92 exec_state.frame(0).sourcePosition()); 92 exec_state.frame(0).sourcePosition());
93 } else { 93 } else {
94 assertEquals(debugger_source_position + 38, 94 assertEquals(debugger_source_position + 38,
95 exec_state.frame(0).sourcePosition()); 95 exec_state.frame(0).sourcePosition());
96 } 96 }
97 break; 97 break;
98 default: 98 default:
99 fail("Unexpected"); 99 fail("Unexpected");
100 } 100 }
101 exec_state.prepareStep(Debug.StepAction.StepIn, 1); 101 exec_state.prepareStep(Debug.StepAction.StepIn);
102 } else { 102 } else {
103 // Position at the end of the function. 103 // Position at the end of the function.
104 assertEquals(debugger_source_position + 50, 104 assertEquals(debugger_source_position + 50,
105 exec_state.frame(0).sourcePosition()); 105 exec_state.frame(0).sourcePosition());
106 106
107 // Just about to return from the function. 107 // Just about to return from the function.
108 assertTrue(exec_state.frame(0).isAtReturn()) 108 assertTrue(exec_state.frame(0).isAtReturn())
109 assertEquals(expected_return_value, 109 assertEquals(expected_return_value,
110 exec_state.frame(0).returnValue().value()); 110 exec_state.frame(0).returnValue().value());
111 111
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 assertTrue(listener_complete); 155 assertTrue(listener_complete);
156 assertEquals(4, break_count); 156 assertEquals(4, break_count);
157 157
158 break_count = 0; 158 break_count = 0;
159 expected_return_value = 2; 159 expected_return_value = 2;
160 listener_complete = false; 160 listener_complete = false;
161 f(false); 161 f(false);
162 assertFalse(exception, "exception in listener") 162 assertFalse(exception, "exception in listener")
163 assertTrue(listener_complete); 163 assertTrue(listener_complete);
164 assertEquals(4, break_count); 164 assertEquals(4, break_count);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698