aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/dialog
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-03-21 21:07:25 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2010-03-21 21:07:25 +0100
commitf5a14de1b1315140eaf04a8056107cc95732922f (patch)
treeb74379ac9f4cab5561f86fc867edd7f8ad88c992 /tests/visual/dialog
parentd29f819269a6271b8c2f6af89c5ede4cbae99b89 (diff)
downloadjquery-ui-f5a14de1b1315140eaf04a8056107cc95732922f.tar.gz
jquery-ui-f5a14de1b1315140eaf04a8056107cc95732922f.zip
Cleaning up visual tests
Fixes #5395 - Visual Tests Cleanup
Diffstat (limited to 'tests/visual/dialog')
-rw-r--r--tests/visual/dialog/default.html32
-rw-r--r--tests/visual/dialog/dialog.html49
2 files changed, 9 insertions, 72 deletions
diff --git a/tests/visual/dialog/default.html b/tests/visual/dialog/default.html
deleted file mode 100644
index 31ffda0b0..000000000
--- a/tests/visual/dialog/default.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <title>Dialog Visual Test : Default</title>
- <link rel="stylesheet" href="../visual.css" type="text/css" />
- <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
- <script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
- <script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.dialog.js"></script>
- <script type="text/javascript">
- $(function() {
- $("#dialog").dialog();
- });
- </script>
-</head>
-<body>
-
-<div id="dialog" title="Dialog Title">
- <p>
- Dialog Content
- </p>
-</div>
-
-</body>
-</html>
diff --git a/tests/visual/dialog/dialog.html b/tests/visual/dialog/dialog.html
index 5c2129050..31ffda0b0 100644
--- a/tests/visual/dialog/dialog.html
+++ b/tests/visual/dialog/dialog.html
@@ -2,62 +2,31 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
- <title>Dialog Visual Tests Page</title>
- <link rel="stylesheet" href="../all.css" type="text/css">
+ <title>Dialog Visual Test : Default</title>
+ <link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
<script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
<script type="text/javascript" src="../../../external/jquery.bgiframe-2.1.1.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
+ <script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.dialog.js"></script>
<script type="text/javascript">
$(function() {
- // Simple Dialog
- $("#dialog button").click(function() {
- $("#dlg").clone().removeAttr('id').dialog();
- });
-
- // Dialog with Buttons
- var dlgbuttons = $("#dlgbuttons").dialog({
- autoOpen: false,
- width: 600,
- buttons: {
- Ok: function() {},
- Cancel: function() {}
- }
- });
- $("#dialogbuttons").click(function() {
- dlgbuttons.dialog('open');
- });
-
+ $("#dialog").dialog();
});
</script>
</head>
<body>
-<ul class="plugins">
-<li class="plugin">
- Dialog
- <div id="dialog">
- <button>Open</button>
- <div id="dlg" title="Dialog Title">
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
- </div>
- </div>
-</li>
-<li class="plugin">
- Dialog with buttons
- <div id="dialogbuttons">
- <button>Open</button>
- <div id="dlgbuttons" title="Dialog Title">
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
- </div>
- </div>
-</li>
-</ul>
+<div id="dialog" title="Dialog Title">
+ <p>
+ Dialog Content
+ </p>
+</div>
</body>
</html>