Reviewers: mp+135670_code.launchpad.net, Message: Please take a look. Description: Tests mutating URL and not removing test nodes. One of the hotkeys tests mutated the URL. Both tests in that test case also failed when run in isolation, and some variables were unused. Also fixed tests leaving elements in the DOM: as a consequence, "Environmenton excellent provider" was visible at the top of the page after a test run. Now the container used by those tests is removed after each test is run. Also removed an XXX saying that removing the elements in afterEach can be problematic. I've tried to reproduce the erroneus behavior described, running the test suite several times, without success. Anyway, removing in afterEach what was created in beforeEach is something we do everywhere in the tests. So, that XXX confused me a bit, any hint? To avoid flickering in the test page, I tried to hide the nodes used by tests where possible. https://code.launchpad.net/~frankban/juju-gui/bug-1081803-tests-mutate-url/+merge/135670 (do not edit description out of merge proposal) Please review this at https://codereview.appspot.com/6856075/ Affected files: A [revision details] M test/test_app.js M test/test_app_hotkeys.js Index: [revision details] === added file '[revision details]' --- [revision details] 2012-01-01 00:00:00 +0000 +++ [revision details] 2012-01-01 00:00:00 +0000 @@ -0,0 +1,2 @@ +Old revision: