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

Issue 2713023004: [inspector] added reconnect method for tests (Closed)

Created:
3 years, 10 months ago by kozy
Modified:
3 years, 9 months ago
Reviewers:
dgozman
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] added reconnect method for tests This method enables test of agent::restore methods. Bonus: forbid setCustomObjectFormatterEnabled on disabled agent. BUG=none R=dgozman@chromium.org Review-Url: https://codereview.chromium.org/2713023004 Cr-Commit-Position: refs/heads/master@{#43502} Committed: https://chromium.googlesource.com/v8/v8/+/9c385f0405bb7d91259632f517c2c75e8dbb485b

Patch Set 1 #

Total comments: 9

Patch Set 2 : addressed comments #

Total comments: 2

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -108 lines) Patch
M src/inspector/v8-runtime-agent-impl.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M test/inspector/console/memory-setter-in-strict-mode.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/console-profile.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/console-profile-end-parameterless-crash.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/coverage.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/enable-disable.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/record-cpu-profile.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/stop-without-preceeding-start.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-console-count-doesnt-crash.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-instrumentation.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-promise-late-then.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-set-timeout.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-stack-await.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-stack-created-frame.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-stack-for-promise.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/async-stacks-limit.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/break-on-exception.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/caught-uncaught-exceptions.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/command-line-api-with-bound-function.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/doesnt-step-into-injected-script.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/es6-module-script-parsed.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/es6-module-set-script-source.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/framework-break.js View 1 2 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/framework-nested-scheduled-break.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/framework-precise-ranges.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/framework-stepping.js View 1 4 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-master.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/inspector-break-api.js View 1 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/object-preview-internal-properties.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/pause-on-oom.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/restore-breakpoint.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/script-on-after-compile.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/script-parsed-for-runtime-evaluate.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/set-script-source-exception.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/step-into.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/step-into-next-script.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/wasm-get-breakable-locations.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-scripts.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-source.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-stack.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-stepping.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/heap-profiler/take-heap-snapshot-on-pause.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/inspector-impl.h View 2 chunks +5 lines, -0 lines 0 comments Download
M test/inspector/inspector-impl.cc View 3 chunks +30 lines, -1 line 0 comments Download
M test/inspector/inspector-test.cc View 1 2 3 chunks +18 lines, -1 line 0 comments Download
M test/inspector/protocol-test.js View 1 2 7 chunks +34 lines, -12 lines 0 comments Download
M test/inspector/runtime/await-promise.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/call-function-on-async.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/clear-of-command-line-api.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-api-repeated-in-console.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-assert.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-deprecated-methods.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-log-doesnt-run-microtasks.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-messages-limits.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-methods.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-time-end-format.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M test/inspector/runtime/es6-module.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/evaluate-async.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/evaluate-async-with-wrap-error.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/evaluate-empty-stack.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/evaluate-with-context-id-equal-zero.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/evaluate-with-generate-preview.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/exception-thrown.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/get-properties-on-proxy.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/internal-properties.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/internal-properties-entries.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/length-or-size-description.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/property-on-console-proto.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/protocol-works-with-different-locale.js View 1 1 chunk +7 lines, -7 lines 0 comments Download
M test/inspector/runtime/run-script-async.js View 1 1 chunk +1 line, -1 line 0 comments Download
A test/inspector/runtime/runtime-restore.js View 1 1 chunk +77 lines, -0 lines 0 comments Download
A test/inspector/runtime/runtime-restore-expected.txt View 1 1 chunk +115 lines, -0 lines 0 comments Download
M test/inspector/runtime/set-or-map-entries.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (5 generated)
kozy
Dmitry, please take a look! I'll added tests for another agents in folow up.
3 years, 10 months ago (2017-02-25 01:58:24 UTC) #1
dgozman
https://codereview.chromium.org/2713023004/diff/1/src/inspector/v8-runtime-agent-impl.cc File src/inspector/v8-runtime-agent-impl.cc (right): https://codereview.chromium.org/2713023004/diff/1/src/inspector/v8-runtime-agent-impl.cc#newcode739 src/inspector/v8-runtime-agent-impl.cc:739: m_session->setCustomObjectFormatterEnabled(true); Looks like we already restore it properly. https://codereview.chromium.org/2713023004/diff/1/src/inspector/v8-runtime-agent-impl.cc#newcode753 ...
3 years, 9 months ago (2017-02-27 18:44:57 UTC) #2
kozy
All done. Main change in most tests: print('test description') -> InspectorTest.log(.. https://codereview.chromium.org/2713023004/diff/1/src/inspector/v8-runtime-agent-impl.cc File src/inspector/v8-runtime-agent-impl.cc (right): ...
3 years, 9 months ago (2017-02-27 19:57:13 UTC) #4
dgozman
lgtm https://codereview.chromium.org/2713023004/diff/20001/src/inspector/v8-runtime-agent-impl.cc File src/inspector/v8-runtime-agent-impl.cc (right): https://codereview.chromium.org/2713023004/diff/20001/src/inspector/v8-runtime-agent-impl.cc#newcode683 src/inspector/v8-runtime-agent-impl.cc:683: m_session->setCustomObjectFormatterEnabled(false); Nice one! https://codereview.chromium.org/2713023004/diff/20001/test/inspector/runtime/runtime-restore.js File test/inspector/runtime/runtime-restore.js (right): https://codereview.chromium.org/2713023004/diff/20001/test/inspector/runtime/runtime-restore.js#newcode31 ...
3 years, 9 months ago (2017-02-28 19:46:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2713023004/40001
3 years, 9 months ago (2017-02-28 19:53:34 UTC) #8
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 20:22:32 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/9c385f0405bb7d91259632f517c2c75e8db...

Powered by Google App Engine
This is Rietveld 408576698