11cb0ef41Sopenharmony_ci  test(function () {
21cb0ef41Sopenharmony_ci    assert_equals(typeof self.performance, "object");
31cb0ef41Sopenharmony_ci    assert_equals(typeof self.performance.getEntriesByType, "function");
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci    self.performance.mark("mark1");
61cb0ef41Sopenharmony_ci    self.performance.measure("measure1");
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ci    const type = [
91cb0ef41Sopenharmony_ci      'mark',
101cb0ef41Sopenharmony_ci      'measure',
111cb0ef41Sopenharmony_ci    ];
121cb0ef41Sopenharmony_ci    type.forEach(function(entryType) {
131cb0ef41Sopenharmony_ci      if (PerformanceObserver.supportedEntryTypes.includes(entryType)) {
141cb0ef41Sopenharmony_ci        const entryTypeUpperCased = entryType.toUpperCase();
151cb0ef41Sopenharmony_ci        const entryTypeCapitalized = entryType[0].toUpperCase() + entryType.substring(1);
161cb0ef41Sopenharmony_ci        const lowerList = self.performance.getEntriesByType(entryType);
171cb0ef41Sopenharmony_ci        const upperList = self.performance.getEntriesByType(entryTypeUpperCased);
181cb0ef41Sopenharmony_ci        const mixedList = self.performance.getEntriesByType(entryTypeCapitalized);
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ci        assert_greater_than(lowerList.length, 0, "Entries exist");
211cb0ef41Sopenharmony_ci        assert_equals(upperList.length, 0, "getEntriesByType('" + entryTypeCapitalized + "').length");
221cb0ef41Sopenharmony_ci        assert_equals(mixedList.length, 0, "getEntriesByType('" + entryTypeCapitalized + "').length");
231cb0ef41Sopenharmony_ci      }
241cb0ef41Sopenharmony_ci    });
251cb0ef41Sopenharmony_ci  }, "getEntriesByType values are case sensitive");
26