-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[google_identity_services_web] Migrate all types to JSObject (#8053)
And cleanup other legacy JS-interop Also update tests so they pass with WebAssembly
- Loading branch information
Showing
8 changed files
with
50 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,25 +61,24 @@ void main() async { | |
utils.createExpectConfigValue(config as JSObject); | ||
|
||
expectConfigValue('client_id', 'testing_1-2-3'); | ||
expectConfigValue('auto_select', isFalse); | ||
expectConfigValue('auto_select', false); | ||
expectConfigValue('callback', utils.isAJs('function')); | ||
expectConfigValue('login_uri', 'https://www.example.com/login'); | ||
expectConfigValue('native_callback', utils.isAJs('function')); | ||
expectConfigValue('cancel_on_tap_outside', isFalse); | ||
expectConfigValue('allowed_parent_origin', isA<JSArray<JSString>>()); | ||
expectConfigValue('cancel_on_tap_outside', false); | ||
expectConfigValue( | ||
'allowed_parent_origin', <String>['allowed', 'another']); | ||
expectConfigValue('prompt_parent_id', 'some_dom_id'); | ||
expectConfigValue('nonce', 's0m3_r4ndOM_vALu3'); | ||
expectConfigValue('context', 'signin'); | ||
expectConfigValue('state_cookie_domain', 'subdomain.example.com'); | ||
expectConfigValue('ux_mode', 'popup'); | ||
expectConfigValue( | ||
'allowed_parent_origin', <String>['allowed', 'another']); | ||
expectConfigValue( | ||
'intermediate_iframe_close_callback', utils.isAJs('function')); | ||
expectConfigValue('itp_support', isTrue); | ||
expectConfigValue('itp_support', true); | ||
expectConfigValue('login_hint', '[email protected]'); | ||
expectConfigValue('hd', 'hd_value'); | ||
expectConfigValue('use_fedcm_for_prompt', isTrue); | ||
expectConfigValue('use_fedcm_for_prompt', true); | ||
}); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,9 +43,9 @@ void main() async { | |
expectConfigValue('client_id', 'testing_1-2-3'); | ||
expectConfigValue('callback', utils.isAJs('function')); | ||
expectConfigValue('scope', 'one two three'); | ||
expectConfigValue('include_granted_scopes', isTrue); | ||
expectConfigValue('include_granted_scopes', true); | ||
expectConfigValue('prompt', 'some-prompt'); | ||
expectConfigValue('enable_granular_consent', isTrue); | ||
expectConfigValue('enable_granular_consent', true); | ||
expectConfigValue('login_hint', '[email protected]'); | ||
expectConfigValue('hd', 'hd_value'); | ||
expectConfigValue('state', 'some-state'); | ||
|
@@ -66,9 +66,9 @@ void main() async { | |
utils.createExpectConfigValue(config as JSObject); | ||
|
||
expectConfigValue('scope', 'one two three'); | ||
expectConfigValue('include_granted_scopes', isTrue); | ||
expectConfigValue('include_granted_scopes', true); | ||
expectConfigValue('prompt', 'some-prompt'); | ||
expectConfigValue('enable_granular_consent', isTrue); | ||
expectConfigValue('enable_granular_consent', true); | ||
expectConfigValue('login_hint', '[email protected]'); | ||
expectConfigValue('state', 'some-state'); | ||
}); | ||
|
@@ -93,15 +93,15 @@ void main() async { | |
utils.createExpectConfigValue(config as JSObject); | ||
|
||
expectConfigValue('scope', 'one two three'); | ||
expectConfigValue('include_granted_scopes', isTrue); | ||
expectConfigValue('include_granted_scopes', true); | ||
expectConfigValue('redirect_uri', 'https://www.example.com/login'); | ||
expectConfigValue('callback', utils.isAJs('function')); | ||
expectConfigValue('state', 'some-state'); | ||
expectConfigValue('enable_granular_consent', isTrue); | ||
expectConfigValue('enable_granular_consent', true); | ||
expectConfigValue('login_hint', '[email protected]'); | ||
expectConfigValue('hd', 'hd_value'); | ||
expectConfigValue('ux_mode', 'popup'); | ||
expectConfigValue('select_account', isTrue); | ||
expectConfigValue('select_account', true); | ||
expectConfigValue('error_callback', utils.isAJs('function')); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters