Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Issue 11663011: Adds function for activating a tab. (Closed)

Created:
8 years ago by Danh Nguyen
Modified:
7 years, 11 months ago
Reviewers:
dtu, nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, pam+watch_chromium.org, telemetry+watch_chromium.org, Vangelis Kokkevis, anantha
Visibility:
Public.

Description

Adds function for activating a tab. BUG=157495 TEST=src/tools/telemetry/run_tests --browser=system TabTest.testActivateTab Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175440

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated per Nat's comments #

Total comments: 4

Patch Set 3 : Updated per Dave's comments. #

Total comments: 4

Patch Set 4 : Added unittest. #

Patch Set 5 : Removed extra line. #

Total comments: 8

Patch Set 6 : Removed wait on visibility state. #

Total comments: 2

Patch Set 7 : Moved _IsDocumentVisible to module level. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M tools/telemetry/telemetry/browser_backend.py View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/tab.py View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/tab_unittest.py View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Danh Nguyen
Hi Nat, Dave, I need to make these changes in order to add some basic ...
8 years ago (2012-12-21 21:54:41 UTC) #1
nduca
https://codereview.chromium.org/11663011/diff/1/tools/telemetry/telemetry/browser_backend.py File tools/telemetry/telemetry/browser_backend.py (right): https://codereview.chromium.org/11663011/diff/1/tools/telemetry/telemetry/browser_backend.py#newcode48 tools/telemetry/telemetry/browser_backend.py:48: This doesn't make sense on the tab controller. browser.tabs[2].Activate ...
8 years ago (2012-12-21 22:15:23 UTC) #2
Danh Nguyen
Hi Nat, Thanks for reviewing. I've just updated the CL per your comments. Could you ...
7 years, 12 months ago (2012-12-26 19:13:04 UTC) #3
dtu
https://chromiumcodereview.appspot.com/11663011/diff/1/tools/telemetry/telemetry/browser_backend.py File tools/telemetry/telemetry/browser_backend.py (right): https://chromiumcodereview.appspot.com/11663011/diff/1/tools/telemetry/telemetry/browser_backend.py#newcode48 tools/telemetry/telemetry/browser_backend.py:48: On 2012/12/21 22:15:23, nduca wrote: > This doesn't make ...
7 years, 11 months ago (2012-12-27 18:57:25 UTC) #4
Danh Nguyen
Thanks Dave for your comments. I've changed tab.Activate() to have similar flow as tab.Close(). Please ...
7 years, 11 months ago (2013-01-03 19:35:35 UTC) #5
nduca
Looks better. You need unit tests. https://codereview.chromium.org/11663011/diff/11001/tools/telemetry/telemetry/desktop_browser_backend.py File tools/telemetry/telemetry/desktop_browser_backend.py (right): https://codereview.chromium.org/11663011/diff/11001/tools/telemetry/telemetry/desktop_browser_backend.py#newcode52 tools/telemetry/telemetry/desktop_browser_backend.py:52: if self.browser_type == ...
7 years, 11 months ago (2013-01-03 21:19:09 UTC) #6
dtu
https://chromiumcodereview.appspot.com/11663011/diff/11001/tools/telemetry/telemetry/browser_backend.py File tools/telemetry/telemetry/browser_backend.py (right): https://chromiumcodereview.appspot.com/11663011/diff/11001/tools/telemetry/telemetry/browser_backend.py#newcode67 tools/telemetry/telemetry/browser_backend.py:67: timeout=timeout) If it's not synchronous then do we need ...
7 years, 11 months ago (2013-01-03 21:30:33 UTC) #7
nduca
What is the race you're worrying about here David? Activating a tab is asynchronous and ...
7 years, 11 months ago (2013-01-04 01:01:48 UTC) #8
dtu
On 2013/01/04 01:01:48, nduca wrote: > What is the race you're worrying about here David? ...
7 years, 11 months ago (2013-01-04 03:30:15 UTC) #9
Danh Nguyen
Hi Dave & Nat, Thanks so much for your comments. I've added unit test and ...
7 years, 11 months ago (2013-01-04 20:44:03 UTC) #10
nduca
You'll want to update your CL description btw.
7 years, 11 months ago (2013-01-05 00:34:54 UTC) #11
nduca
https://codereview.chromium.org/11663011/diff/20002/tools/telemetry/telemetry/browser_backend.py File tools/telemetry/telemetry/browser_backend.py (right): https://codereview.chromium.org/11663011/diff/20002/tools/telemetry/telemetry/browser_backend.py#newcode73 tools/telemetry/telemetry/browser_backend.py:73: tab_object = self._tab_dict[debugger_url] Please dont do this. Remove this ...
7 years, 11 months ago (2013-01-05 00:44:50 UTC) #12
Danh Nguyen
Thanks Nat for reviewing and for your comments. I've just made another update. Please take ...
7 years, 11 months ago (2013-01-07 19:12:40 UTC) #13
nduca
lgtm https://codereview.chromium.org/11663011/diff/27001/tools/telemetry/telemetry/tab_unittest.py File tools/telemetry/telemetry/tab_unittest.py (right): https://codereview.chromium.org/11663011/diff/27001/tools/telemetry/telemetry/tab_unittest.py#newcode34 tools/telemetry/telemetry/tab_unittest.py:34: def _IsDocumentVisible(self, tab): this doesn't use self. So ...
7 years, 11 months ago (2013-01-07 19:18:31 UTC) #14
Danh Nguyen
Thanks, Nat. Danh https://codereview.chromium.org/11663011/diff/27001/tools/telemetry/telemetry/tab_unittest.py File tools/telemetry/telemetry/tab_unittest.py (right): https://codereview.chromium.org/11663011/diff/27001/tools/telemetry/telemetry/tab_unittest.py#newcode34 tools/telemetry/telemetry/tab_unittest.py:34: def _IsDocumentVisible(self, tab): On 2013/01/07 19:18:31, ...
7 years, 11 months ago (2013-01-07 19:36:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danhn@chromium.org/11663011/25002
7 years, 11 months ago (2013-01-07 19:39:01 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 21:49:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danhn@chromium.org/11663011/25002
7 years, 11 months ago (2013-01-07 22:31:58 UTC) #18
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 01:16:43 UTC) #19
Message was sent while issue was closed.
Change committed as 175440

Powered by Google App Engine
This is Rietveld 408576698