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

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

Issue 2381913002: [sensors] Dispatch sensor events using postTask (Closed)
Patch Set: Rebased. Created 4 years, 2 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
Index: third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
diff --git a/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js b/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
index 34d523c3fc6b0c379c3c2aadc1cedabb66388569..f9099600d5c9fe7b12d6b614d82d9cff3ef2d33b 100644
--- a/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
+++ b/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
@@ -194,7 +194,8 @@ function sensor_mocks(mojo) {
// Returns initialized Sensor proxy to the client.
getSensor(type, stub) {
if (this.get_sensor_should_fail_) {
- return getSensorResponse(null, null);
+ return getSensorResponse(null,
+ connection.bindProxy(null, sensor.SensorClient));
}
let offset =
« no previous file with comments | « third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html ('k') | third_party/WebKit/Source/modules/sensor/Sensor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698