trisquel-icecat/icecat/testing/web-platform/tests/fedcm/support
2025-10-06 02:35:48 -06:00
..
fedcm icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
acao-cors.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
account_picture.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
account_picture_get_count.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
account_picture_uncached.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
account_picture_uncached_get_count.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
accounts.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
accounts_check_same_site_strict.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
accounts_no_approved_clients.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
client_metadata.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
client_metadata.py.headers icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
client_metadata_clear_count.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
continue_on.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
disconnect.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
disconnect_failure.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
error_with_code_and_url.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
fedcm-helper.sub.js icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
fedcm-helper.sub.js.headers icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
fedcm-iframe-level2.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
fedcm-iframe.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
fedcm-mock.js icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
fedcm-mojojs-helper.js icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
fencedframe-mark-signedin.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
idp_close.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
iframe-mark-signedin.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
keys.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
lfedcm-helpers.js icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
lfedcm-identity.provider-create.sub.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
lfedcm-identity.provider-delete.sub.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
login.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest-not-in-list.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest-token-nocors.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_accounts_push.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_broken_login.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_check_disclosure_shown_false.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_check_disclosure_shown_true.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_check_params.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_check_same_site_strict.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_id_assertion_endpoint_returns_error.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_no_login_url.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_redirect_accounts.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_redirect_token.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_token_with_http_error.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_auto_selected_flag.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_continue_on.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_cross_origin_disconnect.sub.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_disconnect_failure.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_no_accounts.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_rp_mode.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_single_account.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_single_identifier.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_two_accounts.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
manifest_with_variable_accounts.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
mark_signedin icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
mark_signedin.sub.headers icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
mark_signedout icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
mark_signedout.sub.headers icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
no-cors.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
no_accounts.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
push_accounts icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
push_accounts.sub.headers icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
README.md icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
request-params-check.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
resolve.html icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
select_manifest_in_root_manifest.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
set_accounts_cookie.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
set_cookie icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
set_cookie.headers icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
single_account.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
single_identifier_accounts.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_check_disclosure_shown_false.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_check_disclosure_shown_true.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_check_params.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_check_same_site_strict.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_with_account_id.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_with_auto_selected_flag.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_with_http_error.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
token_with_rp_mode.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
two_accounts.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
variable_accounts.py icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06: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.