| Index: LayoutTests/fast/performance/performance-mark-exceptions.html
|
| diff --git a/LayoutTests/fast/performance/performance-mark-exceptions.html b/LayoutTests/fast/performance/performance-mark-exceptions.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b6bf1950a4acc6d559395ca8d7f4d1a3fd6f33b1
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/performance/performance-mark-exceptions.html
|
| @@ -0,0 +1,39 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +</head>
|
| +<body>
|
| + <script src="../js/resources/js-test-pre.js"></script>
|
| + <script>
|
| + description("This tests that 'performance.mark' throws exceptions with reasonable messages.");
|
| +
|
| + var allTheThings = [
|
| + 'navigationStart',
|
| + 'unloadEventStart',
|
| + 'unloadEventEnd',
|
| + 'redirectStart',
|
| + 'redirectEnd',
|
| + 'fetchStart',
|
| + 'domainLookupStart',
|
| + 'domainLookupEnd',
|
| + 'connectStart',
|
| + 'connectEnd',
|
| + 'secureConnectionStart',
|
| + 'requestStart',
|
| + 'responseStart',
|
| + 'responseEnd',
|
| + 'domLoading',
|
| + 'domInteractive',
|
| + 'domContentLoadedEventStart',
|
| + 'domContentLoadedEventEnd',
|
| + 'domComplete',
|
| + 'loadEventStart',
|
| + 'loadEventEnd',
|
| + ];
|
| + allTheThings.forEach(function(name) {
|
| + shouldThrow('window.performance.mark(\'' + name + '\')', '"SyntaxError: \'' + name + '\' is part of the PerformanceTiming interface, and cannot be used as a mark name."');
|
| + });
|
| + </script>
|
| + <script src="../js/resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|