Skip to content

Commit f247560

Browse files
aamCommit Queue
authored andcommitted
[vm/shared/test] Add Encoding.getByName test when used in isolategroup-bound context.
Follow-up to https://dart-review.googlesource.com/c/sdk/+/461185/comment/323d39ca_c22b0862/ TEST=ci Change-Id: Iea9c68c0761a63804e87d9d2f54f1571ff983cd9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/465962 Commit-Queue: Alexander Aprelev <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]>
1 parent f19440c commit f247560

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ffi/run_isolate_group_run_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ main(List<String> args) {
278278
() => Encoding.getByName("us-ascii")!.encode("123abc"),
279279
),
280280
);
281+
Expect.identical(
282+
ascii,
283+
IsolateGroup.runSync(() => Encoding.getByName("us-ascii")),
284+
);
285+
Expect.identical(
286+
utf8,
287+
IsolateGroup.runSync(() => Encoding.getByName("utf-8")),
288+
);
281289

282290
print("All tests completed :)");
283291
}

0 commit comments

Comments
 (0)