Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1922)

Unified Diff: dashboard/dashboard/elements/chart-legend.html

Issue 2716683004: [Dashboard] Start using /list_tests's test_path_dict mode in test-picker (Closed)
Patch Set: fix v8 case Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/dashboard/elements/chart-container.html ('k') | dashboard/dashboard/elements/report-page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/chart-legend.html
diff --git a/dashboard/dashboard/elements/chart-legend.html b/dashboard/dashboard/elements/chart-legend.html
index 141bfc40d5c379dda9898f8676433c6fbf3f27d1..f8b6d2928f0f8f9f6af60f0ae0379f9b2151e694 100644
--- a/dashboard/dashboard/elements/chart-legend.html
+++ b/dashboard/dashboard/elements/chart-legend.html
@@ -482,16 +482,22 @@ found in the LICENSE file.
event.target).groupIndex;
var testPath = this.seriesGroupList[groupIndex].path;
var selectedTests = [];
+ var unselectedTests = [];
var tests = this.seriesGroupList[groupIndex].tests;
for (var i = 0; i < tests.length; i++) {
if (tests[i].selected) {
selectedTests.push(tests[i].name);
+ } else {
+ unselectedTests.push(tests[i].name);
}
}
event.dataTransfer.setData('type', 'seriesdnd');
- // chart-container takes a list of test path and selected tests pair.
event.dataTransfer.setData(
- 'data', JSON.stringify([[testPath, selectedTests]]));
+ 'data', JSON.stringify({
+ mainPath: testPath,
+ selectedPaths: selectedTests,
+ unselectedPaths: unselectedTests
+ }));
event.dataTransfer.effectAllowed = 'copy';
},
« no previous file with comments | « dashboard/dashboard/elements/chart-container.html ('k') | dashboard/dashboard/elements/report-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698