Merge lp:~barry/ubiquity/bug-792652 into lp:ubiquity
| Status: | Merged |
|---|---|
| Merged at revision: | 5273 |
| Proposed branch: | lp:~barry/ubiquity/bug-792652 |
| Merge into: | lp:ubiquity |
| Diff against target: |
120 lines (+62/-3) (has conflicts) 3 files modified
debian/changelog (+11/-0) tests/test_language.py (+43/-3) ubiquity/plugins/ubi-language.py (+8/-0) Text conflict in debian/changelog |
| To merge this branch: | bzr merge lp:~barry/ubiquity/bug-792652 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Colin Watson | Approve on 2012-03-19 | ||
| Evan (community) | 2012-03-19 | Approve on 2012-03-19 | |
|
Review via email:
|
|||
Description of the Change
Solves LP: #792652, the "multiple clicks on Try Ubuntu crashes the installer"
problem. I'm not sure that's everything that bug 792652 is describing but
it's certainly one specific case.
- 5267. By Barry Warsaw on 2012-03-19
-
Update master bug number
From IRC:
[2:45pm] barry: cjwatson: branch update pushed; i'm not going to push to a different branch name
[2:48pm] cjwatson: barry: this is going to come across as a bit "oh, and another thing" - but I think it should be possible to unit-test this, and it'd be a good exercise
[2:49pm] cjwatson: you would do that by instantiating the UI widget in a test, firing the try-ubuntu-clicked event twice, and only then processing events
[2:49pm] barry: cjwatson: sure, it would be a good exercise for me to figure out how to do that. so, let me look into that.
[2:49pm] cjwatson: the wiki has details on running the test suite
[2:49pm] barry: cool. first, more tea, then i'll look at that
[2:49pm] cjwatson: in this case I guess the test case ought to go in tests/test_
[2:49pm] cjwatson: -p
[2:50pm] cjwatson: (and I think it'd be good for other folks to see how that's done, too, UI tests being their own special black art)
[2:50pm] cjwatson: I don't especially care about separate tests for the KDE frontend - there's no framework for that as yet - but at least the GTK frontend
[2:50pm] barry: right. i've never done that before, so it's good to learn it.
[2:50pm] barry: brb
[2:51pm] cjwatson: there's a "gtkwidgets.
[2:51pm] cjwatson: you'll see it used in other tests
[2:51pm] cjwatson: the trick here may be in arranging for the backend filter to be in place
| Barry Warsaw (barry) wrote : | # |
Test added, ready for review. One caveat, from the commit message:
"One possibly questionable change is the coding: line, which is required to not
freak out Emacs."
- 5268. By Barry Warsaw on 2012-03-19
-
Add a test for bug 911907 by ensuring that the backend dbfilter.ok_handler is
only called once on multiple clicks of the Try Ubuntu link.One possibly questionable change is the coding: line, which is required to not
freak out Emacs.


Looks good to me. I thought we might want to generalize this in plugin. only_this_ page, but we do not appear to be calling into ok_handler from outside the normal flow anywhere else in the code.