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

Issue 8587004: Add PyAuto tests for triggering browser/page action. (Closed)

Created:
9 years, 1 month ago by frankf
Modified:
9 years ago
CC:
chromium-reviews, Nirnimesh, John Grabowski, Erik does not do reviews, kkania, mihaip+watch_chromium.org, anantha, robertshield, dyu1, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add PyAuto tests for triggering browser/page action. BUG=chromium:104530 TEST=PyAuto tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112751

Patch Set 1 #

Patch Set 2 : Minor style change #

Total comments: 19

Patch Set 3 : Addressed Dennis's comments #

Total comments: 10

Patch Set 4 : Trigger through UI instead of events #

Patch Set 5 : Minor style change #

Patch Set 6 : Added extension data files #

Total comments: 9

Patch Set 7 : Addressed Ken's comments #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, --2 lines) Patch
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 6 chunks +130 lines, -2 lines 4 comments Download
M chrome/browser/extensions/browser_action_test_util_views.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 1 comment Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/browser_action/background.html View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/browser_action/icon.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/browser_action/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/browser_action_popup/icon.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/browser_action_popup/manifest.json View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/browser_action_popup/popup.html View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/page_action/background.html View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/page_action/icon.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/page_action/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/page_action_popup/background.html View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/page_action_popup/icon.png View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/page_action_popup/manifest.json View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/trigger_actions/page_action_popup/popup.html View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/test/functional/extensions.py View 1 2 3 4 5 6 1 chunk +85 lines, -0 lines 1 comment Download
M chrome/test/pyautolib/pyauto.py View 1 2 3 4 5 6 3 chunks +37 lines, -0 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
frankf
9 years, 1 month ago (2011-11-16 22:24:51 UTC) #1
dennis_jeffrey
Is it possible to package up the two new extensions here into two .crx files, ...
9 years, 1 month ago (2011-11-17 00:11:31 UTC) #2
frankf
http://codereview.chromium.org/8587004/diff/2002/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/8587004/diff/2002/chrome/browser/automation/testing_automation_provider.cc#newcode4496 chrome/browser/automation/testing_automation_provider.cc:4496: int tab_id = ExtensionTabUtil::GetTabId(browser->GetSelectedTabContents()); It is mentioned in pyauto.py ...
9 years, 1 month ago (2011-11-17 00:25:03 UTC) #3
frankf
@aa, Could you take a look at how extension actions are triggered in testing_automation_provider.cc?
9 years, 1 month ago (2011-11-17 00:26:43 UTC) #4
dennis_jeffrey
LGTM - just a couple nits and one optional consideration. http://codereview.chromium.org/8587004/diff/2002/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/8587004/diff/2002/chrome/browser/automation/testing_automation_provider.cc#newcode4496 ...
9 years, 1 month ago (2011-11-17 00:53:17 UTC) #5
kkania
http://codereview.chromium.org/8587004/diff/7002/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/8587004/diff/7002/chrome/browser/automation/testing_automation_provider.cc#newcode4464 chrome/browser/automation/testing_automation_provider.cc:4464: Browser* browser, could you use the new non-browser style ...
9 years, 1 month ago (2011-11-17 17:49:09 UTC) #6
frankf
Please review this CL, major changes: 1. Triggering browser/page action through events doesn't work with ...
9 years, 1 month ago (2011-11-21 02:01:46 UTC) #7
kkania
http://codereview.chromium.org/8587004/diff/9012/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/8587004/diff/9012/chrome/browser/automation/testing_automation_provider.cc#newcode2334 chrome/browser/automation/testing_automation_provider.cc:2334: handler_map["TriggerPageActionById"] = thanks! http://codereview.chromium.org/8587004/diff/9012/chrome/browser/automation/testing_automation_provider.cc#newcode4491 chrome/browser/automation/testing_automation_provider.cc:4491: reply.SendError(base::StringPrintf("Extension does not exist: ...
9 years, 1 month ago (2011-11-21 18:53:58 UTC) #8
frankf
http://codereview.chromium.org/8587004/diff/9012/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/8587004/diff/9012/chrome/browser/automation/testing_automation_provider.cc#newcode4491 chrome/browser/automation/testing_automation_provider.cc:4491: reply.SendError(base::StringPrintf("Extension does not exist: %s.", On 2011/11/21 18:53:58, kkania ...
9 years, 1 month ago (2011-11-22 22:26:10 UTC) #9
Aaron Boodman
On 2011/11/17 00:26:43, frankf wrote: > @aa, Could you take a look at how extension ...
9 years, 1 month ago (2011-11-23 00:24:09 UTC) #10
Aaron Boodman
On Wed, Nov 16, 2011 at 4:11 PM, <dennisjeffrey@chromium.org> wrote: > Is it possible to ...
9 years, 1 month ago (2011-11-23 00:24:50 UTC) #11
dennis_jeffrey
On 2011/11/23 00:24:50, Aaron Boodman wrote: > On Wed, Nov 16, 2011 at 4:11 PM, ...
9 years, 1 month ago (2011-11-23 00:38:38 UTC) #12
dennis_jeffrey
LGTM after looking over the most recent changes. Just a handful of minor comments. http://codereview.chromium.org/8587004/diff/19001/chrome/browser/automation/testing_automation_provider.cc ...
9 years, 1 month ago (2011-11-23 21:54:54 UTC) #13
kkania
9 years ago (2011-11-29 19:25:03 UTC) #14
LGTM

http://codereview.chromium.org/8587004/diff/19001/chrome/browser/automation/t...
File chrome/browser/automation/testing_automation_provider.cc (right):

http://codereview.chromium.org/8587004/diff/19001/chrome/browser/automation/t...
chrome/browser/automation/testing_automation_provider.cc:4568:
BrowserActionTestUtil browser_actions(browser);
fix indent

http://codereview.chromium.org/8587004/diff/19001/chrome/browser/extensions/b...
File chrome/browser/extensions/browser_action_test_util_views.cc (right):

http://codereview.chromium.org/8587004/diff/19001/chrome/browser/extensions/b...
chrome/browser/extensions/browser_action_test_util_views.cc:41: #ifdef UNIT_TEST
add in header too

Powered by Google App Engine
This is Rietveld 408576698