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

Issue 214763002: Add end-to-end browser tests for Device Motion/Orientation null-events. (Closed)

Created:
6 years, 9 months ago by timvolodine
Modified:
6 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@March-24-null-firing-testing
Visibility:
Public.

Description

Add end-to-end browser tests for Device Motion/Orientation null-events. If no sensors are available for the Device Motion/Orientation API a JavaScript callback should be executed with all values set to null to let the page know no data can be provided. This currently happens e.g. on the Linux platform where no relevant sensors are available. The added browser tests verify that the correct null-event callback occurs even when the active DOM objects are temporarily suspended in the beginning. NOTE: This should land after the blink patch https://codereview.chromium.org/212983007/ has landed and rolled. BUG=356693 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261862

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebased + fixed some comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -6 lines) Patch
M content/browser/device_orientation/device_inertial_sensor_browsertest.cc View 1 8 chunks +104 lines, -6 lines 0 comments Download
A content/test/data/device_orientation/device_motion_null_test_with_alert.html View 1 1 chunk +38 lines, -0 lines 0 comments Download
A content/test/data/device_orientation/device_orientation_null_test_with_alert.html View 1 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
timvolodine
6 years, 9 months ago (2014-03-27 15:03:25 UTC) #1
timvolodine
6 years, 8 months ago (2014-04-03 10:49:20 UTC) #2
Michael van Ouwerkerk
lgtm
6 years, 8 months ago (2014-04-03 14:41:47 UTC) #3
timvolodine
On 2014/04/03 14:41:47, Michael van Ouwerkerk wrote: > lgtm thanks Michael!
6 years, 8 months ago (2014-04-03 14:53:54 UTC) #4
timvolodine
6 years, 8 months ago (2014-04-03 14:54:02 UTC) #5
timvolodine
The CQ bit was checked by timvolodine@chromium.org
6 years, 8 months ago (2014-04-03 18:59:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/214763002/1
6 years, 8 months ago (2014-04-03 18:59:49 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 18:59:57 UTC) #8
commit-bot: I haz the power
Failed to apply patch for content/browser/device_orientation/device_inertial_sensor_browsertest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-03 18:59:58 UTC) #9
mlamouri (slow - plz ping)
https://codereview.chromium.org/214763002/diff/1/content/browser/device_orientation/device_inertial_sensor_browsertest.cc File content/browser/device_orientation/device_inertial_sensor_browsertest.cc (right): https://codereview.chromium.org/214763002/diff/1/content/browser/device_orientation/device_inertial_sensor_browsertest.cc#newcode240 content/browser/device_orientation/device_inertial_sensor_browsertest.cc:240: WaitForAlertDialogAndQuitAfterDelay(base::TimeDelta::FromMilliseconds(1000)); That does not LG2M. Having a test with ...
6 years, 8 months ago (2014-04-04 13:47:07 UTC) #10
timvolodine
thanks for the comments Mounir! https://codereview.chromium.org/214763002/diff/1/content/browser/device_orientation/device_inertial_sensor_browsertest.cc File content/browser/device_orientation/device_inertial_sensor_browsertest.cc (right): https://codereview.chromium.org/214763002/diff/1/content/browser/device_orientation/device_inertial_sensor_browsertest.cc#newcode240 content/browser/device_orientation/device_inertial_sensor_browsertest.cc:240: WaitForAlertDialogAndQuitAfterDelay(base::TimeDelta::FromMilliseconds(1000)); On 2014/04/04 13:47:07, ...
6 years, 8 months ago (2014-04-04 18:03:18 UTC) #11
timvolodine
The CQ bit was checked by timvolodine@chromium.org
6 years, 8 months ago (2014-04-04 18:05:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/214763002/20001
6 years, 8 months ago (2014-04-04 18:05:35 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 20:57:13 UTC) #14
Message was sent while issue was closed.
Change committed as 261862

Powered by Google App Engine
This is Rietveld 408576698