aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-12-13 11:22:17 +0000
committerRichard Worth <rdworth@gmail.com>2008-12-13 11:22:17 +0000
commit71528f7fc48422a55d54196ba0a31617d28578ce (patch)
tree4043e12241a42dcf995f6ecc37b7df6b8f8f5617 /tests/visual
parent6bdc9f7c967c582869aa6ef9803c4a8fcdd24e93 (diff)
downloadjquery-ui-71528f7fc48422a55d54196ba0a31617d28578ce.tar.gz
jquery-ui-71528f7fc48422a55d54196ba0a31617d28578ce.zip
tests/visual/dialog: Added some content to the simple dialog test
Diffstat (limited to 'tests/visual')
-rw-r--r--tests/visual/all.html8
-rw-r--r--tests/visual/dialog.html6
2 files changed, 12 insertions, 2 deletions
diff --git a/tests/visual/all.html b/tests/visual/all.html
index 088477278..f4f9a6ec7 100644
--- a/tests/visual/all.html
+++ b/tests/visual/all.html
@@ -21,7 +21,10 @@
$(function() {
$("#accordion").accordion();
$("#datepicker").datepicker();
- $("#dialog").click(function() { $("<div></div>").dialog(); });
+ var dlg = $("#dlg").remove();
+ $("#dialog").click(function() {
+ dlg.appendTo('body').dialog();
+ });
$("#draggable").draggable();
$(".draggable").draggable();
$("#droppable").droppable({
@@ -75,6 +78,9 @@
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">
diff --git a/tests/visual/dialog.html b/tests/visual/dialog.html
index fbff3ccb4..f5606700d 100644
--- a/tests/visual/dialog.html
+++ b/tests/visual/dialog.html
@@ -11,8 +11,9 @@
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
<script type="text/javascript">
$(function() {
+ var dlg = $("#dlg").remove();
$("#dialog").click(function() {
- $("<div></div>").dialog();
+ dlg.appendTo('body').dialog();
});
});
</script>
@@ -24,6 +25,9 @@
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>
</ul>