Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e6df959

Browse files
committed
fix test
1 parent 540bee5 commit e6df959

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/web_ui/lib/src/engine/window.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ class EngineWindow extends ui.Window {
801801
}
802802

803803
void _addUrlStrategyListener() {
804-
_onUrlStrategy = setUrlStrategy;
804+
_onUrlStrategy = allowInterop(setUrlStrategy);
805805
registerHotRestartListener(() {
806806
_onUrlStrategy = null;
807807
});

lib/web_ui/test/engine/history_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,4 +555,7 @@ class TestPlatformLocation extends PlatformLocation {
555555
void go(int count) {
556556
throw UnimplementedError();
557557
}
558+
559+
@override
560+
String getBaseHref() => '/';
558561
}

0 commit comments

Comments
 (0)