-<!DOCTYPE HTML>\r
-<html>\r
- <head>\r
- <meta charset="utf-8" />\r
- <title>clearResourceTimings functionality of resource timing</title>\r
- <link rel="author" title="Intel" href="http://www.intel.com/" />\r
- <link rel="help" href="http://www.w3.org/TR/resource-timing/#performanceresourcetiming"/>\r
- <script src="/w3c/resources/testharness.js"></script>\r
- <script src="/w3c/resources/testharnessreport.js"></script>\r
- <script src="/w3c/webperf/resources/webperftestharness.js"></script>\r
- <script src="/w3c/webperf/resources/webperftestharnessextension.js"></script>\r
- <script>\r
- setup({ explicit_done: true });\r
- var context = new PerformanceContext(performance);\r
- function onload_test()\r
- {\r
- test_equals(context.getEntriesByType("resource").length, 4, 4 + " resource timing entries should be stored in this page!");\r
- context.clearResourceTimings();\r
- test_equals(context.getEntriesByType("resource").length, 0, "No resource timing entries should be stored after clearResourceTimings!");\r
- done();\r
- }\r
- </script>\r
- </head>\r
- <body onload=onload_test()>\r
- <h1>Description</h1>\r
- <p>This test validates the functionality of clearResourceTimings method in resource timing.</p>\r
- </body>\r
-</html>\r
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <title>clearResourceTimings functionality of resource timing</title>
+ <link rel="author" title="Intel" href="http://www.intel.com/" />
+ <link rel="help" href="http://www.w3.org/TR/resource-timing/#performanceresourcetiming"/>
+ <script src="/w3c/resources/testharness.js"></script>
+ <script src="/w3c/resources/testharnessreport.js"></script>
+ <script src="/w3c/webperf/resources/webperftestharness.js"></script>
+ <script src="/w3c/webperf/resources/webperftestharnessextension.js"></script>
+ <script>
+ setup({ explicit_done: true });
+ var context = new PerformanceContext(performance);
+ function onload_test()
+ {
+ test_equals(context.getEntriesByType("resource").length, 4, 4 + " resource timing entries should be stored in this page!");
+ context.clearResourceTimings();
+ test_equals(context.getEntriesByType("resource").length, 0, "No resource timing entries should be stored after clearResourceTimings!");
+ done();
+ }
+ </script>
+ </head>
+ <body onload=onload_test()>
+ <h1>Description</h1>
+ <p>This test validates the functionality of clearResourceTimings method in resource timing.</p>
+ </body>
+</html>