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

Unified Diff: third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html

Issue 2471103002: [sensors] Close mock sensor stubs after test is finished (Closed)
Patch Set: Fix for comment from Mikhail Created 4 years, 1 month 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/LayoutTests/sensor/resources/sensor-helpers.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
diff --git a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
index 29d94cdbb2038c92ef6c8693c3776fd6805f08d0..c5a0829d700e3c6dbbc6df053ba4ccb50b6f3667 100644
--- a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
+++ b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
@@ -44,6 +44,7 @@ sensor_test(sensor => {
assert_equals(ambientLightSensor.state, 'errored');
console.log(event.error.message);
assert_equals(event.error.name, 'NotFoundError');
+ ambientLightSensor.onerror = null;
resolve();
};
@@ -64,6 +65,7 @@ sensor_test(sensor => {
ambientLightSensor.onerror = event => {
assert_equals(ambientLightSensor.state, 'errored');
assert_equals(event.error.name, 'OperationError');
+ ambientLightSensor.onerror = null;
resolve();
};
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698