summaryrefslogtreecommitdiffstats
path: root/dom/tests/browser/perfmetrics/setinterval.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/browser/perfmetrics/setinterval.html')
-rw-r--r--dom/tests/browser/perfmetrics/setinterval.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/dom/tests/browser/perfmetrics/setinterval.html b/dom/tests/browser/perfmetrics/setinterval.html
new file mode 100644
index 0000000000..4c3e7264ca
--- /dev/null
+++ b/dom/tests/browser/perfmetrics/setinterval.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="en" dir="ltr">
+<head>
+ <meta charset="utf-8">
+ <script type="text/javascript">
+ var interval;
+
+ function doSomething() {
+ console.log("We are doing something here");
+ clearInterval(interval);
+ }
+
+ interval = setInterval(doSomething, 1);
+ </script>
+</head>
+<body>
+ <h1>A page with a setInterval() call</h1>
+</body>
+</html>