Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] Update line numbers to track recent changes in JSConditionalBr… #67944

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Changes from all commits
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
20 changes: 10 additions & 10 deletions src/mono/wasm/debugger/DebuggerTestSuite/BreakpointTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,19 +213,19 @@ await EvaluateAndCheck(
}

[Theory]
[InlineData("c == 15", 78, 3, 78, 11)]
[InlineData("c == 17", 78, 3, 79, 11)]
[InlineData("g == 17", 78, 3, 79, 11)]
[InlineData("true", 78, 3, 78, 11)]
[InlineData("\"false\"", 78, 3, 78, 11)]
[InlineData("\"true\"", 78, 3, 78, 11)]
[InlineData("5", 78, 3, 78, 11)]
[InlineData("p", 78, 3, 79, 11)]
[InlineData("0.0", 78, 3, 79, 11)]
[InlineData("c == 15", 79, 3, 79, 11)]
[InlineData("c == 17", 79, 3, 80, 11)]
[InlineData("g == 17", 79, 3, 80, 11)]
[InlineData("true", 79, 3, 79, 11)]
[InlineData("\"false\"", 79, 3, 79, 11)]
[InlineData("\"true\"", 79, 3, 79, 11)]
[InlineData("5", 79, 3, 79, 11)]
[InlineData("p", 79, 3, 80, 11)]
[InlineData("0.0", 79, 3, 80, 11)]
public async Task JSConditionalBreakpoint(string condition, int line_bp, int column_bp, int line_expected, int column_expected)
{
await SetBreakpoint("/debugger-driver.html", line_bp, column_bp, condition: condition);
await SetBreakpoint("/debugger-driver.html", 79, 11);
await SetBreakpoint("/debugger-driver.html", 80, 11);

await EvaluateAndCheck(
"window.setTimeout(function() { conditional_breakpoint_test(5, 10, null); }, 1);",
Expand Down