|
|
Created:
7 years, 1 month ago by Dmitry Zvorygin Modified:
7 years, 1 month ago Reviewers:
Vladislav Kaznacheev CC:
chromium-reviews, vsevik, yurys, paulirish+reviews_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
Description[DevTools] Extended RemoteDebuggingTest.RemoteDebugger with additional json protocol tests.
BUG=313168
TEST=RemoteDebuggingTest.RemoteDebugger
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232973
Patch Set 1 #
Total comments: 16
Patch Set 2 : Added test. Fixed comments. #
Total comments: 6
Patch Set 3 : Fixed minor comments. #
Total comments: 1
Patch Set 4 : Reordered tests. #Patch Set 5 : Fixed chromeos issue. #
Messages
Total messages: 16 (0 generated)
Please take a look.
https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... File chrome/test/data/devtools/target_list/background.js (right): https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:5: function requestUrl(url, callback) { This method is always called with an url starting with "http://" + REMOTE_DEBUGGER_HOST. Lets move it inside, it will make the call site cleaner. https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:47: function waitForTab(pred, callback) { 'pred' name is cryptic. I needed to read the entire function to figure out that this is probably a contraction of 'predicate'. Consider changing it to something clearer. Perhaps 'match' or 'filter'. https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:81: var extension_target; JS naming convension is extensionTarget https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:115: chrome.test.assertEq(versionInfo["Browser"].indexOf("Chrome/"), 0); assert(versionInfo["Browser"].match(/^Chrome\//)) is cleaner. You can even match a four-part numeric version if you want. https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:122: function openNewPage() { Insert blank lines between the functions https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:122: function openNewPage() { We also need a test for json/new with no url which was the only option before M32 and therefore widely used. https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:143: function(waitedTab) { waitedTab is poor English https://chromiumcodereview.appspot.com/54333004/diff/1/chrome/test/data/devto... chrome/test/data/devtools/target_list/background.js:170: extension_tab = tab; Lets save the id only.
Please take a look. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... File chrome/test/data/devtools/target_list/background.js (right): https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:5: function requestUrl(url, callback) { On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > This method is always called with an url starting with "http://" + > REMOTE_DEBUGGER_HOST. Lets move it inside, it will make the call site cleaner. Done. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:47: function waitForTab(pred, callback) { On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > 'pred' name is cryptic. I needed to read the entire function to figure out that > this is probably a contraction of 'predicate'. > > Consider changing it to something clearer. Perhaps 'match' or 'filter'. Done. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:81: var extension_target; On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > JS naming convension is extensionTarget Done. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:115: chrome.test.assertEq(versionInfo["Browser"].indexOf("Chrome/"), 0); On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > assert(versionInfo["Browser"].match(/^Chrome\//)) is cleaner. > You can even match a four-part numeric version if you want. Done. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:122: function openNewPage() { On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > We also need a test for json/new with no url which was the only option before > M32 and therefore widely used. Done. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:122: function openNewPage() { On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > Insert blank lines between the functions Done. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:143: function(waitedTab) { On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > waitedTab is poor English Done. https://codereview.chromium.org/54333004/diff/1/chrome/test/data/devtools/tar... chrome/test/data/devtools/target_list/background.js:170: extension_tab = tab; On 2013/11/01 11:48:19, Vladislav Kaznacheev wrote: > Lets save the id only. Done.
https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... File chrome/test/data/devtools/target_list/background.js (right): https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... chrome/test/data/devtools/target_list/background.js:9: req.open('GET', 'http://' + REMOTE_DEBUGGER_HOST + path, true); Lets move '/json/' in here as well https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... chrome/test/data/devtools/target_list/background.js:71: }) ; after the statement https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... chrome/test/data/devtools/target_list/background.js:118: var extensionTarget; you forgot to change this to extensionTargetId
Fixed minor comments. https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... File chrome/test/data/devtools/target_list/background.js (right): https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... chrome/test/data/devtools/target_list/background.js:9: req.open('GET', 'http://' + REMOTE_DEBUGGER_HOST + path, true); On 2013/11/01 14:00:52, Vladislav Kaznacheev wrote: > Lets move '/json/' in here as well Decided to leave it as is. https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... chrome/test/data/devtools/target_list/background.js:71: }) On 2013/11/01 14:00:52, Vladislav Kaznacheev wrote: > ; after the statement Done. https://codereview.chromium.org/54333004/diff/60001/chrome/test/data/devtools... chrome/test/data/devtools/target_list/background.js:118: var extensionTarget; On 2013/11/01 14:00:52, Vladislav Kaznacheev wrote: > you forgot to change this to extensionTargetId Done.
LGTM with one suggestion https://codereview.chromium.org/54333004/diff/60002/chrome/test/data/devtools... File chrome/test/data/devtools/target_list/background.js (right): https://codereview.chromium.org/54333004/diff/60002/chrome/test/data/devtools... chrome/test/data/devtools/target_list/background.js:161: function newSpecificPage() { Please move newSpecificPage and newDefaultPage above discoverTargets or below closePage so that the logical link between discoverTarget/activatePage/closePage is move obvious.
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zvorygin@chromium.org/54333004/150001
Step "update" is always a major failure. Look at the try server FAQ for more details. http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clan...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zvorygin@chromium.org/54333004/150001
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zvorygin@chromium.org/54333004/450001
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zvorygin@chromium.org/54333004/450001
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zvorygin@chromium.org/54333004/450001
Message was sent while issue was closed.
Change committed as 232973 |