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:
Tim van der Lippe
2020-10-06 12:54:34 +00:00
committed by Commit Bot
parent e9448dfbe9
commit cd9c8dfcb1
2 changed files with 8 additions and 0 deletions
@@ -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');