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

Unified Diff: content/test/data/generic_sensor/ambient_light_sensor_test.html

Issue 2668173003: [Sensors] Remove SensorReading interfaces (Closed)
Patch Set: updated global-interface-listing.html Created 3 years, 11 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
« no previous file with comments | « no previous file | device/generic_sensor/public/cpp/sensor_reading.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/generic_sensor/ambient_light_sensor_test.html
diff --git a/content/test/data/generic_sensor/ambient_light_sensor_test.html b/content/test/data/generic_sensor/ambient_light_sensor_test.html
index 939d29a3181950a9f5b9015347e9310c812acd9c..25d46a6a2d3120d991bca1d082105282d524095f 100644
--- a/content/test/data/generic_sensor/ambient_light_sensor_test.html
+++ b/content/test/data/generic_sensor/ambient_light_sensor_test.html
@@ -5,9 +5,9 @@
var timeOrigin;
var sensor;
function onAmbientLightReadingChange() {
- if (sensor.reading.illuminance == 50 &&
- sensor.reading.timeStamp > timeOrigin &&
- sensor.reading.timeStamp < window.performance.now()) {
+ if (sensor.illuminance == 50 &&
+ sensor.timestamp > timeOrigin &&
+ sensor.timestamp < window.performance.now()) {
pass();
} else {
fail();
« no previous file with comments | « no previous file | device/generic_sensor/public/cpp/sensor_reading.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698