https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d9fd6d34e418bab15f4b87142249f553e00fe152 authored by James Graham on 26 November 2013, 10:34:48 UTC
Add tool for generating test list in JSON format
Tip revision: d9fd6d3
test_performance_timeline_functions.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/performance-timeline/"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="stylesheet" href="/resources/testharness.css" />
<script>
test(function() {
assert_equals(typeof window.performance.getEntries, "function");
}, "Verify getEntries exists and is a function");
test(function() {
assert_equals(typeof window.performance.getEntriesByName, "function");
}, "Verify getEntriesByName exists and is a function");
test(function() {
assert_equals(typeof window.performance.getEntriesByType, "function");
}, "Verify getEntriesByType exists and is a function");


</script>
</head>
<body>
<h1>Description</h1>
<p>This test verifies the existence of getEntries, getEntriesByType and getEntriesByName functions that are defined in the Performance Timeline specification.</p>

<div id="log"></div>

</body>
</html>
back to top