Skip to content

Commit 26f45c5

Browse files
committed
Fixed tests affected by adding static members to GetProperties reply.
1 parent 777305e commit 26f45c5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/mono/wasm/debugger/DebuggerTestSuite/CallFunctionOnTests.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ await RunCallFunctionOn(eval_fn, vscode_fn0, "big", bp_loc, line, col, res_array
3737
ownProperties = false
3838
}), token);
3939
if (is_js)
40-
await CheckProps(obj_accessors.Value["result"], new { __proto__ = TIgnore() }, "obj_accessors");
40+
await CheckProps(obj_accessors.Value["result"], new { __proto__ = TIgnore() }, "obj_accessors");
4141
else
4242
AssertEqual(0, obj_accessors.Value["result"]?.Count(), "obj_accessors-count");
4343

@@ -98,7 +98,7 @@ await RunCallFunctionOn(eval_fn, vscode_fn1, "big", bp_loc, line, col,
9898
}), token);
9999

100100
if (is_js)
101-
await CheckProps(obj_accessors.Value["result"], new { __proto__ = TIgnore() }, "obj_accessors");
101+
await CheckProps(obj_accessors.Value["result"], new { __proto__ = TIgnore() }, "obj_accessors");
102102
else
103103
AssertEqual(0, obj_accessors.Value["result"]?.Count(), "obj_accessors-count");
104104

@@ -622,7 +622,11 @@ public async Task PropertyGettersTest(string eval_fn, string method_name, int li
622622

623623
// Auto properties show w/o getters, because they have
624624
// a backing field
625-
DTAutoProperty = TDateTime(dt)
625+
DTAutoProperty = TDateTime(dt),
626+
627+
// Static properties
628+
PublicStaticDTProp = TGetter("PublicStaticDTProp"),
629+
PrivateStaticDTProp = TGetter("PrivateStaticDTProp"),
626630
}, local_name);
627631

628632
// Invoke getters, and check values

src/mono/wasm/debugger/DebuggerTestSuite/MiscTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ public async Task InspectTaskAtLocals() => await CheckInspectLocalsAtBreakpointS
870870
await CheckProps(t_props, new
871871
{
872872
Status = TGetter("Status")
873-
}, "t_props", num_fields: 54);
873+
}, "t_props", num_fields: 58);
874874
});
875875

876876

0 commit comments

Comments
 (0)