Files
react-native-devtools-frontend/test/e2e/resources/sources/sourcemap-disjoint.html
T
Brandon Walderman 43094f2f75 Check UILocation when adding/removing breakpoint decorators
This change updates the DebuggerPlugin class's decorationByBreakpoint
map to key on both Breakpoint and UILocation when adding and removing
breakpoing decorators in the UI. Before this change, if a Breakpoint was
associated with multiple UILocations, then attempting to remove that
breakpoint would not update all of its decorators correctly. This is
because the first breakpointRemoved event that was received would
remove the Breakpoint entry from decorationByBreakpoint, and then any
subsequent breakpointRemoved events for the same Breakpoint with a
different UILocation would have no effect.

After the change, breakpoints with multiple UILocations and decorators
are updated correctly. An e2e test has been added to verify this.

Bug: 1251675
Change-Id: Ia33593af5a3efcb08cf219d2e21932406760f3fd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3205603
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Brandon Walderman <brwalder@microsoft.com>
2021-10-06 16:11:17 +00:00

7 lines
145 B
HTML

<!DOCTYPE html>
<html>
<body>
<script src="sourcemap-disjoint-1.js"></script>
<script src="sourcemap-disjoint-2.js"></script>
</body>
</html>