fix:对齐金值,主要注销,一键登录等方面修改
This commit is contained in:
1 parent
e29ed0a2c8
commit
6997a65c96
37 files changed
+3442
-514
No files matched your search
@@ -2,13 +2,14 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:jinzhi_flutter_app/features/web/presentation/web_page.dart';
|
||||
|
||||
void main() {
|
||||
test('accepts only http and https URLs with a host', () {
|
||||
test('accepts HTTPS and rejects unsafe or remote HTTP URLs', () {
|
||||
expect(
|
||||
parseSafeWebUri('https://h5.example.com/page')?.host,
|
||||
'h5.example.com',
|
||||
);
|
||||
expect(parseSafeWebUri('mailto:test@example.com'), isNull);
|
||||
expect(parseSafeWebUri('javascript:alert(1)'), isNull);
|
||||
expect(parseSafeWebUri('http://example.com/page'), isNull);
|
||||
expect(parseSafeWebUri(''), isNull);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user