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

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

Issue 2596063003: Revert of [Sensors] Reland: Align sensor reading updates and 'onchange' notification with rAF. (Closed)
Patch Set: Created 4 years 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/ambient-light-sensor.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9339d358e6ae23edd23754f4e58c9081523c46e9..fdf9d1b1a4025bcdc35fc6fa6f987b0be13c8e79 100644
--- a/third_party/WebKit/LayoutTests/sensor/accelerometer.html
+++ b/third_party/WebKit/LayoutTests/sensor/accelerometer.html
@@ -14,14 +14,17 @@
const kDefaultReadingX = 1.12345;
const kDefaultReadingY = 2.12345;
const kDefaultReadingZ = 3.12345;
+var readsCount = 0;
-function update_sensor_reading(buffer, expects_modified_reading, readsCount) {
+function update_sensor_reading(buffer, expects_modified_reading) {
buffer[1] = window.performance.now();
buffer[2] = kDefaultReadingX;
buffer[3] = kDefaultReadingY;
buffer[4] = kDefaultReadingZ;
if (expects_modified_reading)
buffer[2] += readsCount;
+
+ readsCount++;
}
function verify_sensor_reading(reading) {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698