diff options
author | Richard Worth <rdworth@gmail.com> | 2008-12-22 17:12:26 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-12-22 17:12:26 +0000 |
commit | 594ae9261b0cef4520a934838b3af477da7bde0a (patch) | |
tree | 9a8e4d6d57c11ace3b0eb783d1cfd0a1897c8514 /tests | |
parent | 3522a23b507f049a8917401bd6acaa928ae37ed8 (diff) | |
download | jquery-ui-594ae9261b0cef4520a934838b3af477da7bde0a.tar.gz jquery-ui-594ae9261b0cef4520a934838b3af477da7bde0a.zip |
tests/visual: adjusted the formatting a bit. Separated dialog tests into simple dialog and dialog with buttons
Diffstat (limited to 'tests')
-rw-r--r-- | tests/visual/all.css | 16 | ||||
-rw-r--r-- | tests/visual/all.html | 5 | ||||
-rw-r--r-- | tests/visual/dialog.html | 24 |
3 files changed, 31 insertions, 14 deletions
diff --git a/tests/visual/all.css b/tests/visual/all.css index 4fd39d5ac..d4b4805a1 100644 --- a/tests/visual/all.css +++ b/tests/visual/all.css @@ -7,7 +7,7 @@ ul.plugins { ul.plugins li.plugin { margin: 0 12px 12px 0; list-style-type: none; - width: 210px; + width: 220px; height: 220px; float: left; color: white; @@ -19,8 +19,7 @@ li.plugin { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } -#accordion, #draggable, -#resizable, #selectable, #sortable { +#draggable, #resizable, #selectable, #sortable { margin: 10px; width: 190px; height: 180px; text-align: center; @@ -31,14 +30,17 @@ li.plugin { background: none; text-align: left; } -#datepicker, #dialog, #progressbar, #slider { +#accordion, #datepicker, #dialog, #progressbar, #slider { margin: 10px; } #datepicker { - margin-left: 0; + margin-left: -40px; +} +#tabs { + margin: 0 10px; } #selectable div { - width: 45px; height: 45px; float: left; margin: 6px; + width: 45px; height: 45px; float: left; margin: 6px 8px; border: 1px solid white; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } @@ -49,7 +51,7 @@ li.plugin { background: black; } #sortable div { - width: 45px; height: 45px; float: left; margin: 6px; + width: 45px; height: 45px; float: left; margin: 6px 8px; border: 1px solid white; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } diff --git a/tests/visual/all.html b/tests/visual/all.html index 56be279df..653227e0b 100644 --- a/tests/visual/all.html +++ b/tests/visual/all.html @@ -21,9 +21,8 @@ $(function() { $("#accordion").accordion({ header: "h3" }); $("#datepicker").datepicker(); - var dlg = $("#dlg").remove(); - $("#dialog").click(function() { - dlg.appendTo('body').dialog(); + $("#dialog button").click(function() { + $("#dlg").clone().dialog(); }); $("#draggable").draggable(); $(".draggable").draggable(); diff --git a/tests/visual/dialog.html b/tests/visual/dialog.html index 60c74171c..cf8498ee1 100644 --- a/tests/visual/dialog.html +++ b/tests/visual/dialog.html @@ -1,7 +1,7 @@ <!doctype html> <html lang="en"> <head> - <title>Simple Dialog</title> + <title>Dialog Visual Tests Page</title> <link rel="stylesheet" href="all.css" type="text/css"> <link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css"> <script type="text/javascript" src="../../jquery-1.2.6.js"></script> @@ -11,7 +11,13 @@ <script type="text/javascript" src="../../ui/ui.resizable.js"></script> <script type="text/javascript"> $(function() { - var dlg = $("#dlg").dialog({ + // Simple Dialog + $("#dialog button").click(function() { + $("#dlg").clone().dialog(); + }); + + // Dialog with Buttons + var dlgbuttons = $("#dlgbuttons").dialog({ autoOpen: false, width: 600, buttons: { @@ -19,9 +25,10 @@ Cancel: function() {} } }); - $("#dialog").click(function() { - dlg.dialog('open'); + $("#dialogbuttons").click(function() { + dlgbuttons.dialog('open'); }); + }); </script> </head> @@ -37,6 +44,15 @@ </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> </body> |