commit | 3ae920b18b96d7fd53c32d9d70abfeba49c5754c | [log] [tgz] |
---|---|---|
author | Arthur Sonzogni <arthursonzogni@chromium.org> | Fri Jun 15 14:30:21 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jun 15 14:30:21 2018 |
tree | cbd9ef26c68ec3d2059a05925a84f03cb783ea3a | |
parent | f9a165049a574d2a3bb7d4cb48526635843c9a35 [diff] |
Update DomTreeExtractionBrowserTest. Assigned Node ID may not be the same for each executions of the test DomTreeExtractionBrowserTest.RunAsyncTest. This CL clears the value of backendNodeId to make this test more deterministic. backendNodeId uses DOMNodIds::IdForNode(). Here are two stack traces where the ID number 3 is assigned to a different Node. 02 blink::DOMNodeIds::IdForNode() 03 blink::InspectorDOMSnapshotAgent::VisitNode() 04 blink::InspectorDOMSnapshotAgent::VisitContainerChildren() 05 blink::InspectorDOMSnapshotAgent::VisitNode() 06 blink::InspectorDOMSnapshotAgent::getSnapshot() 07 blink::InspectorDOMSnapshotAgent::getSnapshot() 08 blink::protocol::DOMSnapshot::DispatcherImpl::getSnapshot() 09 blink::protocol::DOMSnapshot::DispatcherImpl::dispatch() 10 blink::protocol::UberDispatcher::dispatch() 11 blink::InspectorSession::DispatchProtocolMessage() 12 blink::WebDevToolsAgentImpl::Session::DispatchProtocolCommand() 13 blink::mojom::blink::DevToolsSessionStubDispatch::Accept() 02 blink::DOMNodeIds::IdForNode() 03 blink::CompositedLayerMapping::CreateGraphicsLayer() 04 blink::CompositedLayerMapping::CreatePrimaryGraphicsLayer() 05 blink::CompositedLayerMapping::CompositedLayerMapping() 06 blink::PaintLayer::EnsureCompositedLayerMapping() 07 blink::PaintLayerCompositor::AllocateOrClearCompositedLayerMapping() 08 blink::CompositingLayerAssigner::AssignLayersToBackingsInternal() 09 blink::CompositingLayerAssigner::Assign() 10 blink::PaintLayerCompositor::UpdateIfNeeded() 11 blink::PaintLayerCompositor::UpdateIfNeededRecursiveInternal() 12 blink::PaintLayerCompositor::UpdateIfNeededRecursive() 13 blink::LocalFrameView::UpdateLifecyclePhasesInternal() 14 blink::LocalFrameView::UpdateAllLifecyclePhases() 15 blink::PageAnimator::UpdateAllLifecyclePhases() 16 blink::PageWidgetDelegate::UpdateLifecycle() 17 blink::WebViewImpl::UpdateLifecycle() 18 blink::WebViewFrameWidget::UpdateLifecycle() 19 content::RenderWidget::UpdateVisualState() 20 content::RenderWidgetCompositor::UpdateLayerTreeHost() 21 cc::LayerTreeHost::RequestMainFrameUpdate() Currently, this test doesn't appear to be flaky. I am working on: https://crbug.com/831155. It causes the navigation to commit slightly faster. The test fails one time out of four, all the backendNodeId in getSnapshot() are shifted by one. Bug: 831155 Change-Id: I83a30202877bb65953957438284062f13fabeb6c Reviewed-on: https://chromium-review.googlesource.com/1101693 Reviewed-by: Alex Clarke <alexclarke@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#567640}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .