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

Unified Diff: third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.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/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 33e9a8b41bacc57c27a42c2cedd66e6437ac229a..07b7e88b37178ddbd4f21d69a05c4149f22a16af 100644
--- a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
+++ b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
@@ -13,11 +13,9 @@ if (!window.testRunner)
const kDefaultReadingValue = 3.1415;
-function update_sensor_reading(buffer, expects_modified_reading, readsCount) {
+function update_sensor_reading(buffer) {
buffer[1] = window.performance.now();
buffer[2] = kDefaultReadingValue;
- if (expects_modified_reading)
- buffer[2] += readsCount;
}
function verify_sensor_reading(reading) {
« no previous file with comments | « third_party/WebKit/LayoutTests/sensor/accelerometer.html ('k') | third_party/WebKit/LayoutTests/sensor/gyroscope.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698