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

Unified Diff: third_party/WebKit/LayoutTests/sensor/magnetometer.html

Issue 2798913002: [Sensors] Stop exposing sensor state (Closed)
Patch Set: Comments from Reilly Created 3 years, 8 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/magnetometer.html
diff --git a/third_party/WebKit/LayoutTests/sensor/magnetometer.html b/third_party/WebKit/LayoutTests/sensor/magnetometer.html
index 14f429e05b17fc5ad032aa630642fa3cb8f1d7d6..7f5b18cb3e68a27b9b676aa6ed7bbb087de13ff7 100644
--- a/third_party/WebKit/LayoutTests/sensor/magnetometer.html
+++ b/third_party/WebKit/LayoutTests/sensor/magnetometer.html
@@ -15,13 +15,11 @@ const kDefaultReadingValueX = -19.2;
const kDefaultReadingValueY = 12.1;
const kDefaultReadingValueZ = -44.3;
-function update_sensor_reading(buffer, expects_modified_reading, readsCount) {
+function update_sensor_reading(buffer) {
buffer[1] = window.performance.now();
buffer[2] = kDefaultReadingValueX;
buffer[3] = kDefaultReadingValueY;
buffer[4] = kDefaultReadingValueZ;
- if (expects_modified_reading)
- buffer[2] += readsCount;
}
function verify_sensor_reading(sensor, should_be_null) {

Powered by Google App Engine
This is Rietveld 408576698