| 849 | } |
| 850 | |
| 851 | applyFilters() { |
| 852 | if (this.error) { |
| 853 | // Never filter out errors. |
| 854 | return; |
| 855 | } |
| 856 | |
| 857 | if (this.filteredByName) { |
| 858 | this.filtered = true; |
| 859 | return; |
| 860 | } |
| 861 | |
| 862 | if (this.root.harness.isFilteringByOnly && !this.only && !this.hasOnlyTests) { |
| 863 | if (this.parent.runOnlySubtests || |
| 864 | this.parent.hasOnlyTests || |
| 865 | this.only === false) { |
| 866 | this.filtered = true; |
| 867 | return; |
| 868 | } |
| 869 | } |
| 870 | |
| 871 | if (this.filteredByTag) { |
| 872 | this.filtered = true; |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | willBeFilteredByName() { |
| 877 | const { testNamePatterns, testSkipPatterns } = this.config; |