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

Unified Diff: third_party/WebKit/LayoutTests/sensor/accelerometer.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/accelerometer.html
diff --git a/third_party/WebKit/LayoutTests/sensor/accelerometer.html b/third_party/WebKit/LayoutTests/sensor/accelerometer.html
index 5d9bd6bf7791dcc9c8b7efd7edb050d0e3fa2b78..250a04f037e529683b9878d5d0ebb02f5a09e7a6 100644
--- a/third_party/WebKit/LayoutTests/sensor/accelerometer.html
+++ b/third_party/WebKit/LayoutTests/sensor/accelerometer.html
@@ -15,13 +15,11 @@ const kDefaultReadingX = 1.12345;
const kDefaultReadingY = 2.12345;
const kDefaultReadingZ = 3.12345;
-function update_sensor_reading(buffer, expects_modified_reading, readsCount) {
+function update_sensor_reading(buffer) {
buffer[1] = window.performance.now();
buffer[2] = kDefaultReadingX;
buffer[3] = kDefaultReadingY;
buffer[4] = kDefaultReadingZ;
- if (expects_modified_reading)
- buffer[2] += readsCount;
}
function verify_sensor_reading(sensor, should_be_null) {

Powered by Google App Engine
This is Rietveld 408576698