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

Unified Diff: test/debugger/debug/debug-stepin-call-function-stub.js

Issue 2466273005: [debugger] Further stepping support in test wrapper (Closed)
Patch Set: Move more tests Created 4 years, 1 month 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: test/debugger/debug/debug-stepin-call-function-stub.js
diff --git a/test/mjsunit/debug-stepin-call-function-stub.js b/test/debugger/debug/debug-stepin-call-function-stub.js
similarity index 95%
rename from test/mjsunit/debug-stepin-call-function-stub.js
rename to test/debugger/debug/debug-stepin-call-function-stub.js
index b3e385bfb5dace219f0f41ba9b0567088691c8c9..092f2da15105c93e280c6b10cb815bc579d735f2 100644
--- a/test/mjsunit/debug-stepin-call-function-stub.js
+++ b/test/debugger/debug/debug-stepin-call-function-stub.js
@@ -25,8 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --expose-debug-as debug
-// Get the Debug object exposed from the debug context global object.
Debug = debug.Debug
var exception = null;
@@ -88,8 +86,9 @@ for (var i = 0; i < 3; i++) {
expected_source_line_text = ' return "s"; // expected line';
step_in_count = 2;
// Set a break point and call to invoke the debug event listener.
- Debug.setBreakPoint(testFunction, 1, 0);
+ const breakid = Debug.setBreakPoint(testFunction, 1, 0);
testFunction();
+ Debug.clearBreakPoint(breakid);
assertNull(exception);
assertEquals(3, state);
}
@@ -104,8 +103,9 @@ for (var i = 0; i < 3; i++) {
expected_source_line_text = ' return "s2"; // expected line';
step_in_count = 1;
// Set a break point and call to invoke the debug event listener.
- Debug.setBreakPoint(testFunction2, 2, 0);
+ const breakid = Debug.setBreakPoint(testFunction2, 2, 0);
testFunction2();
+ Debug.clearBreakPoint(breakid);
assertNull(exception);
assertEquals(3, state);
}
« no previous file with comments | « test/debugger/debug/debug-stepin-builtin-callback-opt.js ('k') | test/debugger/debug/debug-stepin-construct-call.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698