diff options
Diffstat (limited to 'testing/web-platform/tests/user-timing/entry_type.any.js')
-rw-r--r-- | testing/web-platform/tests/user-timing/entry_type.any.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/user-timing/entry_type.any.js b/testing/web-platform/tests/user-timing/entry_type.any.js new file mode 100644 index 0000000000..1e37453d09 --- /dev/null +++ b/testing/web-platform/tests/user-timing/entry_type.any.js @@ -0,0 +1,13 @@ +test(function () { + self.performance.mark('mark'); + var mark_entry = self.performance.getEntriesByName('mark')[0]; + + assert_equals(Object.prototype.toString.call(mark_entry), '[object PerformanceMark]', 'Class name of mark entry should be PerformanceMark.'); +}, "Validate the user timing entry type PerformanceMark"); + +test(function () { + self.performance.measure('measure'); + var measure_entry = self.performance.getEntriesByName('measure')[0]; + + assert_equals(Object.prototype.toString.call(measure_entry), '[object PerformanceMeasure]', 'Class name of measure entry should be PerformanceMeasure.'); +}, "Validate the user timing entry type PerformanceMeasure"); |