Custom analysis task page should allow schedule any triggerable accepted tests.
[WebKit.git] / Websites / perf.webkit.org / public / v3 / components / custom-analysis-task-configurator.js
index e2c5342..37860be 100644 (file)
@@ -224,8 +224,11 @@ class CustomAnalysisTaskConfigurator extends ComponentBase {
             for (const test of triggerable.acceptedTests())
                 acceptedTests.add(test);
         }
-
-        let tests = Test.all().filter((test) => acceptedTests.has(test) && (!test.parentTest() || !acceptedTests.has(test.parentTest())));
+        const tests = [...acceptedTests].sort((testA, testB) => {
+            if (testA.fullName() == testB.fullName())
+                return 0;
+            return testA.fullName() < testB.fullName() ? -1 : 1;
+        });
         return this._renderRadioButtonList(this.content('test-list'), 'test', tests, this.selectTests.bind(this), (test) => test.fullName());
     }