Changeset 116347 in webkit
- Timestamp:
- May 7, 2012 1:23:07 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r116344 r116347 1 2012-05-07 Ojan Vafai <ojan@chromium.org> 2 3 When embedding the flakiness dashboard, hide popups when the frame is blurred. 4 https://bugs.webkit.org/show_bug.cgi?id=85684 5 6 Reviewed by Dirk Pranke. 7 8 If you show a popup, then click elsewhere in garden-o-matic, it will now 9 properly hide it. 10 11 * TestResultServer/static-dashboards/dashboard_base.js: 12 (showPopup): 13 * TestResultServer/static-dashboards/flakiness_dashboard.js: 14 (showPopupForBuild): 15 (generatePageForIndividualTests.if): 16 (generatePageForIndividualTests): 17 * TestResultServer/static-dashboards/flakiness_dashboard_embedded_unittests.js: Added. 18 * TestResultServer/static-dashboards/flakiness_dashboard_unittests.js: 19 * TestResultServer/static-dashboards/run-embedded-unittests.html: Added. 20 1 21 2012-05-07 Ian Vollick <vollick@chromium.org> 2 22 -
trunk/Tools/TestResultServer/static-dashboards/dashboard_base.js
r116024 r116347 806 806 } 807 807 808 function showPopup( e, html)808 function showPopup(target, html) 809 809 { 810 810 var popup = $('popup'); … … 818 818 popup.innerHTML = html; 819 819 820 var targetRect = e.target.getBoundingClientRect();820 var targetRect = target.getBoundingClientRect(); 821 821 822 822 var x = Math.min(targetRect.left - 10, document.documentElement.clientWidth - popup.offsetWidth); -
trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.js
r116162 r116347 1016 1016 1017 1017 html += '</ul>'; 1018 showPopup(e , html);1018 showPopup(e.target, html); 1019 1019 } 1020 1020 … … 2339 2339 } 2340 2340 2341 if (window != parent) 2342 window.addEventListener('blur', hidePopup); 2343 2341 2344 document.addEventListener('keydown', function(e) { 2342 2345 if (e.keyIdentifier == 'U+003F' || e.keyIdentifier == 'U+00BF') { -
trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard_unittests.js
r116163 r116347 667 667 deepEqual(tests, [test3, test1, test2]); 668 668 }); 669 670 test('popup', 2, function() { 671 showPopup(document.body, 'dummy content'); 672 ok(document.querySelector('#popup')); 673 hidePopup(); 674 ok(!document.querySelector('#popup')); 675 });
Note: See TracChangeset
for help on using the changeset viewer.