aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2013-09-27 18:53:15 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2013-10-02 17:02:28 +0200
commite263ebda99f3d414bae91a4a47e74a37ff93ba9c (patch)
treed69d4f892181ba5db1e3fdcbb2d7cb4dae9e4f6b /tests/visual
parent80b17bb40a1a0956e954d41550ebdf69ee480ae2 (diff)
downloadjquery-ui-e263ebda99f3d414bae91a4a47e74a37ff93ba9c.tar.gz
jquery-ui-e263ebda99f3d414bae91a4a47e74a37ff93ba9c.zip
Dialog: Switch back to shuffling z-index, but only look at .ui-front siblings.
Fixes #9166 - Dialog: moveToTop implementation resets flash/video/iframe/scroll Fixes #9364 - Dialog: Click of element with tooltip scrolls the dialog to the top
Diffstat (limited to 'tests/visual')
-rw-r--r--tests/visual/dialog/stacking.html62
-rw-r--r--tests/visual/index.html4
2 files changed, 66 insertions, 0 deletions
diff --git a/tests/visual/dialog/stacking.html b/tests/visual/dialog/stacking.html
new file mode 100644
index 000000000..dcb7de280
--- /dev/null
+++ b/tests/visual/dialog/stacking.html
@@ -0,0 +1,62 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Dialog Visual Test</title>
+ <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
+ <script src="../../../jquery-1.10.2.js"></script>
+ <script src="../../../ui/jquery.ui.core.js"></script>
+ <script src="../../../ui/jquery.ui.widget.js"></script>
+ <script src="../../../ui/jquery.ui.mouse.js"></script>
+ <script src="../../../ui/jquery.ui.draggable.js"></script>
+ <script src="../../../ui/jquery.ui.position.js"></script>
+ <script src="../../../ui/jquery.ui.resizable.js"></script>
+ <script src="../../../ui/jquery.ui.button.js"></script>
+ <script src="../../../ui/jquery.ui.dialog.js"></script>
+
+ <style>
+ body {
+ font-size: 62.5%;
+ }
+ </style>
+ <script>
+ $(function() {
+ var iframeDialog = $( "#dialog-iframe" ).dialog({
+ position: {
+ my: "right-90 center"
+ },
+ height: 400
+ }),
+
+ scrollingDialog = $( "#dialog-scrolling" ).dialog({
+ maxHeight: 200,
+ position: {
+ my: "left+90 center"
+ }
+ }),
+
+ otherDialog = $( "#dialog-other" ).dialog({
+ width: 200,
+ height: 150
+ });
+ });
+ </script>
+</head>
+<body>
+
+<p>WHAT: Two dialogs, one embedding an iframe, one having just scrollable content.</p>
+<p>EXPECTED: When focusing on one or the other dialog, it shouldn't affect how the content is displayed on the other dialog. It shouldn't reload the iframe or reset the scroll.</p>
+
+
+<div id="dialog-iframe" title="Dialog that embeds an iframe">
+ <iframe src="animated.html" height="400"></iframe>
+</div>
+
+<div id="dialog-scrolling" title="Dialog with scroll">
+ <p style="height:600px;background:#eee">a bunch of content</p>
+</div>
+
+<div id="dialog-other" title="placeholder">Just another dialog to test stacking</div>
+
+</body>
+</html>
diff --git a/tests/visual/index.html b/tests/visual/index.html
index 730eb4553..bb46137f4 100644
--- a/tests/visual/index.html
+++ b/tests/visual/index.html
@@ -33,7 +33,11 @@
<h2>Dialog</h2>
<ul>
+ <li><a href="dialog/animated.html">Animations</a></li>
+ <li><a href="dialog/complex-dialogs.html">Nested dialogs</a></li>
+ <li><a href="dialog/form.html">Forms in dialogs</a></li>
<li><a href="dialog/performance.html">Performance</a></li>
+ <li><a href="dialog/stacking.html">Overlapping dialogs</a></li>
</ul>
<h2>Effects</h2>