Skip to content

Commit

Permalink
LukeIS: adding application_cache/status to the wire protocol. Also ad…
Browse files Browse the repository at this point in the history
…just wire.py to always use unix line endings when writing to the wiki page. (all the other html5 wire commands appear to be documented, and execute_sql is deprecated / going away, so...). Fixes Issue 2230

r18402
  • Loading branch information
lukeis committed Jan 4, 2013
1 parent e53d64b commit 043822f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,9 +1479,14 @@ def main():
Get('Get available log types.').
SetReturnType('{Array.<string>}', 'The list of available [#Log_Type log types].'))

resources.append(
SessionResource('/session/:sessionId/application_cache/status').
Get('Get the status of the html5 application cache.').
SetReturnType('{number}', 'Status code for application cache: {UNCACHED = 0, IDLE = 1, '
'CHECKING = 2, DOWNLOADING = 3, UPDATE_READY = 4, OBSOLETE = 5}'))

logging.info('Generating %s', wiki_path)
f = open(wiki_path, 'w')
f = open(wiki_path, 'wb')
try:
f.write('''#summary A description of the protocol used by WebDriver to \
communicate with remote instances
Expand Down

0 comments on commit 043822f

Please sign in to comment.