Commit 73ecbd2f authored by Ioana Pandele's avatar Ioana Pandele Committed by Commit Bot

Revert "Use computed font-size for em/rem resolution."

This reverts commit 41edd5e1.

Reason for revert:
external/wpt/orientation-sensor/AbsoluteOrientationSensor.https.html 
external/wpt/orientation-sensor/RelativeOrientationSensor.https.html
are consistently failing on Mac.

Bug:1004253

Original change's description:
> Use computed font-size for em/rem resolution.
> 
> This makes us match how Firefox applies minimum font-size and makes us
> not break relative length computation when pages use a font-size less
> than the user's minimum font-size as a basis for widths, heights,
> margins, padding, etc.
> 
> This is a behavioral change for relative lengths for the following
> cases:
> 
> - minimum-font-size does not affect em lengths
> - minimum-logical-font-size does not affect em lengths
> - text autosizing does not affect em lengths
> - text scaling accessibility setting in Chrome for Android does not
>   affect em lengths
> 
> Test expectation changes and reasons:
> 
> Text scaling no longer applies to relative lengths (text zoom set from testRunner):
> 
> svg/zoom/text/zoom-hixie-mixed-008.xml
> svg/zoom/text/zoom-hixie-rendering-model-004.xhtml
> svg/zoom/text/zoom-svg-float-border-padding.xml
> 
> Minimum logical font-size not applying to relative lengths (minimum logical font-size set to
> 9px when running layout tests):
> 
> fast/backgrounds/background-position-parsing.html
> virtual/controls-refresh/fast/forms/controls-new-ui/password/password-eye-icon-zoom-0.5x.html
> http/tests/misc/object-embedding-svg-delayed-size-negotiation-2.htm
> 
> Bug: 308862
> Change-Id: I5e5fb99e69b516c9c0c3758d232cbae8f7f5894a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1803281
> Reviewed-by: Emil A Eklund <eae@chromium.org>
> Commit-Queue: Rune Lillesveen <futhark@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#696694}

TBR=pdr@chromium.org,eae@chromium.org,drott@chromium.org,futhark@chromium.org

Change-Id: Iaca7d3c69056f1b8f77ea4f212bf4abd08c613d8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 308862
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804478Reviewed-by: default avatarIoana Pandele <ioanap@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696759}
parent eb943643
...@@ -47,8 +47,8 @@ CSSToLengthConversionData::FontSizes::FontSizes(float em, ...@@ -47,8 +47,8 @@ CSSToLengthConversionData::FontSizes::FontSizes(float em,
CSSToLengthConversionData::FontSizes::FontSizes(const ComputedStyle* style, CSSToLengthConversionData::FontSizes::FontSizes(const ComputedStyle* style,
const ComputedStyle* root_style) const ComputedStyle* root_style)
: FontSizes(style->SpecifiedFontSize(), : FontSizes(style->ComputedFontSize(),
root_style ? root_style->SpecifiedFontSize() : 1.0f, root_style ? root_style->ComputedFontSize() : 1.0f,
&style->GetFont(), &style->GetFont(),
style->EffectiveZoom()) {} style->EffectiveZoom()) {}
...@@ -175,13 +175,13 @@ double CSSToLengthConversionData::ZoomedComputedPixels( ...@@ -175,13 +175,13 @@ double CSSToLengthConversionData::ZoomedComputedPixels(
// as well as enforcing the implicit "smart minimum." // as well as enforcing the implicit "smart minimum."
case CSSPrimitiveValue::UnitType::kEms: case CSSPrimitiveValue::UnitType::kEms:
case CSSPrimitiveValue::UnitType::kQuirkyEms: case CSSPrimitiveValue::UnitType::kQuirkyEms:
return value * EmFontSize() * Zoom(); return value * EmFontSize();
case CSSPrimitiveValue::UnitType::kExs: case CSSPrimitiveValue::UnitType::kExs:
return value * ExFontSize(); return value * ExFontSize();
case CSSPrimitiveValue::UnitType::kRems: case CSSPrimitiveValue::UnitType::kRems:
return value * RemFontSize() * Zoom(); return value * RemFontSize();
case CSSPrimitiveValue::UnitType::kChs: case CSSPrimitiveValue::UnitType::kChs:
return value * ChFontSize(); return value * ChFontSize();
......
This is a testharness.js-based test.
Found 66 tests; 44 PASS, 22 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS Accelerometer: Test that onerror is sent when sensor is not supported.
PASS Accelerometer: Test that onerror is sent when permissions are not granted.
PASS Accelerometer: Test that onerror is send when start() call has failed.
PASS Accelerometer: Test that frequency is capped to allowed maximum.
PASS Accelerometer: Test that frequency is capped to the maximum supported frequency.
PASS Accelerometer: Test that frequency is limited to the minimum supported frequency.
PASS Accelerometer: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS Accelerometer: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS Accelerometer: Test that 'onreading' is called and sensor reading is valid.
PASS Accelerometer: sensor reading is correct.
PASS Accelerometer: sensor timestamp is updated when time passes.
PASS Accelerometer: Test that sensor can be successfully created and its states are correct.
PASS Accelerometer: sensor.start() returns undefined.
PASS Accelerometer: no exception is thrown when calling start() on already started sensor.
PASS Accelerometer: sensor.stop() returns undefined.
PASS Accelerometer: no exception is thrown when calling stop() on already stopped sensor.
PASS Accelerometer: Test that fresh reading is fetched on start().
PASS Accelerometer: frequency hint works.
PASS Accelerometer: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS Accelerometer: throw 'TypeError' if frequency is invalid.
PASS Accelerometer: sensor reading is correct when options.referenceFrame is 'screen'.
PASS Accelerometer: throw 'TypeError' if referenceFrame is not one of enumeration values.
FAIL GravitySensor: Test that onerror is sent when sensor is not supported. assert_true: expected true got false
FAIL GravitySensor: Test that onerror is sent when permissions are not granted. assert_true: expected true got false
FAIL GravitySensor: Test that onerror is send when start() call has failed. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is capped to allowed maximum. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is capped to the maximum supported frequency. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is limited to the minimum supported frequency. assert_true: expected true got false
FAIL GravitySensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy. assert_true: expected true got false
FAIL GravitySensor: Test that sensor can be constructed within an iframe allowed to use feature policy. assert_true: expected true got false
FAIL GravitySensor: Test that 'onreading' is called and sensor reading is valid. assert_true: expected true got false
FAIL GravitySensor: sensor reading is correct. assert_true: expected true got false
FAIL GravitySensor: sensor timestamp is updated when time passes. assert_true: expected true got false
FAIL GravitySensor: Test that sensor can be successfully created and its states are correct. assert_true: expected true got false
FAIL GravitySensor: sensor.start() returns undefined. assert_true: expected true got false
FAIL GravitySensor: no exception is thrown when calling start() on already started sensor. assert_true: expected true got false
FAIL GravitySensor: sensor.stop() returns undefined. assert_true: expected true got false
FAIL GravitySensor: no exception is thrown when calling stop() on already stopped sensor. assert_true: expected true got false
FAIL GravitySensor: Test that fresh reading is fetched on start(). assert_true: expected true got false
FAIL GravitySensor: frequency hint works. assert_true: expected true got false
FAIL GravitySensor: sensor receives suspend / resume notifications when cross-origin subframe is focused. assert_true: expected true got false
FAIL GravitySensor: throw 'TypeError' if frequency is invalid. assert_true: expected true got false
FAIL GravitySensor: sensor reading is correct when options.referenceFrame is 'screen'. assert_true: expected true got false
FAIL GravitySensor: throw 'TypeError' if referenceFrame is not one of enumeration values. assert_true: expected true got false
PASS LinearAccelerationSensor: Test that onerror is sent when sensor is not supported.
PASS LinearAccelerationSensor: Test that onerror is sent when permissions are not granted.
PASS LinearAccelerationSensor: Test that onerror is send when start() call has failed.
PASS LinearAccelerationSensor: Test that frequency is capped to allowed maximum.
PASS LinearAccelerationSensor: Test that frequency is capped to the maximum supported frequency.
PASS LinearAccelerationSensor: Test that frequency is limited to the minimum supported frequency.
PASS LinearAccelerationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS LinearAccelerationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS LinearAccelerationSensor: Test that 'onreading' is called and sensor reading is valid.
PASS LinearAccelerationSensor: sensor reading is correct.
PASS LinearAccelerationSensor: sensor timestamp is updated when time passes.
PASS LinearAccelerationSensor: Test that sensor can be successfully created and its states are correct.
PASS LinearAccelerationSensor: sensor.start() returns undefined.
PASS LinearAccelerationSensor: no exception is thrown when calling start() on already started sensor.
PASS LinearAccelerationSensor: sensor.stop() returns undefined.
PASS LinearAccelerationSensor: no exception is thrown when calling stop() on already stopped sensor.
PASS LinearAccelerationSensor: Test that fresh reading is fetched on start().
PASS LinearAccelerationSensor: frequency hint works.
PASS LinearAccelerationSensor: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS LinearAccelerationSensor: throw 'TypeError' if frequency is invalid.
PASS LinearAccelerationSensor: sensor reading is correct when options.referenceFrame is 'screen'.
PASS LinearAccelerationSensor: throw 'TypeError' if referenceFrame is not one of enumeration values.
Harness: the test ran to completion.
This is a testharness.js-based test.
Found 66 tests; 44 PASS, 22 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS Accelerometer: Test that onerror is sent when sensor is not supported.
PASS Accelerometer: Test that onerror is sent when permissions are not granted.
PASS Accelerometer: Test that onerror is send when start() call has failed.
PASS Accelerometer: Test that frequency is capped to allowed maximum.
PASS Accelerometer: Test that frequency is capped to the maximum supported frequency.
PASS Accelerometer: Test that frequency is limited to the minimum supported frequency.
PASS Accelerometer: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS Accelerometer: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS Accelerometer: Test that 'onreading' is called and sensor reading is valid.
PASS Accelerometer: sensor reading is correct.
PASS Accelerometer: sensor timestamp is updated when time passes.
PASS Accelerometer: Test that sensor can be successfully created and its states are correct.
PASS Accelerometer: sensor.start() returns undefined.
PASS Accelerometer: no exception is thrown when calling start() on already started sensor.
PASS Accelerometer: sensor.stop() returns undefined.
PASS Accelerometer: no exception is thrown when calling stop() on already stopped sensor.
PASS Accelerometer: Test that fresh reading is fetched on start().
PASS Accelerometer: frequency hint works.
PASS Accelerometer: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS Accelerometer: throw 'TypeError' if frequency is invalid.
PASS Accelerometer: sensor reading is correct when options.referenceFrame is 'screen'.
PASS Accelerometer: throw 'TypeError' if referenceFrame is not one of enumeration values.
FAIL GravitySensor: Test that onerror is sent when sensor is not supported. assert_true: expected true got false
FAIL GravitySensor: Test that onerror is sent when permissions are not granted. assert_true: expected true got false
FAIL GravitySensor: Test that onerror is send when start() call has failed. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is capped to allowed maximum. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is capped to the maximum supported frequency. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is limited to the minimum supported frequency. assert_true: expected true got false
FAIL GravitySensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy. assert_true: expected true got false
FAIL GravitySensor: Test that sensor can be constructed within an iframe allowed to use feature policy. assert_true: expected true got false
FAIL GravitySensor: Test that 'onreading' is called and sensor reading is valid. assert_true: expected true got false
FAIL GravitySensor: sensor reading is correct. assert_true: expected true got false
FAIL GravitySensor: sensor timestamp is updated when time passes. assert_true: expected true got false
FAIL GravitySensor: Test that sensor can be successfully created and its states are correct. assert_true: expected true got false
FAIL GravitySensor: sensor.start() returns undefined. assert_true: expected true got false
FAIL GravitySensor: no exception is thrown when calling start() on already started sensor. assert_true: expected true got false
FAIL GravitySensor: sensor.stop() returns undefined. assert_true: expected true got false
FAIL GravitySensor: no exception is thrown when calling stop() on already stopped sensor. assert_true: expected true got false
FAIL GravitySensor: Test that fresh reading is fetched on start(). assert_true: expected true got false
FAIL GravitySensor: frequency hint works. assert_true: expected true got false
FAIL GravitySensor: sensor receives suspend / resume notifications when cross-origin subframe is focused. assert_true: expected true got false
FAIL GravitySensor: throw 'TypeError' if frequency is invalid. assert_true: expected true got false
FAIL GravitySensor: sensor reading is correct when options.referenceFrame is 'screen'. assert_true: expected true got false
FAIL GravitySensor: throw 'TypeError' if referenceFrame is not one of enumeration values. assert_true: expected true got false
PASS LinearAccelerationSensor: Test that onerror is sent when sensor is not supported.
PASS LinearAccelerationSensor: Test that onerror is sent when permissions are not granted.
PASS LinearAccelerationSensor: Test that onerror is send when start() call has failed.
PASS LinearAccelerationSensor: Test that frequency is capped to allowed maximum.
PASS LinearAccelerationSensor: Test that frequency is capped to the maximum supported frequency.
PASS LinearAccelerationSensor: Test that frequency is limited to the minimum supported frequency.
PASS LinearAccelerationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS LinearAccelerationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS LinearAccelerationSensor: Test that 'onreading' is called and sensor reading is valid.
PASS LinearAccelerationSensor: sensor reading is correct.
PASS LinearAccelerationSensor: sensor timestamp is updated when time passes.
PASS LinearAccelerationSensor: Test that sensor can be successfully created and its states are correct.
PASS LinearAccelerationSensor: sensor.start() returns undefined.
PASS LinearAccelerationSensor: no exception is thrown when calling start() on already started sensor.
PASS LinearAccelerationSensor: sensor.stop() returns undefined.
PASS LinearAccelerationSensor: no exception is thrown when calling stop() on already stopped sensor.
PASS LinearAccelerationSensor: Test that fresh reading is fetched on start().
PASS LinearAccelerationSensor: frequency hint works.
PASS LinearAccelerationSensor: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS LinearAccelerationSensor: throw 'TypeError' if frequency is invalid.
PASS LinearAccelerationSensor: sensor reading is correct when options.referenceFrame is 'screen'.
PASS LinearAccelerationSensor: throw 'TypeError' if referenceFrame is not one of enumeration values.
Harness: the test ran to completion.
This is a testharness.js-based test.
Found 66 tests; 43 PASS, 23 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS Accelerometer: Test that onerror is sent when sensor is not supported.
PASS Accelerometer: Test that onerror is sent when permissions are not granted.
PASS Accelerometer: Test that onerror is send when start() call has failed.
PASS Accelerometer: Test that frequency is capped to allowed maximum.
PASS Accelerometer: Test that frequency is capped to the maximum supported frequency.
PASS Accelerometer: Test that frequency is limited to the minimum supported frequency.
PASS Accelerometer: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS Accelerometer: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS Accelerometer: Test that 'onreading' is called and sensor reading is valid.
PASS Accelerometer: sensor reading is correct.
PASS Accelerometer: sensor timestamp is updated when time passes.
PASS Accelerometer: Test that sensor can be successfully created and its states are correct.
PASS Accelerometer: sensor.start() returns undefined.
PASS Accelerometer: no exception is thrown when calling start() on already started sensor.
PASS Accelerometer: sensor.stop() returns undefined.
PASS Accelerometer: no exception is thrown when calling stop() on already stopped sensor.
PASS Accelerometer: Test that fresh reading is fetched on start().
FAIL Accelerometer: frequency hint works. assert_greater_than: Fast sensor overtakes the slow one expected a number greater than 2 but got 1
PASS Accelerometer: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS Accelerometer: throw 'TypeError' if frequency is invalid.
PASS Accelerometer: sensor reading is correct when options.referenceFrame is 'screen'.
PASS Accelerometer: throw 'TypeError' if referenceFrame is not one of enumeration values.
FAIL GravitySensor: Test that onerror is sent when sensor is not supported. assert_true: expected true got false
FAIL GravitySensor: Test that onerror is sent when permissions are not granted. assert_true: expected true got false
FAIL GravitySensor: Test that onerror is send when start() call has failed. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is capped to allowed maximum. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is capped to the maximum supported frequency. assert_true: expected true got false
FAIL GravitySensor: Test that frequency is limited to the minimum supported frequency. assert_true: expected true got false
FAIL GravitySensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy. assert_true: expected true got false
FAIL GravitySensor: Test that sensor can be constructed within an iframe allowed to use feature policy. assert_true: expected true got false
FAIL GravitySensor: Test that 'onreading' is called and sensor reading is valid. assert_true: expected true got false
FAIL GravitySensor: sensor reading is correct. assert_true: expected true got false
FAIL GravitySensor: sensor timestamp is updated when time passes. assert_true: expected true got false
FAIL GravitySensor: Test that sensor can be successfully created and its states are correct. assert_true: expected true got false
FAIL GravitySensor: sensor.start() returns undefined. assert_true: expected true got false
FAIL GravitySensor: no exception is thrown when calling start() on already started sensor. assert_true: expected true got false
FAIL GravitySensor: sensor.stop() returns undefined. assert_true: expected true got false
FAIL GravitySensor: no exception is thrown when calling stop() on already stopped sensor. assert_true: expected true got false
FAIL GravitySensor: Test that fresh reading is fetched on start(). assert_true: expected true got false
FAIL GravitySensor: frequency hint works. assert_true: expected true got false
FAIL GravitySensor: sensor receives suspend / resume notifications when cross-origin subframe is focused. assert_true: expected true got false
FAIL GravitySensor: throw 'TypeError' if frequency is invalid. assert_true: expected true got false
FAIL GravitySensor: sensor reading is correct when options.referenceFrame is 'screen'. assert_true: expected true got false
FAIL GravitySensor: throw 'TypeError' if referenceFrame is not one of enumeration values. assert_true: expected true got false
PASS LinearAccelerationSensor: Test that onerror is sent when sensor is not supported.
PASS LinearAccelerationSensor: Test that onerror is sent when permissions are not granted.
PASS LinearAccelerationSensor: Test that onerror is send when start() call has failed.
PASS LinearAccelerationSensor: Test that frequency is capped to allowed maximum.
PASS LinearAccelerationSensor: Test that frequency is capped to the maximum supported frequency.
PASS LinearAccelerationSensor: Test that frequency is limited to the minimum supported frequency.
PASS LinearAccelerationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS LinearAccelerationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS LinearAccelerationSensor: Test that 'onreading' is called and sensor reading is valid.
PASS LinearAccelerationSensor: sensor reading is correct.
PASS LinearAccelerationSensor: sensor timestamp is updated when time passes.
PASS LinearAccelerationSensor: Test that sensor can be successfully created and its states are correct.
PASS LinearAccelerationSensor: sensor.start() returns undefined.
PASS LinearAccelerationSensor: no exception is thrown when calling start() on already started sensor.
PASS LinearAccelerationSensor: sensor.stop() returns undefined.
PASS LinearAccelerationSensor: no exception is thrown when calling stop() on already stopped sensor.
PASS LinearAccelerationSensor: Test that fresh reading is fetched on start().
PASS LinearAccelerationSensor: frequency hint works.
PASS LinearAccelerationSensor: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS LinearAccelerationSensor: throw 'TypeError' if frequency is invalid.
PASS LinearAccelerationSensor: sensor reading is correct when options.referenceFrame is 'screen'.
PASS LinearAccelerationSensor: throw 'TypeError' if referenceFrame is not one of enumeration values.
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS AbsoluteOrientationSensor: Test that onerror is sent when sensor is not supported.
PASS AbsoluteOrientationSensor: Test that onerror is sent when permissions are not granted.
PASS AbsoluteOrientationSensor: Test that onerror is send when start() call has failed.
PASS AbsoluteOrientationSensor: Test that frequency is capped to allowed maximum.
PASS AbsoluteOrientationSensor: Test that frequency is capped to the maximum supported frequency.
PASS AbsoluteOrientationSensor: Test that frequency is limited to the minimum supported frequency.
PASS AbsoluteOrientationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS AbsoluteOrientationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS AbsoluteOrientationSensor: Test that 'onreading' is called and sensor reading is valid.
PASS AbsoluteOrientationSensor: sensor reading is correct.
PASS AbsoluteOrientationSensor: sensor timestamp is updated when time passes.
PASS AbsoluteOrientationSensor: Test that sensor can be successfully created and its states are correct.
PASS AbsoluteOrientationSensor: sensor.start() returns undefined.
PASS AbsoluteOrientationSensor: no exception is thrown when calling start() on already started sensor.
PASS AbsoluteOrientationSensor: sensor.stop() returns undefined.
PASS AbsoluteOrientationSensor: no exception is thrown when calling stop() on already stopped sensor.
PASS AbsoluteOrientationSensor: Test that fresh reading is fetched on start().
FAIL AbsoluteOrientationSensor: frequency hint works. assert_greater_than: Fast sensor overtakes the slow one expected a number greater than 2 but got 1
PASS AbsoluteOrientationSensor: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS AbsoluteOrientationSensor: throw 'TypeError' if frequency is invalid.
PASS AbsoluteOrientationSensor: sensor reading is correct when options.referenceFrame is 'screen'.
PASS AbsoluteOrientationSensor: throw 'TypeError' if referenceFrame is not one of enumeration values.
PASS AbsoluteOrientationSensor.quaternion return a four-element FrozenArray.
PASS AbsoluteOrientationSensor.populateMatrix() method works correctly.
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS RelativeOrientationSensor: Test that onerror is sent when sensor is not supported.
PASS RelativeOrientationSensor: Test that onerror is sent when permissions are not granted.
PASS RelativeOrientationSensor: Test that onerror is send when start() call has failed.
PASS RelativeOrientationSensor: Test that frequency is capped to allowed maximum.
PASS RelativeOrientationSensor: Test that frequency is capped to the maximum supported frequency.
PASS RelativeOrientationSensor: Test that frequency is limited to the minimum supported frequency.
PASS RelativeOrientationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.
PASS RelativeOrientationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.
PASS RelativeOrientationSensor: Test that 'onreading' is called and sensor reading is valid.
PASS RelativeOrientationSensor: sensor reading is correct.
PASS RelativeOrientationSensor: sensor timestamp is updated when time passes.
PASS RelativeOrientationSensor: Test that sensor can be successfully created and its states are correct.
PASS RelativeOrientationSensor: sensor.start() returns undefined.
PASS RelativeOrientationSensor: no exception is thrown when calling start() on already started sensor.
PASS RelativeOrientationSensor: sensor.stop() returns undefined.
PASS RelativeOrientationSensor: no exception is thrown when calling stop() on already stopped sensor.
PASS RelativeOrientationSensor: Test that fresh reading is fetched on start().
FAIL RelativeOrientationSensor: frequency hint works. assert_greater_than: Fast sensor overtakes the slow one expected a number greater than 2 but got 2
PASS RelativeOrientationSensor: sensor receives suspend / resume notifications when cross-origin subframe is focused.
PASS RelativeOrientationSensor: throw 'TypeError' if frequency is invalid.
PASS RelativeOrientationSensor: sensor reading is correct when options.referenceFrame is 'screen'.
PASS RelativeOrientationSensor: throw 'TypeError' if referenceFrame is not one of enumeration values.
PASS RelativeOrientationSensor.quaternion return a four-element FrozenArray.
PASS RelativeOrientationSensor.populateMatrix() method works correctly.
Harness: the test ran to completion.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment