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

Issue 593163002: Short-circuit failures in BLE js tests (Closed)

Created:
6 years, 3 months ago by Marie Janssen
Modified:
6 years, 2 months ago
Reviewers:
armansito
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Short-circuit failures in BLE js tests Use chrome.test.sendMessage instead of chrome.test.fail so we short-circuit instead of timeout on javascript failures where we're waiting for a go signal. BUG=388958 R=armansito@chromium.org Committed: https://crrev.com/5f71564cd586274f373696c18930f72cab800b50 Cr-Commit-Position: refs/heads/master@{#297292}

Patch Set 1 #

Patch Set 2 : Testing new cls #

Total comments: 1

Patch Set 3 : use runTests() when possible #

Total comments: 8

Patch Set 4 : consistency, style #

Total comments: 2

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -124 lines) Patch
M chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js View 1 2 3 4 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_characteristic/runtest.js View 1 2 3 2 chunks +25 lines, -13 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_characteristics/runtest.js View 1 2 3 4 2 chunks +24 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_descriptor/runtest.js View 1 2 3 4 2 chunks +30 lines, -14 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_descriptors/runtest.js View 1 2 3 4 2 chunks +26 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_included_services/runtest.js View 1 2 3 4 2 chunks +25 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_characteristic/runtest.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_descriptor/runtest.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_service/runtest.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_service/runtest.js View 1 2 3 4 2 chunks +31 lines, -11 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/get_services/runtest.js View 1 2 3 4 2 chunks +24 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/read_characteristic_value/runtest.js View 1 2 2 chunks +20 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/read_descriptor_value/runtest.js View 1 2 2 chunks +17 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/start_stop_notifications/runtest.js View 1 2 3 4 3 chunks +49 lines, -27 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/uuid_permission_events/runtest.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/write_characteristic_value/runtest.js View 1 2 2 chunks +17 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/write_descriptor_value/runtest.js View 1 2 3 chunks +17 lines, -3 lines 0 comments Download
M extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc View 1 2 3 23 chunks +34 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Marie Janssen
6 years, 3 months ago (2014-09-23 16:04:34 UTC) #1
armansito
So, in your solution we simple terminate the test by calling sendMessage and making the ...
6 years, 3 months ago (2014-09-23 20:05:56 UTC) #2
Marie Janssen
Added patchset 3, which does this runTests() shuffle most of the time. It doesn't do ...
6 years, 2 months ago (2014-09-25 19:03:17 UTC) #3
armansito
https://codereview.chromium.org/593163002/diff/40001/chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js File chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js (right): https://codereview.chromium.org/593163002/diff/40001/chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js#newcode51 chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js:51: if (error !== undefined) return true; nit: return in ...
6 years, 2 months ago (2014-09-29 17:40:54 UTC) #4
Marie Janssen
Updated patch for these comments. https://codereview.chromium.org/593163002/diff/40001/chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js File chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js (right): https://codereview.chromium.org/593163002/diff/40001/chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js#newcode51 chrome/test/data/extensions/api_test/bluetooth_low_energy/characteristic_properties/runtest.js:51: if (error !== undefined) ...
6 years, 2 months ago (2014-09-29 18:44:10 UTC) #5
armansito
lgtm with nits (you don't have to wait for another lgtm once you fix these). ...
6 years, 2 months ago (2014-09-29 19:55:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593163002/80001
6 years, 2 months ago (2014-09-29 21:29:21 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 964196856146d72ab7e6a4d4e0f0cf7426697cf1
6 years, 2 months ago (2014-09-29 22:43:03 UTC) #9
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 22:45:25 UTC) #10
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5f71564cd586274f373696c18930f72cab800b50
Cr-Commit-Position: refs/heads/master@{#297292}

Powered by Google App Engine
This is Rietveld 408576698