Skip to content

Add feature policy tests for motion sensors #55590

@2400030206

Description

@2400030206

Description

This PR adds comprehensive tests for the Accelerometer API, including:

  • Basic sensor functionality for Accelerometer, GravitySensor, and LinearAccelerationSensor
  • Feature Policy integration tests (enabled/disabled states)
  • Cross-origin iframe accessibility tests
  • Insecure context validation
  • IDL harness compliance tests

Tests Added

  • accelerometer/Accelerometer.https.html
  • accelerometer/GravitySensor.https.html
  • accelerometer/LinearAccelerationSensor.https.html
  • accelerometer/Accelerometer_insecure_context.html
  • accelerometer/Accelerometer-iframe-access.https.html
  • Feature policy tests in accelerometer/*-by-feature-policy*.https.html
  • IDL tests in accelerometer/idlharness.https.window.js

Manual Testing

  • LinearAccelerationSensor shake threshold test requires manual device shaking
  • All other tests are fully automated

Related Issues

Closes #[issue_number] - Add Accelerometer API test coverage

Reviewers

@riju @Honry @rakuco (from accelerometer/META.yml)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions