Commit bf171be1 authored by samuong@chromium.org's avatar samuong@chromium.org

[chromedriver] Generate mobile devices list from OverridesUI.js.

BUG=chromedriver:843
TBR=stgao@chromium.org

Review URL: https://codereview.chromium.org/385753002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282477 0039d316-1c4b-4281-b951-d872f2087c98
parent d8e2be59
......@@ -565,7 +565,7 @@
'inputs': [
'test/chromedriver/cpp_source.py',
'test/chromedriver/embed_mobile_devices_in_cpp.py',
'../third_party/WebKit/Source/devtools/front_end/sdk/OverridesSupport.js',
'../third_party/WebKit/Source/devtools/front_end/toolbox/OverridesUI.js',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome/mobile_device_list.cc',
......@@ -575,7 +575,7 @@
'test/chromedriver/embed_mobile_devices_in_cpp.py',
'--directory',
'<(SHARED_INTERMEDIATE_DIR)/chrome/test/chromedriver/chrome',
'../third_party/WebKit/Source/devtools/front_end/sdk/OverridesSupport.js',
'../third_party/WebKit/Source/devtools/front_end/toolbox/OverridesUI.js',
],
'message': 'Generating sources for embedding mobile devices in chromedriver',
},
......
......@@ -30,8 +30,8 @@ def main():
with open(file_name, 'r') as f:
for line in f:
if not inside_list:
if 'WebInspector.OverridesSupport._phones = [' in line or \
'WebInspector.OverridesSupport._tablets = [' in line:
if 'WebInspector.OverridesUI._phones = [' in line or \
'WebInspector.OverridesUI._tablets = [' in line:
inside_list = True
else:
if line.strip() == '];':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment