From 4b652a090da4689a64393d7f29fc2639246b4a14 Mon Sep 17 00:00:00 2001 From: Booker Date: Wed, 3 Jun 2026 20:15:02 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=BC=95=E5=AF=BC=20H5=20=E7=BA=BF=E8=B7=AF=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E7=8E=AF=E5=9B=9E=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E5=92=8C=E5=8E=9F=E7=94=9F=E5=BA=94=E7=94=A8=E8=AE=BF?= =?UTF-8?q?=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/widget_test.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/widget_test.dart b/test/widget_test.dart index 710bdd5..2570572 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -44,6 +44,22 @@ void main() { expect(urls, ['https://h5-test.imharry.work/']); }); + test('keeps fixed bootstrap H5 line for loopback browser access', () { + final urls = AppConfig.defaultH5LineUrlsForBaseUri( + Uri.parse('http://127.0.0.1:3000/'), + ); + + expect(urls, ['https://h5-test.imharry.work/']); + }); + + test('keeps fixed bootstrap H5 line for native app access', () { + final urls = AppConfig.defaultH5LineUrlsForBaseUri( + Uri.parse('file:///android_asset/flutter_assets/'), + ); + + expect(urls, ['https://h5-test.imharry.work/']); + }); + test('uses fixed client config query parameters', () { expect(AppConfig.clientConfigQueryPayload, { 'device': 'h5',