|
|
Created:
10 years ago by sunandt Modified:
9 years, 7 months ago CC:
chromium-reviews, anantha Visibility:
Public. |
DescriptionAdding tests to browser.py
1. testSharingProcess
2. testKillSharedProcess
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71488
Patch Set 1 #
Total comments: 10
Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #Patch Set 6 : '' #Patch Set 7 : '' #Messages
Total messages: 16 (0 generated)
http://codereview.chromium.org/5322012/diff/1/functional/browser.py File functional/browser.py (right): http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode178 functional/browser.py:178: def testSharingProcess(self): rename: testPopupSharesProcess http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode187 functional/browser.py:187: parent_id = self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid'] s/parent_id/parent_pid/ http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode188 functional/browser.py:188: popup_id = self.GetBrowserInfo()['windows'][1]['tabs'][0]['renderer_pid'] s/popup_id/popup_pid/ http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode192 functional/browser.py:192: def testKillSharedProcess(self): rename: testKillPopupProcess http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode193 functional/browser.py:193: """Verify that killing a shared process kills all renderers.""" Please elaborate
Modified. http://codereview.chromium.org/5322012/diff/1/functional/browser.py File functional/browser.py (right): http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode178 functional/browser.py:178: def testSharingProcess(self): On 2010/11/30 21:31:12, Nirnimesh wrote: > rename: testPopupSharesProcess Done. http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode187 functional/browser.py:187: parent_id = self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid'] On 2010/11/30 21:31:12, Nirnimesh wrote: > s/parent_id/parent_pid/ Done. http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode188 functional/browser.py:188: popup_id = self.GetBrowserInfo()['windows'][1]['tabs'][0]['renderer_pid'] On 2010/11/30 21:31:12, Nirnimesh wrote: > s/popup_id/popup_pid/ Done. http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode192 functional/browser.py:192: def testKillSharedProcess(self): On 2010/11/30 21:31:12, Nirnimesh wrote: > rename: testKillPopupProcess We are killing a process which is shared by both the parent and popup processes. So, I think this is better. http://codereview.chromium.org/5322012/diff/1/functional/browser.py#newcode193 functional/browser.py:193: """Verify that killing a shared process kills all renderers.""" On 2010/11/30 21:31:12, Nirnimesh wrote: > Please elaborate Done.
LGTM. I'll commit this tomorrow.
On 2010/12/10 04:57:10, Nirnimesh wrote: > LGTM. I'll commit this tomorrow. It's flaky (on my Mac). testKillSharedProcess fails half the time.
On 2010/12/10 21:01:55, Nirnimesh wrote: > On 2010/12/10 04:57:10, Nirnimesh wrote: > > LGTM. I'll commit this tomorrow. > > It's flaky (on my Mac). testKillSharedProcess fails half the time. Can you put the stack trace please?
====================================================================== FAIL: browser.BrowserTest.testKillSharedProcess: "Verify that killing a shared process kills all associated renderers." ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/1/chrome/cr-git/src/chrome/test/functional/browser.py", line 212, in testKillSharedProcess self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid']) AssertionError: 40461 != 40463 It might be related to the KillRenderer fix Ken applied in http://codereview.chromium.org/5755003/
Ken, Let me know once you commit the method to kill the renderer process. On Fri, Dec 10, 2010 at 2:45 PM, <nirnimesh@chromium.org> wrote: > > ====================================================================== > FAIL: browser.BrowserTest.testKillSharedProcess: "Verify that killing a > shared > process kills all associated renderers." > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/Volumes/1/chrome/cr-git/src/chrome/test/functional/browser.py", > line > 212, in testKillSharedProcess > self.GetBrowserInfo()['windows'][0]['tabs'][0]['renderer_pid']) > AssertionError: 40461 != 40463 > > > > It might be related to the KillRenderer fix Ken applied in > http://codereview.chromium.org/5755003/ > > > http://codereview.chromium.org/5322012/ >
Ken, Did you get a chance to commit the new method to kill a renderer process?
On 2011/01/05 18:52:56, sunandt wrote: > Ken, Did you get a chance to commit the new method to kill a renderer process? yes, it has been committed. sorry for the delay
Replaced Kill with KillRendererProcess.
On 2011/01/05 19:24:50, sunandt wrote: > Replaced Kill with KillRendererProcess. LGTM.
LGTM
Modified the test testKillSharedProcess. Now I'm reloading both the windows once the renderers are killed. They should share a process id and it should be different. Please take a look at this test again. Thanks.
LGTM still
LGTM On Fri, Jan 14, 2011 at 12:07 PM, <nirnimesh@chromium.org> wrote: > LGTM still > > > http://codereview.chromium.org/5322012/ > |