Changeset 150067 in webkit
- Timestamp:
- May 14, 2013, 5:51:59 AM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r150066 r150067 1 2013-05-14 Andrei Bucur <abucur@adobe.com> 2 3 Modify checkLayout to receive the log container as an optional parameter 4 https://bugs.webkit.org/show_bug.cgi?id=112793 5 6 Reviewed by Darin Adler. 7 8 Add a way to specify the container manually for checkLayout. This is helpful to measure regions for nested 9 named flows (and probably other cases as well). 10 11 * resources/check-layout.js: Added an optional parameter to window.checkLayout. 12 1 13 2013-04-30 Balazs Kelemen <b.kelemen@sisa.samsung.com> 2 14 -
trunk/LayoutTests/resources/check-layout.js
r148973 r150067 180 180 } 181 181 182 window.checkLayout = function(selectorList )182 window.checkLayout = function(selectorList, overrideContainer) 183 183 { 184 184 if (!selectorList) { … … 195 195 checkedLayout |= checkSubtreeExpectedValues(node, failures); 196 196 197 var container = node.parentNode.className == 'container' ? node.parentNode : node;197 var container = overrideContainer || (node.parentNode.className == 'container' ? node.parentNode : node); 198 198 199 199 var pre = document.createElement('pre');
Note:
See TracChangeset
for help on using the changeset viewer.