| Index: dashboard/dashboard/elements/chart-title.html
|
| diff --git a/dashboard/dashboard/elements/chart-title.html b/dashboard/dashboard/elements/chart-title.html
|
| index ea3f7834b19986ebe248ef72e0f1a19266212e26..a45e325888c38212e322caccb92d8edbc71b9c21 100644
|
| --- a/dashboard/dashboard/elements/chart-title.html
|
| +++ b/dashboard/dashboard/elements/chart-title.html
|
| @@ -23,8 +23,22 @@ found in the LICENSE file.
|
| text-decoration: none;
|
| cursor: default;
|
| }
|
| + paper-button {
|
| + color: white;
|
| + font-weight: bold;
|
| + min-width: initial;
|
| + padding: 5px;
|
| + margin: 0;
|
| + background: #4285f4;
|
| + font-size: 18px;
|
| + }
|
| + h3 {
|
| + display: inline-block;
|
| + }
|
| </style>
|
|
|
| + <paper-button raised on-click="populateTestPicker_">↸</paper-button>
|
| +
|
| <h3>
|
| <template is="dom-repeat" items="{{titleParts}}">
|
| <a class="title disabled" href="javascript:void(0);"
|
| @@ -97,6 +111,21 @@ found in the LICENSE file.
|
| this.suiteDescriptions = this.getSuitesAndDescriptions();
|
| },
|
|
|
| + populateTestPicker_(event) {
|
| + // chart-title's testPaths have a different structure from test-picker's
|
| + // testPaths.
|
| + let testPath = [];
|
| + for (const part of this.titleParts) {
|
| + testPath.push.apply(testPath, part.split('/'));
|
| + }
|
| +
|
| + // chart-title's testPaths are in a different order from test-picker's
|
| + // testPaths.
|
| + testPath = [testPath[2], testPath[1]].concat(testPath.slice(3));
|
| +
|
| + this.fire('populateTestPicker', {testPath});
|
| + },
|
| +
|
| onClicked(event) {
|
| const index = event.model.index;
|
| if (index == this.currentIndex) {
|
|
|