summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/tabs/tab_that_closes.html
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/tabs/tab_that_closes.html')
-rw-r--r--browser/base/content/test/tabs/tab_that_closes.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/browser/base/content/test/tabs/tab_that_closes.html b/browser/base/content/test/tabs/tab_that_closes.html
new file mode 100644
index 0000000000..795baec18b
--- /dev/null
+++ b/browser/base/content/test/tabs/tab_that_closes.html
@@ -0,0 +1,15 @@
+<html>
+<head>
+<title>Dummy test page</title>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8"></meta>
+</head>
+<body>
+ <h1>This tab will close</h2>
+ <script>
+ // We use half a second timeout because this can race in debug builds.
+ setTimeout( () => {
+ window.close();
+ }, 500);
+ </script>
+</body>
+</html>