Changeset 95629 in webkit


Ignore:
Timestamp:
Sep 21, 2011 7:58:15 AM (13 years ago)
Author:
abarth@webkit.org
Message:

garden-o-matic command should explain that it is starting a local server
https://bugs.webkit.org/show_bug.cgi?id=68486

Reviewed by Dimitri Glazkov.

In the user study, both participants didn't understand why the
garden-o-matic command appeared to hang. This patch adds an
explaination of what's going on. It also adds a confirmation prompt
before launching the browser to give the user a chance to read the
text. If that's too much of a speed bump, we can iterate.

  • Scripts/webkitpy/tool/commands/gardenomatic.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r95626 r95629  
     12011-09-21  Adam Barth  <abarth@webkit.org>
     2
     3        garden-o-matic command should explain that it is starting a local server
     4        https://bugs.webkit.org/show_bug.cgi?id=68486
     5
     6        Reviewed by Dimitri Glazkov.
     7
     8        In the user study, both participants didn't understand why the
     9        garden-o-matic command appeared to hang.  This patch adds an
     10        explaination of what's going on.  It also adds a confirmation prompt
     11        before launching the browser to give the user a chance to read the
     12        text.  If that's too much of a speed bump, we can iterate.
     13
     14        * Scripts/webkitpy/tool/commands/gardenomatic.py:
     15
    1162011-09-21  Chang Shu  <cshu@webkit.org>
    217
  • trunk/Tools/Scripts/webkitpy/tool/commands/gardenomatic.py

    r92708 r95629  
    3434
    3535    def execute(self, options, args, tool):
    36         self._tool.user.open_url(self.url)
     36        print "This command runs a local HTTP server that changes your working copy"
     37        print "based on the actions you take in the web-based UI."
     38        if tool.user.confirm("Open the web-based UI before starting the local server?"):
     39            self._tool.user.open_url(self.url)
    3740        httpd = GardeningHTTPServer(httpd_port=8127, config={'tool': tool})
     41        print "Local HTTP server started."
    3842        httpd.serve_forever()
Note: See TracChangeset for help on using the changeset viewer.