From 4f877cde6a9a6b99c3bf452f2164ab09abc64d50 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 20 Mar 2011 09:31:39 +1300 Subject: Reverse order of flows in mitmproxy. It matches user expectations much better to have new flows appended to the bottom. --- test/test_console.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/test_console.py b/test/test_console.py index dfa809ed..8b1e6d7c 100644 --- a/test/test_console.py +++ b/test/test_console.py @@ -30,15 +30,15 @@ class uState(libpry.AutoTree): assert c.get_next(0) == (None, None) f2 = self._add_request(c) - assert c.get_focus() == (f, 1) - assert c.get_next(0) == (f, 1) - assert c.get_prev(1) == (f2, 0) + assert c.get_focus() == (f, 0) + assert c.get_next(0) == (f2, 1) + assert c.get_prev(1) == (f, 0) assert c.get_next(1) == (None, None) c.set_focus(0) - assert c.get_focus() == (f2, 0) + assert c.get_focus() == (f, 0) c.set_focus(-1) - assert c.get_focus() == (f2, 0) + assert c.get_focus() == (f, 0) c.delete_flow(f2) assert c.get_focus() == (f, 0) @@ -71,7 +71,7 @@ class uState(libpry.AutoTree): self._add_response(c) assert not c.set_limit("~q") assert len(c.view) == 3 - assert c.focus == 2 + assert c.focus == 0 class uformat_keyvals(libpry.AutoTree): -- cgit v1.2.3