mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 21:28:43 +08:00
Expose location symbol function for layout tests
R=szuend@chromium.org Bug: 1011811 Change-Id: Iace5dc83b94f9ffcfb4393cf485f5db26dbdde4b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2450035 Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
e9448dfbe9
commit
cd9c8dfcb1
@@ -524,6 +524,12 @@ class BreakpointItem {
|
||||
}
|
||||
|
||||
export const locationSymbol = Symbol('location');
|
||||
/**
|
||||
* @param {!Element} element
|
||||
*/
|
||||
export function retrieveLocationForElement(element) {
|
||||
return element[locationSymbol];
|
||||
}
|
||||
export const checkboxLabelSymbol = Symbol('checkbox-label');
|
||||
export const snippetElementSymbol = Symbol('snippet-element');
|
||||
export const breakpointLocationsSymbol = Symbol('locations');
|
||||
|
||||
Reference in New Issue
Block a user