Description
This test validates that the performance.clearMeasures() method is working properly. This test creates the
following measures to test this method:
After creating each measure, performance.clearMeasures() is called three times. First, it is provided with a
name of "measureUndefined", a non-existent measure, which shouldn't change the state of the Performance
Timeline. Next, it is provided with a name of "measure2", after which, this measure should no longer be
present in the Performance Timeline. Finally, performance.clearMeasures() is called without any name
provided. After this call, no measures should be present in the Performance Timeline. The state of the
Performance Timeline is tested with the performance.getEntriesByType() and performance.getEntries() methods.