From 594ae9261b0cef4520a934838b3af477da7bde0a Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Mon, 22 Dec 2008 17:12:26 +0000 Subject: tests/visual: adjusted the formatting a bit. Separated dialog tests into simple dialog and dialog with buttons --- tests/visual/all.css | 16 +++++++++------- tests/visual/all.html | 5 ++--- 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 @@ - Simple Dialog + Dialog Visual Tests Page @@ -11,7 +11,13 @@ @@ -37,6 +44,15 @@ +
  • + Dialog with buttons +
    + +
    +

    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.

    +
    +
    +
  • -- cgit v1.2.3