Ambient Light Sensor: All Results

Test files: 9; Total subtests: 71

Test Files

  1. /ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html
  2. /ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html
  3. /ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html
  4. /ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html
  5. /ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html
  6. /ambient-light/AmbientLightSensor.https.html
  7. /ambient-light/AmbientLightSensor_insecure_context.html
  8. /ambient-light/idlharness.https.html
  9. /ambient-light/AmbientLightSensor_onerror-manual.https.html
TestCA67CD67
/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.htmlOKOK
AmbientLightSensor: Feature-Policy header ambient-light-sensor 'none' disallows the top-level document.PASSPASS
AmbientLightSensor: Feature-Policy header ambient-light-sensor 'none' disallows same-origin iframes.PASSPASS
AmbientLightSensor: Feature-Policy header ambient-light-sensor 'none' disallows cross-origin iframes.PASSPASS
/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.htmlOKOK
AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute allows same-origin relocationPASSPASS
AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute disallows cross-origin relocationPASSPASS
/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.htmlOKOK
AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute allows same-origin iframePASSPASS
AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute allows cross-origin iframePASSPASS
/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.htmlOKOK
AmbientLightSensor: Feature-Policy header ambient-light-sensor * allows the top-level document.PASSPASS
AmbientLightSensor: Feature-Policy header ambient-light-sensor * allows same-origin iframes.PASSPASS
AmbientLightSensor: Feature-Policy header ambient-light-sensor * allows cross-origin iframes.PASSPASS
/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.htmlOKOK
AmbientLightSensor: Feature-Policy header ambient-light-sensor 'self' allows the top-level document.PASSPASS
AmbientLightSensor: Feature-Policy header ambient-light-sensor 'self' allows same-origin iframes.PASSPASS
AmbientLightSensor: Feature-Policy header ambient-light-sensor 'self' disallows cross-origin iframes.PASSPASS
/ambient-light/AmbientLightSensor.https.htmlOKOK
AmbientLightSensor: Test that 'onreading' is called and sensor reading is validPASSPASS
AmbientLightSensor: sensor reading is correctPASSPASS
AmbientLightSensor: sensor timestamp is updated when time passesPASSPASS
AmbientLightSensor: Test that sensor can be successfully created and its states are correct.PASSPASS
AmbientLightSensor: sensor.start() returns undefinedPASSPASS
AmbientLightSensor: no exception is thrown when calling start() on already started sensorPASSPASS
AmbientLightSensor: sensor.stop() returns undefinedPASSPASS
AmbientLightSensor: no exception is thrown when calling stop() on already stopped sensorPASSPASS
AmbientLightSensor: Test that fresh reading is fetched on start()PASSPASS
AmbientLightSensor: sensor readings can not be fired on the background tabPASSPASS
AmbientLightSensor: frequency hint worksPASSPASS
AmbientLightSensor: sensor receives suspend / resume notifications when cross-origin subframe is focusedPASSPASS
AmbientLightSensor: throw 'NotSupportedError' for an unsupported sensor optionFAILFAIL
AmbientLightSensor: throw 'TypeError' if frequency is invalidFAILFAIL
/ambient-light/AmbientLightSensor_insecure_context.htmlOKOK
AmbientLightSensor is not exposed in an insecure contextPASSPASS
/ambient-light/idlharness.https.htmlOKOK
Test IDL implementation of Ambient Light SensorPASSPASS
Sensor interface: existence and properties of interface objectPASSPASS
Sensor interface object lengthPASSPASS
Sensor interface object namePASSPASS
Sensor interface: existence and properties of interface prototype objectPASSPASS
Sensor interface: existence and properties of interface prototype object's "constructor" propertyPASSPASS
Sensor interface: existence and properties of interface prototype object's @@unscopables propertyPASSPASS
Sensor interface: attribute activatedPASSPASS
Unscopable handled correctly for activated property on SensorPASSPASS
Sensor interface: attribute hasReadingPASSPASS
Unscopable handled correctly for hasReading property on SensorPASSPASS
Sensor interface: attribute timestampPASSPASS
Unscopable handled correctly for timestamp property on SensorPASSPASS
Sensor interface: operation start()PASSPASS
Unscopable handled correctly for start() on SensorPASSPASS
Sensor interface: operation stop()PASSPASS
Unscopable handled correctly for stop() on SensorPASSPASS
Sensor interface: attribute onreadingPASSPASS
Unscopable handled correctly for onreading property on SensorPASSPASS
Sensor interface: attribute onactivatePASSPASS
Unscopable handled correctly for onactivate property on SensorPASSPASS
Sensor interface: attribute onerrorPASSPASS
Unscopable handled correctly for onerror property on SensorPASSPASS
AmbientLightSensor interface: existence and properties of interface objectPASSPASS
AmbientLightSensor interface object lengthPASSPASS
AmbientLightSensor interface object namePASSPASS
AmbientLightSensor interface: existence and properties of interface prototype objectPASSPASS
AmbientLightSensor interface: existence and properties of interface prototype object's "constructor" propertyPASSPASS
AmbientLightSensor interface: existence and properties of interface prototype object's @@unscopables propertyPASSPASS
AmbientLightSensor interface: attribute illuminancePASSPASS
Unscopable handled correctly for illuminance property on AmbientLightSensorPASSPASS
AmbientLightSensor must be primary interface of new AmbientLightSensor()PASSPASS
Stringification of new AmbientLightSensor()PASSPASS
AmbientLightSensor interface: new AmbientLightSensor() must inherit property "illuminance" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "activated" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "hasReading" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "timestamp" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "start()" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "stop()" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "onreading" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "onactivate" with the proper typePASSPASS
Sensor interface: new AmbientLightSensor() must inherit property "onerror" with the proper typePASSPASS
/ambient-light/AmbientLightSensor_onerror-manual.https.htmlOKOK
AmbientLightSensor: 'onerror' event is fired when sensor is not supportedPASSPASS

Failure analysis:

  1. /ambient-light/AmbientLightSensor.https.html:
    Subtests:
    • AmbientLightSensor: throw 'NotSupportedError' for an unsupported sensor option:
      Not implemented, feature ID: #823223
    • AmbientLightSensor: throw 'TypeError' if frequency is invalid
      Bug: #823636