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

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)

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

Description

[inspector] Refactor protocol-test.js This refactoring makes it easier to write advanced tests and gives full control over what's happening to the test code. It also forces description for every test. BUG=none Review-Url: https://codereview.chromium.org/2891213002 Cr-Commit-Position: refs/heads/master@{#45412} Committed: https://chromium.googlesource.com/v8/v8/+/7bbea08f669df4f6dee69cd7b0629959ca372a37

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+818 lines, -675 lines) Patch
M test/inspector/console/destroy-context-during-log.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/console/destroy-context-during-log-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/console/let-const-with-api.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/console/let-const-with-api-expected.txt View 2 chunks +2 lines, -1 line 0 comments Download
M test/inspector/cpu-profiler/console-profile.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/cpu-profiler/console-profile-end-parameterless-crash.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/cpu-profiler/console-profile-end-parameterless-crash-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/console-profile-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/coverage.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/enable-disable.js View 5 chunks +21 lines, -7 lines 0 comments Download
M test/inspector/cpu-profiler/enable-disable-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/record-cpu-profile.js View 1 chunk +21 lines, -7 lines 0 comments Download
M test/inspector/cpu-profiler/record-cpu-profile-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/stop-without-preceeding-start.js View 1 chunk +16 lines, -2 lines 0 comments Download
M test/inspector/cpu-profiler/stop-without-preceeding-start-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/access-obsolete-frame.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/access-obsolete-frame-expected.txt View 2 chunks +2 lines, -1 line 0 comments Download
M test/inspector/debugger/asm-js-breakpoint-before-exec.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/asm-js-breakpoint-during-exec.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/asm-js-stack.js View 2 chunks +3 lines, -1 line 0 comments Download
M test/inspector/debugger/asm-js-stack-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/async-console-count-doesnt-crash.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/async-for-await-of-promise-stack.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/async-instrumentation.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/async-promise-late-then.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/async-set-timeout.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/async-stack-await.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/async-stack-created-frame.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/async-stack-for-promise.js View 2 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/break-on-exception.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/break-on-exception-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/call-frame-function-location.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/call-frame-function-location-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/caught-exception-from-framework-inside-async.js View 3 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/caught-uncaught-exceptions.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/collect-obsolete-async-tasks.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/collect-old-async-call-chains.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/command-line-api-with-bound-function.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/command-line-api-with-bound-function-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/continue-to-location.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/continue-to-location-expected.txt View 2 chunks +1 line, -1 line 0 comments Download
M test/inspector/debugger/continue-to-location-target-call-frames.js View 1 3 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/destory-in-break-program.js View 1 1 chunk +3 lines, -3 lines 0 comments Download
M test/inspector/debugger/doesnt-step-into-injected-script.js View 2 chunks +3 lines, -3 lines 0 comments Download
M test/inspector/debugger/es6-module-script-parsed.js View 2 chunks +6 lines, -6 lines 0 comments Download
M test/inspector/debugger/es6-module-set-script-source.js View 2 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/eval-scopes.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/eval-scopes-expected.txt View 2 chunks +2 lines, -1 line 0 comments Download
M test/inspector/debugger/framework-break.js View 4 chunks +8 lines, -8 lines 0 comments Download
M test/inspector/debugger/framework-nested-scheduled-break.js View 3 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/framework-precise-ranges.js View 3 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/framework-stepping.js View 7 chunks +8 lines, -8 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-array-literal.js View 2 chunks +3 lines, -1 line 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-array-literal-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-lazy-error.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-master.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-restrict-to-function.js View 4 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/inspector-break-api.js View 3 chunks +8 lines, -8 lines 0 comments Download
M test/inspector/debugger/max-async-call-chain-depth.js View 1 chunk +2 lines, -1 line 0 comments Download
M test/inspector/debugger/object-preview-internal-properties.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/pause.js View 1 chunk +67 lines, -63 lines 0 comments Download
M test/inspector/debugger/pause-on-oom.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/promise-chain-when-limit-hit.js View 1 chunk +3 lines, -0 lines 0 comments Download
M test/inspector/debugger/promise-chain-when-limit-hit-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/protocol-string-to-double-locale.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/protocol-string-to-double-locale-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/restore-breakpoint.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/return-break-locations.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/schedule-step-into-async.js View 4 chunks +5 lines, -5 lines 0 comments Download
M test/inspector/debugger/schedule-step-into-async-set-timeout.js View 3 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/scope-skip-variables-with-empty-name.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/scope-skip-variables-with-empty-name-expected.txt View 2 chunks +2 lines, -1 line 0 comments Download
M test/inspector/debugger/script-end-location.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/script-on-after-compile.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/script-parsed-for-runtime-evaluate.js View 2 chunks +3 lines, -3 lines 0 comments Download
M test/inspector/debugger/script-parsed-hash.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/script-parsed-hash-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M test/inspector/debugger/set-async-call-stack-depth.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/set-blackbox-patterns.js View 3 chunks +6 lines, -4 lines 0 comments Download
M test/inspector/debugger/set-blackbox-patterns-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/set-breakpoint-before-enabling.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/set-breakpoint-before-enabling-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/set-script-source.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/set-script-source-exception.js View 2 chunks +2 lines, -2 lines 0 comments Download
M test/inspector/debugger/set-script-source-expected.txt View 2 chunks +1 line, -1 line 0 comments Download
M test/inspector/debugger/side-effect-free-debug-evaluate.js View 1 chunk +2 lines, -1 line 0 comments Download
M test/inspector/debugger/side-effect-free-debug-evaluate-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/step-into.js View 2 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/step-into-nested-arrow.js View 1 chunk +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/step-into-next-script.js View 3 chunks +8 lines, -8 lines 0 comments Download
M test/inspector/debugger/step-out-async-await.js View 3 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/step-over-another-context-group.js View 1 chunk +21 lines, -17 lines 0 comments Download
M test/inspector/debugger/step-over-caught-exception.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/step-over-caught-exception-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M test/inspector/debugger/step-snapshot.js View 2 chunks +4 lines, -3 lines 0 comments Download
M test/inspector/debugger/step-snapshot-expected.txt View 2 chunks +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/stepping-after-get-possible-breakpoints.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/stepping-after-get-possible-breakpoints-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/stepping-and-break-program-api.js View 2 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/stepping-ignores-injected-script.js View 2 chunks +4 lines, -2 lines 0 comments Download
M test/inspector/debugger/stepping-ignores-injected-script-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/stepping-tail-call.js View 2 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/stepping-with-blackboxed-ranges.js View 3 chunks +5 lines, -3 lines 0 comments Download
M test/inspector/debugger/stepping-with-blackboxed-ranges-expected.txt View 2 chunks +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/stepping-with-exposed-injected-script.js View 2 chunks +4 lines, -2 lines 0 comments Download
M test/inspector/debugger/stepping-with-exposed-injected-script-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/stepping-with-natives-and-frameworks.js View 2 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/debugger/suspended-generator-scopes.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/suspended-generator-scopes-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/update-call-frame-scopes.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/debugger/update-call-frame-scopes-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/debugger/wasm-get-breakable-locations.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/wasm-get-breakable-locations-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/wasm-imports.js View 4 chunks +5 lines, -3 lines 0 comments Download
M test/inspector/debugger/wasm-imports-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/wasm-scripts.js View 2 chunks +4 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-scripts-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/wasm-source.js View 2 chunks +4 lines, -2 lines 0 comments Download
M test/inspector/debugger/wasm-source-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/wasm-stack.js View 2 chunks +3 lines, -1 line 0 comments Download
M test/inspector/debugger/wasm-stack-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/debugger/wasm-stepping.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/debugger/wasm-stepping-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/heap-profiler/take-heap-snapshot-on-pause.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/json-parse.js View 1 chunk +4 lines, -2 lines 0 comments Download
M test/inspector/json-parse-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/protocol-test.js View 6 chunks +232 lines, -245 lines 0 comments Download
M test/inspector/runtime/await-promise.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/call-function-on-async.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/clear-of-command-line-api.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/clear-of-command-line-api-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/client-console-api-message.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/command-line-api.js View 4 chunks +4 lines, -4 lines 0 comments Download
M test/inspector/runtime/compile-script.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/runtime/compile-script-expected.txt View 2 chunks +2 lines, -1 line 0 comments Download
M test/inspector/runtime/console-api-repeated-in-console.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-api-repeated-in-console-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M test/inspector/runtime/console-assert.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/console-deprecated-methods.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-deprecated-methods-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M test/inspector/runtime/console-line-and-column.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/runtime/console-line-and-column-expected.txt View 2 chunks +2 lines, -1 line 0 comments Download
M test/inspector/runtime/console-log-doesnt-run-microtasks.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/console-log-doesnt-run-microtasks-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M test/inspector/runtime/console-memory.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-messages-limits.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/console-methods.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/console-spec.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/runtime/console-spec-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/runtime/console-time-end-format.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/console-timestamp.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/runtime/console-timestamp-expected.txt View 2 chunks +1 line, -1 line 0 comments Download
M test/inspector/runtime/create-context.js View 1 chunk +24 lines, -22 lines 0 comments Download
M test/inspector/runtime/es6-module.js View 4 chunks +8 lines, -8 lines 0 comments Download
M test/inspector/runtime/evaluate-async.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/evaluate-async-with-wrap-error.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/evaluate-empty-stack.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/evaluate-with-context-id-equal-zero.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/evaluate-with-context-id-equal-zero-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M test/inspector/runtime/evaluate-with-generate-preview.js View 2 chunks +3 lines, -3 lines 0 comments Download
M test/inspector/runtime/exception-thrown.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/get-properties.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/get-properties-on-proxy.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/get-properties-on-proxy-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/get-properties-preview.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/inspector/runtime/get-properties-preview-expected.txt View 2 chunks +1 line, -1 line 0 comments Download
M test/inspector/runtime/internal-properties.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/internal-properties-entries.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/length-or-size-description.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/property-on-console-proto.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/property-on-console-proto-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M test/inspector/runtime/protocol-works-with-different-locale.js View 1 chunk +2 lines, -0 lines 0 comments Download
M test/inspector/runtime/protocol-works-with-different-locale-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M test/inspector/runtime/run-script-async.js View 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/runtime/runtime-evaluate-with-dirty-context.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/inspector/runtime/runtime-restore.js View 2 chunks +3 lines, -3 lines 0 comments Download
M test/inspector/runtime/set-or-map-entries.js View 2 chunks +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (5 generated)
dgozman
Could you please take a look?
3 years, 7 months ago (2017-05-18 22:21:22 UTC) #2
kozy
lgtm! https://codereview.chromium.org/2891213002/diff/1/test/inspector/console/destroy-context-during-log.js File test/inspector/console/destroy-context-during-log.js (right): https://codereview.chromium.org/2891213002/diff/1/test/inspector/console/destroy-context-during-log.js#newcode5 test/inspector/console/destroy-context-during-log.js:5: let {session, contextGroup, Protocol} = InspectorTest.start('Tests that destroying ...
3 years, 7 months ago (2017-05-18 23:44:54 UTC) #3
dgozman
https://codereview.chromium.org/2891213002/diff/1/test/inspector/console/destroy-context-during-log.js File test/inspector/console/destroy-context-during-log.js (right): https://codereview.chromium.org/2891213002/diff/1/test/inspector/console/destroy-context-during-log.js#newcode5 test/inspector/console/destroy-context-during-log.js:5: let {session, contextGroup, Protocol} = InspectorTest.start('Tests that destroying context ...
3 years, 7 months ago (2017-05-19 00:02:45 UTC) #4
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/2891213002/20001
3 years, 7 months ago (2017-05-19 00:03:01 UTC) #7
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 00:35:54 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/7bbea08f669df4f6dee69cd7b0629959ca3...

Powered by Google App Engine
This is Rietveld 408576698