Issue metadata
Sign in to add a comment
|
[sensor]TypeError should be thrown when value of SensorOptions is undefined
Reported by
canx....@intel.com,
Mar 20 2018
|
||||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
Steps to reproduce the problem:
1. Enable the 'Generic Sensor', 'Generic Sensor Extra Classes' and 'Experimental Web Platform features' in chrome://flags.
2. Debug in console on Dev tools as below:
let a = new Accelerometer({frequency: undefined});
let ar = new Accelerometer({referenceFrame: undefined});
What is the expected behavior?
TypeError should be thrown when value of SensorOptions is undefined
What went wrong?
No error throw.
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 67.0.3397.0 Channel: canary
OS Version: 10.0
Flash Version:
Also reproduce in case link: https://w3c-test.org/accelerometer/Accelerometer.https.html
Test Name:
Accelerometer: throw 'TypeError' if frequency is invalid
Accelerometer: throw 'TypeError' if referenceFrame is not one of enumeration values
,
Mar 21 2018
Tested the issue on latest chrome version 67.0.3375.0 using Windows-10 with steps mentioned below:
1) Launched chrome reported version and enabled 'Generic Sensor', 'Generic Sensor Extra Classes' and 'Experimental Web Platform features' in chrome://flags
2) Opened Devtools > Console and entered let a = new Accelerometer({frequency: undefined}); , let ar = new Accelerometer({referenceFrame: undefined}); seen response as "undefined"
@Reporter: Please find the attached screen cast for your reference and let us know if we missed anything in reproducing the issue, if possible could you please provide the screen cast of excepted behaviour for better understanding, provide your feedback on it which helps us in further triaging it.
Thanks!
,
Mar 21 2018
,
Mar 21 2018
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by susan.boorgula@chromium.org
, Mar 20 2018