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

Issue 12093057: [ChromeDriver] Send DOM.getDocument after each DOM.documentUpdated. (Closed)

Created:
7 years, 10 months ago by craigdh
Modified:
7 years, 10 months ago
Reviewers:
kkania, frankf
CC:
chromium-reviews, vsevik, yurys, pfeldman, chrisgao (Use stgao instead)
Visibility:
Public.

Description

[ChromeDriver] Send DOM.getDocument after each DOM.documentUpdated. This involved adding support for outstanding commands to return in any order. BUG=172944 TEST=unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180022

Patch Set 1 #

Total comments: 2

Patch Set 2 : actually uploaded the files #

Total comments: 7

Patch Set 3 : merged devtools state initialization and maintenance into DomTracker #

Patch Set 4 : added a DCHECK #

Patch Set 5 : fix indent #

Total comments: 6

Patch Set 6 : split up devtools initialization between trackers #

Total comments: 2

Patch Set 7 : simplified logic and added unittest #

Patch Set 8 : unittest #

Patch Set 9 : fix compile warning #

Patch Set 10 : fix compile error on win_rel #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -39 lines) Patch
M chrome/test/chromedriver/chrome_impl.cc View 1 2 3 4 5 2 chunks +10 lines, -14 lines 0 comments Download
M chrome/test/chromedriver/devtools_client_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -1 line 0 comments Download
M chrome/test/chromedriver/devtools_client_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +29 lines, -19 lines 0 comments Download
M chrome/test/chromedriver/devtools_client_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +53 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/dom_tracker.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M chrome/test/chromedriver/dom_tracker.cc View 1 2 3 4 5 2 chunks +12 lines, -1 line 0 comments Download
M chrome/test/chromedriver/dom_tracker_unittest.cc View 1 2 3 4 5 3 chunks +44 lines, -1 line 0 comments Download
M chrome/test/chromedriver/frame_tracker.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/frame_tracker.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/navigation_tracker.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/navigation_tracker.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
craigdh
https://codereview.chromium.org/12093057/diff/1/chrome/test/chromedriver/devtools_client_impl.cc File chrome/test/chromedriver/devtools_client_impl.cc (right): https://codereview.chromium.org/12093057/diff/1/chrome/test/chromedriver/devtools_client_impl.cc#newcode115 chrome/test/chromedriver/devtools_client_impl.cc:115: LOG(INFO) << "SEND: " << message; Whoops. Will delete ...
7 years, 10 months ago (2013-01-30 01:44:24 UTC) #1
kkania
it looks like you forgot to add your new files too
7 years, 10 months ago (2013-01-30 02:17:55 UTC) #2
craigdh
On 2013/01/30 02:17:55, kkania wrote: > it looks like you forgot to add your new ...
7 years, 10 months ago (2013-01-30 17:36:55 UTC) #3
kkania
https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state.cc File chrome/test/chromedriver/devtools_state.cc (right): https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state.cc#newcode29 chrome/test/chromedriver/devtools_state.cc:29: status = client_->SendCommand("Page.enable", params); So actually, Page.enable and Runtime.enable ...
7 years, 10 months ago (2013-01-30 18:50:29 UTC) #4
kkania
https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state.cc File chrome/test/chromedriver/devtools_state.cc (right): https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state.cc#newcode29 chrome/test/chromedriver/devtools_state.cc:29: status = client_->SendCommand("Page.enable", params); On 2013/01/30 18:50:29, kkania wrote: ...
7 years, 10 months ago (2013-01-30 20:33:24 UTC) #5
craigdh
https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state.cc File chrome/test/chromedriver/devtools_state.cc (right): https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state.cc#newcode29 chrome/test/chromedriver/devtools_state.cc:29: status = client_->SendCommand("Page.enable", params); On 2013/01/30 20:33:24, kkania wrote: ...
7 years, 10 months ago (2013-01-30 21:35:08 UTC) #6
craigdh
ptal. https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state_unittest.cc File chrome/test/chromedriver/devtools_state_unittest.cc (right): https://codereview.chromium.org/12093057/diff/5001/chrome/test/chromedriver/devtools_state_unittest.cc#newcode46 chrome/test/chromedriver/devtools_state_unittest.cc:46: private: On 2013/01/30 18:50:29, kkania wrote: > bad ...
7 years, 10 months ago (2013-01-30 22:20:04 UTC) #7
kkania
https://codereview.chromium.org/12093057/diff/7/chrome/test/chromedriver/devtools_client_impl.cc File chrome/test/chromedriver/devtools_client_impl.cc (right): https://codereview.chromium.org/12093057/diff/7/chrome/test/chromedriver/devtools_client_impl.cc#newcode129 chrome/test/chromedriver/devtools_client_impl.cc:129: cmd_response_map_[command_id] = NULL; what's this about? https://codereview.chromium.org/12093057/diff/7/chrome/test/chromedriver/dom_tracker.cc File chrome/test/chromedriver/dom_tracker.cc ...
7 years, 10 months ago (2013-01-30 22:36:05 UTC) #8
craigdh
https://codereview.chromium.org/12093057/diff/7/chrome/test/chromedriver/devtools_client_impl.cc File chrome/test/chromedriver/devtools_client_impl.cc (right): https://codereview.chromium.org/12093057/diff/7/chrome/test/chromedriver/devtools_client_impl.cc#newcode129 chrome/test/chromedriver/devtools_client_impl.cc:129: cmd_response_map_[command_id] = NULL; On 2013/01/30 22:36:05, kkania wrote: > ...
7 years, 10 months ago (2013-01-30 23:05:21 UTC) #9
kkania
i see https://codereview.chromium.org/12093057/diff/4002/chrome/test/chromedriver/devtools_client_impl.cc File chrome/test/chromedriver/devtools_client_impl.cc (right): https://codereview.chromium.org/12093057/diff/4002/chrome/test/chromedriver/devtools_client_impl.cc#newcode50 chrome/test/chromedriver/devtools_client_impl.cc:50: LOG(WARNING) << "Finished with no response for ...
7 years, 10 months ago (2013-01-30 23:33:56 UTC) #10
craigdh
On 2013/01/30 23:33:56, kkania wrote: > i see > > https://codereview.chromium.org/12093057/diff/4002/chrome/test/chromedriver/devtools_client_impl.cc > File chrome/test/chromedriver/devtools_client_impl.cc (right): ...
7 years, 10 months ago (2013-01-31 18:37:20 UTC) #11
kkania
lgtm
7 years, 10 months ago (2013-01-31 19:15:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/craigdh@chromium.org/12093057/3011
7 years, 10 months ago (2013-01-31 21:44:26 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-01 00:43:15 UTC) #14
Message was sent while issue was closed.
Change committed as 180022

Powered by Google App Engine
This is Rietveld 408576698