Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js

Issue 2686503002: [Sensors] Return 'NotReadableError' exception if failed to find a sensor (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/sensor/SensorProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
diff --git a/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js b/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
index b0baa2a077e1b87b5a3ba20556fa5974c54dfb7f..8971afa35c9053d9326ecae2e11e11ea4fde97e1 100644
--- a/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
+++ b/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
@@ -17,7 +17,7 @@ function runGenericSensorTests(sensorType, updateReading, verifyReading) {
return new Promise((resolve, reject) => {
let wrapper = new CallbackWrapper(event => {
assert_equals(sensorObject.state, 'errored');
- assert_equals(event.error.name, 'NotFoundError');
+ assert_equals(event.error.name, 'NotReadableError');
sensorObject.onerror = null;
resolve();
}, reject);
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/sensor/SensorProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698