commit | ab253b0f5e1a04fc570366025276427eb15b7fd2 | [log] [tgz] |
---|---|---|
author | Conley Owens <[email protected]> | Tue Aug 01 20:26:17 2017 |
committer | Commit Bot <[email protected]> | Tue Aug 01 20:26:17 2017 |
tree | 1ee170879c8f3798a75625f7cc420ba83990bbc2 | |
parent | 091a32838678f431dd87435ede9ad9554efdd491 [diff] [blame] |
Add RemoveFakeCharacteristic to BT test interface We need to be able to simulate the removal of a characteristic. This addition to the interface seems to be the most straightforward way of accomplishing this goal. BUG=569709 Change-Id: If700ea99a6df9badc98fc81ef5f7461e574b7985 Reviewed-on: https://chromium-review.googlesource.com/583640 Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Vincent Scheib <[email protected]> Commit-Queue: Conley Owens <[email protected]> Cr-Commit-Position: refs/heads/master@{#491097}
diff --git a/third_party/WebKit/LayoutTests/bluetooth/generate.py b/third_party/WebKit/LayoutTests/bluetooth/generate.py index 5c25368..8459967 100644 --- a/third_party/WebKit/LayoutTests/bluetooth/generate.py +++ b/third_party/WebKit/LayoutTests/bluetooth/generate.py
@@ -119,13 +119,10 @@ # replacing CALLS. new_test_file_data = new_test_file_data.replace('PREVIOUS_CALL', 'CALLS') - calls = result.group(1) - calls = ''.join(calls.split()) # Removes whitespace. - calls = calls.split('|') - - for call in calls: + for call in result.group(1).split('|'): # Parse call - function_name, args, uuid_suffix = re.search(r'(.*?)\((.*?)\)(\[UUID\])?', call).groups() + call = call.strip() + function_name, args, uuid_suffix = re.search(r'(.*?)\((.*)\)(\[UUID\])?', call).groups() # Replace template tokens call_test_file_data = new_test_file_data