]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add a visual test for the dropdown menu cross leave
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 4 Dec 2016 15:31:30 +0000 (16:31 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 4 Dec 2016 15:31:30 +0000 (16:31 +0100)
test/visual/dropdown-menu/dropdown-menu-cross-leave.html [new file with mode: 0644]

diff --git a/test/visual/dropdown-menu/dropdown-menu-cross-leave.html b/test/visual/dropdown-menu/dropdown-menu-cross-leave.html
new file mode 100644 (file)
index 0000000..749add3
--- /dev/null
@@ -0,0 +1,48 @@
+<!doctype html>
+<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
+<html class="no-js" lang="en" dir="ltr">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <title>Foundation for Sites Testing</title>
+    <link href="../assets/css/foundation.css" rel="stylesheet" />
+  </head>
+  <body>
+    <div class="row column">
+      <ul class="dropdown menu" data-dropdown-menu>
+        <li>
+          <a href="#">Item 1</a>
+          <ul class="menu vertical">
+            <li><a href="#">Content</a></li>
+          </ul>
+        </li>
+        <li>
+          <a href="#">Item 2</a>
+          <ul class="menu vertical">
+            <li><a href="#">Content</a></li>
+          </ul>
+        </li>
+        <li>
+          <a href="#">Item 3</a>
+          <ul class="menu vertical">
+            <li><a href="#">Content</a></li>
+          </ul>
+        </li>
+      </ul>
+      <div class="callout">
+        <p>Move the Mouse on Item 1 to open it, then quicly leave the window though the Item 2 (in a 45 degree angel). Panels should close.</p>
+
+        <p>
+          Checked bug: <a href="https://github.com/zurb/foundation-sites/issues/9427">https://github.com/zurb/foundation-sites/issues/9427</a><br/>
+          <img src="https://cloud.githubusercontent.com/assets/9939075/20866285/0a24819c-ba2a-11e6-93d8-1a69363f2c57.gif"/>
+        </p>
+      </div>
+    </div>
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>