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

Issue 11235048: Test suite that monitors the disposition of JS-created windows based on what (Closed)

Created:
8 years, 2 months ago by ericu
Modified:
8 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Test suite that monitors the disposition of JS-created windows based on what modifiers were involved in the user gesture that triggered them. See https://bugs.webkit.org/show_bug.cgi?id=99202 for a patch that needs to land before this test will fully pass. BUG=31631 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=163857

Patch Set 1 #

Patch Set 2 : Clean up html #

Total comments: 10

Patch Set 3 : Code review feedback, removed popup blocker code. #

Total comments: 2

Patch Set 4 : Fix truncated comment. #

Patch Set 5 : Better comment fix. #

Patch Set 6 : Move test to browser_browsertest.cc, disable shift-click test #

Patch Set 7 : Fix OSX. #

Total comments: 8

Patch Set 8 : Fix mac harder #

Patch Set 9 : Fix style nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -13 lines) Patch
M chrome/browser/autofill/autofill_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/history_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/redirect_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +138 lines, -1 line 0 comments Download
M chrome/browser/unload_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A chrome/test/data/click_modifier/window_open.html View 1 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/plugin_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ericu
Scott: I'd like to get this ready to land, but won't submit it until I ...
8 years, 2 months ago (2012-10-23 00:11:24 UTC) #1
sky
https://codereview.chromium.org/11235048/diff/7/chrome/browser/click_modifier_browsertest.cc File chrome/browser/click_modifier_browsertest.cc (right): https://codereview.chromium.org/11235048/diff/7/chrome/browser/click_modifier_browsertest.cc#newcode5 chrome/browser/click_modifier_browsertest.cc:5: #include "base/file_path.h" At a minimum this file needs to ...
8 years, 2 months ago (2012-10-23 00:53:38 UTC) #2
ericu
I also removed the popup-blocker suppression; it turned out not to be necessary. https://codereview.chromium.org/11235048/diff/7/chrome/browser/click_modifier_browsertest.cc File ...
8 years, 2 months ago (2012-10-23 18:05:33 UTC) #3
sky
https://codereview.chromium.org/11235048/diff/7/chrome/browser/click_modifier_browsertest.cc File chrome/browser/click_modifier_browsertest.cc (right): https://codereview.chromium.org/11235048/diff/7/chrome/browser/click_modifier_browsertest.cc#newcode5 chrome/browser/click_modifier_browsertest.cc:5: #include "base/file_path.h" On 2012/10/23 18:05:33, ericu wrote: > On ...
8 years, 2 months ago (2012-10-23 19:45:01 UTC) #4
ericu
I decided to disable the shift-click test while I was in there; there's no reason ...
8 years, 2 months ago (2012-10-23 20:09:09 UTC) #5
sky
LGTM https://codereview.chromium.org/11235048/diff/6009/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/11235048/diff/6009/chrome/browser/ui/browser_browsertest.cc#newcode189 chrome/browser/ui/browser_browsertest.cc:189: static const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("click_modifier"); Move this ...
8 years, 2 months ago (2012-10-23 23:09:28 UTC) #6
ericu
8 years, 2 months ago (2012-10-23 23:15:44 UTC) #7
Thanks; I'll submit once I'm sure I've fixed OSX properly.

https://codereview.chromium.org/11235048/diff/6009/chrome/browser/ui/browser_...
File chrome/browser/ui/browser_browsertest.cc (right):

https://codereview.chromium.org/11235048/diff/6009/chrome/browser/ui/browser_...
chrome/browser/ui/browser_browsertest.cc:189: static const FilePath::CharType*
kTestDir = FILE_PATH_LITERAL("click_modifier");
On 2012/10/23 23:09:28, sky wrote:
> Move this close to your tests.

Done.

https://codereview.chromium.org/11235048/diff/6009/chrome/browser/ui/browser_...
chrome/browser/ui/browser_browsertest.cc:217: void RunTest(
On 2012/10/23 23:09:28, sky wrote:
> nit: wrap at the ( and move the first arg up to this line.

Done.

https://codereview.chromium.org/11235048/diff/6009/chrome/browser/ui/browser_...
chrome/browser/ui/browser_browsertest.cc:223: 
On 2012/10/23 23:09:28, sky wrote:
> nit: remove newline.

Done.

https://codereview.chromium.org/11235048/diff/6009/content/public/test/browse...
File content/public/test/browser_test_utils.cc (right):

https://codereview.chromium.org/11235048/diff/6009/content/public/test/browse...
content/public/test/browser_test_utils.cc:226: void
SimulateMouseClick(WebContents* web_contents, int modifiers,
On 2012/10/23 23:09:28, sky wrote:
> nit: wrap each param to a new line.

Done.

Powered by Google App Engine
This is Rietveld 408576698