1
0
Fork 0
firefox/testing/web-platform/tests/fedcm/support
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00
..
fedcm Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
acao-cors.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
account_picture.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
account_picture_get_count.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
account_picture_uncached.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
account_picture_uncached_get_count.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
accounts.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
accounts_check_same_site_strict.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
accounts_no_approved_clients.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
client_metadata.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
client_metadata.py.headers Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
client_metadata_clear_count.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
continue_on.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
disconnect.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
disconnect_failure.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
error_with_code_and_url.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
fedcm-helper.sub.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
fedcm-helper.sub.js.headers Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
fedcm-iframe-level2.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
fedcm-iframe.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
fedcm-mock.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
fedcm-mojojs-helper.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
fencedframe-mark-signedin.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
idp_close.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
iframe-mark-signedin.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
keys.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
lfedcm-helpers.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
lfedcm-identity.provider-create.sub.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
lfedcm-identity.provider-delete.sub.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
login.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest-not-in-list.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest-token-nocors.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_accounts_push.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_broken_login.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_check_disclosure_shown_false.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_check_disclosure_shown_true.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_check_params.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_check_same_site_strict.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_id_assertion_endpoint_returns_error.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_no_login_url.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_redirect_accounts.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_redirect_token.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_token_with_http_error.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_auto_selected_flag.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_continue_on.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_cross_origin_disconnect.sub.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_disconnect_failure.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_no_accounts.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_rp_mode.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_single_account.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_single_identifier.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_two_accounts.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest_with_variable_accounts.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
mark_signedin Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
mark_signedin.sub.headers Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
mark_signedout Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
mark_signedout.sub.headers Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
no-cors.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
no_accounts.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
push_accounts Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
push_accounts.sub.headers Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
README.md Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
request-params-check.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
resolve.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
select_manifest_in_root_manifest.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
set_accounts_cookie.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
set_cookie Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
set_cookie.headers Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
single_account.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
single_identifier_accounts.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_check_disclosure_shown_false.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_check_disclosure_shown_true.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_check_params.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_check_same_site_strict.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_with_account_id.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_with_auto_selected_flag.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_with_http_error.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
token_with_rp_mode.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
two_accounts.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
variable_accounts.py Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00

FedCM Testing

fedcm-mojojs-helper.js exposes fedcm_mojo_mock_test which is a specialized promise_test which comes pre-setup with the appropriate mocking infrastructure to emulate platform federated auth backend. The mock is passed to the test function as the second parameter.

Example usage:

<script type="module">
  import {fedcm_mojo_mock_test} from './support/fedcm-mojojs-helper.js';

  fedcm_mojo_mock_test(async (t, mock) => {
    mock.returnToken("https://idp.test/fedcm.json", "a_token");
    assert_equals("a_token", await navigator.credentials.get(options));
  }, "Successfully obtaining a token using mock.");
</script>

The chromium implementation uses the MojoJS shim.