tree: 3b7c570a3e52dd0ff6f50610f2a4bbd0447bd03b [path history] [tgz]
  1. resources/
  2. webexposed/
  3. DIR_METADATA
  4. README.md
  5. sample-api-broken.html
  6. sample-api-deprecation-disabled-insecure-context.html
  7. sample-api-deprecation-disabled.html
  8. sample-api-deprecation-enabled-insecure-context-header.php
  9. sample-api-deprecation-enabled-insecure-context.html
  10. sample-api-deprecation-enabled.html
  11. sample-api-disabled-insecure-context.html
  12. sample-api-disabled.html
  13. sample-api-enabled-header.php
  14. sample-api-enabled-insecure-context-header.php
  15. sample-api-enabled-insecure-context.html
  16. sample-api-enabled.html
  17. sample-api-expired.html
  18. sample-api-implied-disabled.html
  19. sample-api-implied-enabled.html
  20. sample-api-implied-script-added.html
  21. sample-api-invalid-os.html
  22. sample-api-multiple-tokens-header.php
  23. sample-api-multiple-tokens.html
  24. sample-api-script-added-after-css-declaration.html
  25. sample-api-script-added-before-access.html
  26. sample-api-script-added.html
  27. sample-api-stolen.html
  28. sample-api-workers.html
  29. third-party-first-party-token-in-markup-enabled.html
  30. third-party-injected-classic-script-nested.html
  31. third-party-injected-classic-script-on-demand.html
  32. third-party-injected-classic-script.html
  33. third-party-injected-module-script.html
  34. third-party-token-in-markup-disabled.html
chromium/src/third_party/blink/web_tests/http/tests/origin_trials/README.md

This directory contains tests to ensure that the origin trials framework correctly handles enables/disables trials based on combinations of:

  • Tokens missing or invalid
  • Tokens provided via header, tag, and injected via script
  • Secure and insecure contexts
  • JS exposure via bindings for various IDL constructs

The conventions for test file naming:

  • If the name contains “enabled”, it generally means that a valid token is provided, regardless if the trial actually ends up being enabled.
  • If the name contains “disabled”, it generally means that no token is provided. TODO(chasej): Rename the test files for clarity, so we don't need to explain the naming convention. e.g. “has-token”, “valid-token” vs “no-token”. Then can use “enabled” or “disabled” to reflect expected status.