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

Issue 2301213003: Add tests for trace wrappers (Closed)

Created:
4 years, 3 months ago by Marcel Hlopko
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, Hannes Payer (out of office), Michael Lippautz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tests for trace wrappers This cl adds very basic tests for general trace wrappers features. And enables TraceWrappables runtime enabled feature for tests! LOG=no BUG=468240 Committed: https://crrev.com/f7d5d042289c5fbe918348830917b888ec587272 Cr-Commit-Position: refs/heads/master@{#419298}

Patch Set 1 #

Patch Set 2 : Fix StringView problem #

Total comments: 13

Patch Set 3 : Fixes #

Patch Set 4 : Rebase master #

Patch Set 5 : Fix or disable failing tests #

Patch Set 6 : Update build files #

Patch Set 7 : Try making TraceWrappables experimental instead of test #

Patch Set 8 : Fix tests #

Patch Set 9 : Rebase master #

Patch Set 10 : Rebase master #

Patch Set 11 : Fix #

Patch Set 12 : Make status=experimental #

Patch Set 13 : Rebase #

Patch Set 14 : Fix #

Patch Set 15 : Rebase master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -31 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-reachable-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-active-dom-object-expected.txt View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-detached-dom-tree-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/heap-snapshot-with-event-listener-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/bindings.gni View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -10 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitorTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +147 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8GCController.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/testing/DeathAwareScriptWrappable.h View 1 chunk +46 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/testing/DeathAwareScriptWrappable.cpp View 1 chunk +3 lines, -8 lines 0 comments Download
A + third_party/WebKit/Source/core/testing/DeathAwareScriptWrappable.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 83 (71 generated)
Marcel Hlopko
Ptal :) The aim of this cl is to cover some general trace wrappers features. ...
4 years, 3 months ago (2016-09-02 07:44:34 UTC) #4
haraken
Thanks for working on this! LGTM :) https://codereview.chromium.org/2301213003/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h File third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h (right): https://codereview.chromium.org/2301213003/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h#newcode60 third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h:60: const void* ...
4 years, 3 months ago (2016-09-02 10:53:15 UTC) #12
Marcel Hlopko
Incorporated comments, thanks! https://codereview.chromium.org/2301213003/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h File third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h (right): https://codereview.chromium.org/2301213003/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h#newcode60 third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h:60: const void* object() { return m_object; ...
4 years, 3 months ago (2016-09-02 12:12:40 UTC) #13
haraken
On 2016/09/02 12:12:40, Marcel Hlopko wrote: > Incorporated comments, thanks! > > https://codereview.chromium.org/2301213003/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h > File ...
4 years, 3 months ago (2016-09-02 12:20:14 UTC) #14
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/2301213003/240001
4 years, 3 months ago (2016-09-16 17:22:10 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/129940) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-09-16 17:33:47 UTC) #71
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/2301213003/260001
4 years, 3 months ago (2016-09-16 18:46:10 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/70799) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-16 18:49:16 UTC) #76
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/2301213003/280001
4 years, 3 months ago (2016-09-16 19:01:04 UTC) #79
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 3 months ago (2016-09-16 22:20:17 UTC) #80
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/f7d5d042289c5fbe918348830917b888ec587272 Cr-Commit-Position: refs/heads/master@{#419298}
4 years, 3 months ago (2016-09-16 22:22:06 UTC) #82
iclelland
4 years, 3 months ago (2016-09-19 13:35:10 UTC) #83
Message was sent while issue was closed.
A revert of this CL (patchset #15 id:280001) has been created in
https://codereview.chromium.org/2350733002/ by iclelland@chromium.org.

The reason for reverting is: Sorry for the revert; this patch has (I believe)
caused the heap-snapshot-with-detached-dom-tree.html to start failing.

The very first failure in that test was in
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Trusty...
-- immediately after this CL was committed.

Here is the flakiness dashboard result for that test:

https://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=in...

The test is failing occasionally with output like this:

    Test that all nodes from the detached DOM tree will get into one group in
the heap snapshot. Bug 107819.

     Took heap snapshot
    Parsed snapshot
    SUCCESS: found (Detached DOM trees)
    SUCCESS: found Detached DOM tree / 3 entries
    FAIL: unexpected DIV count: 1

Reverting this CL since it appears to be primarily about the tests..

Powered by Google App Engine
This is Rietveld 408576698