Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Changed required behaviour to 2 pauses on the hidden method call.
  • Loading branch information
ilonatommy committed Nov 23, 2021
commit 3b1b047098b5bd25e3309e214c1b98d6e0e9d407
19 changes: 2 additions & 17 deletions src/mono/wasm/debugger/DebuggerTestSuite/SteppingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -989,16 +989,9 @@ await EvaluateAndCheck(

var step_into2 = await SendCommandAndCheck(null, $"Debugger.stepInto", null, -1, -1, null);

Assert.Equal(
pause_location.Value["locations"][0]["lineNumber"].Value<int>(),
step_into2["callFrames"][0]["location"]["lineNumber"].Value<int>()
);

var step_into3 = await SendCommandAndCheck(null, $"Debugger.stepInto", null, -1, -1, null);

Assert.Equal(
pause_location.Value["locations"][0]["lineNumber"].Value<int>() + 1,
step_into3["callFrames"][0]["location"]["lineNumber"].Value<int>()
step_into2["callFrames"][0]["location"]["lineNumber"].Value<int>()
);

}
Expand All @@ -1022,18 +1015,10 @@ await EvaluateAndCheck(

var step_over2 = await SendCommandAndCheck(null, $"Debugger.stepOver", null, -1, -1, null);

Assert.Equal(
pause_location.Value["locations"][0]["lineNumber"].Value<int>(),
step_over2["callFrames"][0]["location"]["lineNumber"].Value<int>()
);

var step_over3 = await SendCommandAndCheck(null, $"Debugger.stepOver", null, -1, -1, null);

Assert.Equal(
pause_location.Value["locations"][0]["lineNumber"].Value<int>() + 1,
step_over3["callFrames"][0]["location"]["lineNumber"].Value<int>()
step_over2["callFrames"][0]["location"]["lineNumber"].Value<int>()
);

}
}
}