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

Issue 7080049: Tests for bug 5988. (Closed)

Created:
9 years, 6 months ago by shinyak (Google)
Modified:
9 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, kkania
Visibility:
Public.

Description

Tests for bug 5988. BUG=5988 TEST=ResourceDispatcherTest.DynamicTitle* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88960

Patch Set 1 #

Total comments: 1

Patch Set 2 : fixed typo. #

Total comments: 3

Patch Set 3 : added browsertest insteaf of uitest. #

Total comments: 3

Patch Set 4 : added actual title in log. #

Patch Set 5 : added bug URL in the comment. #

Total comments: 1

Patch Set 6 : fixed typo. #

Patch Set 7 : using WindowedNotificationObserver #

Patch Set 8 : made a shared method. #

Patch Set 9 : removed debugging output... #

Total comments: 8

Patch Set 10 : fixed the pointed problems. #

Total comments: 4

Patch Set 11 : refrected comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -0 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/dynamic1.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/test/data/dynamic2.html View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A content/browser/renderer_host/resource_dispatcher_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
shinyak (Google)
I have created automated tests for Issue 5988. I have used Sleep to wait for ...
9 years, 6 months ago (2011-06-01 01:51:01 UTC) #1
brettw
+pawel for the sleep timeout behavior. http://codereview.chromium.org/7080049/diff/1/content/browser/renderer_host/resource_dispatcher_host_uitest.cc File content/browser/renderer_host/resource_dispatcher_host_uitest.cc (right): http://codereview.chromium.org/7080049/diff/1/content/browser/renderer_host/resource_dispatcher_host_uitest.cc#newcode467 content/browser/renderer_host/resource_dispatcher_host_uitest.cc:467: // Create dynamical ...
9 years, 6 months ago (2011-06-01 01:58:56 UTC) #2
shinyak (Google)
fixed typo.
9 years, 6 months ago (2011-06-01 02:03:46 UTC) #3
Paweł Hajdan Jr.
Thanks for adding me. Sleep is *never* the right solution, it's good that you are ...
9 years, 6 months ago (2011-06-01 07:23:44 UTC) #4
shinyak (Google)
Pawel, thank you for the comment. I want to test the title of the window ...
9 years, 6 months ago (2011-06-01 13:11:40 UTC) #5
Paweł Hajdan Jr.
On 2011/06/01 13:11:40, shinyak wrote: > I want to test the title of the window ...
9 years, 6 months ago (2011-06-01 13:47:20 UTC) #6
shinyak (Google)
Hi, I've tried writing browsertest instead of ui test, however, I could not create a ...
9 years, 6 months ago (2011-06-02 06:51:32 UTC) #7
Paweł Hajdan Jr.
On 2011/06/02 06:51:32, shinyak wrote: > Do you know how to do it? Before, I ...
9 years, 6 months ago (2011-06-02 06:59:07 UTC) #8
shinyak (Google)
Pawel, Is there some method to wait for the window title change? When I call ...
9 years, 6 months ago (2011-06-02 07:14:09 UTC) #9
shinyak (Google)
I found ErrorPageTest::WaitForTitleMatching, but its implementation is just a loop of get and sleep...
9 years, 6 months ago (2011-06-02 07:25:33 UTC) #10
Paweł Hajdan Jr.
On 2011/06/02 07:14:09, shinyak wrote: > Is there some method to wait for the window ...
9 years, 6 months ago (2011-06-02 08:03:42 UTC) #11
shinyak (Google)
Let me try to explain it again. "The JavaScript didn't work" means the execution was ...
9 years, 6 months ago (2011-06-02 09:28:30 UTC) #12
Paweł Hajdan Jr.
I think you need to call EnableDOMAutomation(); and then proxy the call through window.domAutomationController. Just ...
9 years, 6 months ago (2011-06-02 11:34:05 UTC) #13
shinyak (Google)
On 2011/06/02 11:34:05, Paweł Hajdan Jr. wrote: > I think you need to call EnableDOMAutomation(); ...
9 years, 6 months ago (2011-06-02 13:17:40 UTC) #14
Paweł Hajdan Jr.
Ken, Ilya: I'm not very familiar with DOM automation controller, and I think you were ...
9 years, 6 months ago (2011-06-02 14:15:07 UTC) #15
kkania
Sure. Looking through past comments, you mentioned that ui_test_utils::ExecuteJavaScript(render_view_host, L"", L"OpenPopup()") did not work for ...
9 years, 6 months ago (2011-06-02 14:24:10 UTC) #16
shinyak (Google)
OK, I added semicolon just after the OpenPopup(). However, the execution is still stuck. I ...
9 years, 6 months ago (2011-06-03 04:05:07 UTC) #17
Paweł Hajdan Jr.
On 2011/06/03 04:05:07, shinyak wrote: > OK, I added semicolon just after the OpenPopup(). However, ...
9 years, 6 months ago (2011-06-03 06:11:10 UTC) #18
shinyak (Google)
AAAAAAAAHHHHHHH!!! Thank you! I didn't know that! Now the execution is not stuck!!! > Ouchhh, ...
9 years, 6 months ago (2011-06-03 07:27:43 UTC) #19
shinyak (Google)
All, thank you for reviewing. I have created browser test instead of ui test finally.
9 years, 6 months ago (2011-06-04 05:11:32 UTC) #20
Paweł Hajdan Jr.
Much better, thanks! Just a few minor comments. http://codereview.chromium.org/7080049/diff/14001/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc File content/browser/renderer_host/resource_dispatcher_host_browsertest.cc (right): http://codereview.chromium.org/7080049/diff/14001/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc#newcode27 content/browser/renderer_host/resource_dispatcher_host_browsertest.cc:27: // ...
9 years, 6 months ago (2011-06-04 09:33:54 UTC) #21
shinyak (Google)
Pawel, I've added bug URL in comment, and actual title in ASSERT_EQ log. The reason ...
9 years, 6 months ago (2011-06-06 05:21:09 UTC) #22
Paweł Hajdan Jr.
On 2011/06/06 05:21:09, shinyak wrote: > The reason I don't use ui_test_utils::WaitForNewBrowser is that it ...
9 years, 6 months ago (2011-06-06 07:17:16 UTC) #23
Paweł Hajdan Jr.
http://codereview.chromium.org/7080049/diff/15003/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc File content/browser/renderer_host/resource_dispatcher_host_browsertest.cc (right): http://codereview.chromium.org/7080049/diff/15003/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc#newcode47 content/browser/renderer_host/resource_dispatcher_host_browsertest.cc:47: << "Actial title: " << title; nit: Probably a ...
9 years, 6 months ago (2011-06-06 07:17:23 UTC) #24
shinyak (Google)
Oops, sorry, fixed typo.
9 years, 6 months ago (2011-06-06 07:25:27 UTC) #25
shinyak (Google)
On 2011/06/06 07:25:27, shinyak wrote: > Oops, sorry, fixed typo. Oops, sorry I've missed your ...
9 years, 6 months ago (2011-06-06 07:27:13 UTC) #26
shinyak (Google)
Now using WindowedNotificationObserver.
9 years, 6 months ago (2011-06-06 08:25:24 UTC) #27
Paweł Hajdan Jr.
The waiting logic is much better now. The two tests have mostly identical code. Could ...
9 years, 6 months ago (2011-06-06 09:40:47 UTC) #28
brettw
I think we should get the title before the load completes.
9 years, 6 months ago (2011-06-06 14:58:59 UTC) #29
shinyak (Google)
I made a shared method to get a title.
9 years, 6 months ago (2011-06-07 04:25:14 UTC) #30
shinyak (Google)
9 years, 6 months ago (2011-06-07 06:12:12 UTC) #31
Paweł Hajdan Jr.
Just minor comments. http://codereview.chromium.org/7080049/diff/6004/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc File content/browser/renderer_host/resource_dispatcher_host_browsertest.cc (right): http://codereview.chromium.org/7080049/diff/6004/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc#newcode28 content/browser/renderer_host/resource_dispatcher_host_browsertest.cc:28: string16 ResourceDispatcherHostBrowserTest::GetPopupTitle(GURL url) { nit: Why ...
9 years, 6 months ago (2011-06-07 08:28:53 UTC) #32
shinyak (Google)
http://codereview.chromium.org/7080049/diff/6004/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc File content/browser/renderer_host/resource_dispatcher_host_browsertest.cc (right): http://codereview.chromium.org/7080049/diff/6004/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc#newcode28 content/browser/renderer_host/resource_dispatcher_host_browsertest.cc:28: string16 ResourceDispatcherHostBrowserTest::GetPopupTitle(GURL url) { On 2011/06/07 08:28:55, Paweł Hajdan ...
9 years, 6 months ago (2011-06-07 08:54:14 UTC) #33
Paweł Hajdan Jr.
LGTM with comments, thank you for the work on making this test much more solid. ...
9 years, 6 months ago (2011-06-07 09:46:17 UTC) #34
shinyak (Google)
http://codereview.chromium.org/7080049/diff/23001/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc File content/browser/renderer_host/resource_dispatcher_host_browsertest.cc (right): http://codereview.chromium.org/7080049/diff/23001/content/browser/renderer_host/resource_dispatcher_host_browsertest.cc#newcode8 content/browser/renderer_host/resource_dispatcher_host_browsertest.cc:8: #include "chrome/browser/ui/browser_list.h" On 2011/06/07 09:46:18, Paweł Hajdan Jr. wrote: ...
9 years, 6 months ago (2011-06-07 13:28:48 UTC) #35
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years, 6 months ago (2011-06-07 13:31:30 UTC) #36
shinyak (Google)
Pawel, Ping? Could you give LGTM again if the change is OK. I cannot commit ...
9 years, 6 months ago (2011-06-08 12:34:06 UTC) #37
Paweł Hajdan Jr.
LGTM I think it accepted my LGTM for chrome/test, but you need another approval for ...
9 years, 6 months ago (2011-06-08 13:13:55 UTC) #38
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years, 6 months ago (2011-06-08 13:18:03 UTC) #39
shinyak (Google)
Brett, If you think this patch is OK, could you give LGTM? Maybe only Pawel's ...
9 years, 6 months ago (2011-06-09 02:34:34 UTC) #40
shinyak (Google)
Brett, Ping? On 2011/06/09 02:34:34, shinyak wrote: > Brett, > > If you think this ...
9 years, 6 months ago (2011-06-10 04:53:04 UTC) #41
brettw
Pawel's LGTM is fine.
9 years, 6 months ago (2011-06-12 13:11:50 UTC) #42
commit-bot: I haz the power
Try job failure for 7080049-25001 on win for step pyauto_functional_tests: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=36519
9 years, 6 months ago (2011-06-13 03:09:20 UTC) #43
commit-bot: I haz the power
9 years, 6 months ago (2011-06-14 05:30:46 UTC) #44
Change committed as 88960

Powered by Google App Engine
This is Rietveld 408576698