diff options
author | Richard Worth <rdworth@gmail.com> | 2008-12-10 05:12:08 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-12-10 05:12:08 +0000 |
commit | c95e3b27a491dd4ef0466e6fcac36e1f684f9671 (patch) | |
tree | dfc1e848e078e83543f84b14b32c53e76ca534ff /tests | |
parent | 38e213547245bc1186bce70b5b920e9dd7356c76 (diff) | |
download | jquery-ui-c95e3b27a491dd4ef0466e6fcac36e1f684f9671.tar.gz jquery-ui-c95e3b27a491dd4ef0466e6fcac36e1f684f9671.zip |
progressbar: Removed all progressbar options except value. Added visual test for disabled progressbar.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/visual/progressbar.html | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/tests/visual/progressbar.html b/tests/visual/progressbar.html index eba1f71dc..d5c5d97f3 100644 --- a/tests/visual/progressbar.html +++ b/tests/visual/progressbar.html @@ -1,33 +1,21 @@ <!doctype html> <html lang="en"> <head> -<meta http-equiv="Content-Language" content="en" /> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery UI Progressbar Visual Tests</title> +<link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css" /> <script type="text/javascript" src="../../jquery-1.2.6.js"></script> <script type="text/javascript" src="../../ui/ui.core.js"></script> <script type="text/javascript" src="../../ui/ui.progressbar.js"></script> -<style type="text/css"> - .ui-progressbar { position: relative; height: 22px; border: 1px solid black; } - .ui-progressbar-labelalign-left { text-align: left; } - .ui-progressbar-labelalign-center { text-align: center; } - .ui-progressbar-labelalign-right { text-align: right; } - .ui-progressbar-label { color: black; } - .ui-progressbar-labelalign-left .ui-progressbar-label div { padding-left: 0.5em; } - .ui-progressbar-labelalign-right .ui-progressbar-label div { padding-right: 0.5em; } - .ui-progressbar-value { position: absolute; top: 0; background: gray; overflow: hidden; height: 100%; white-space: nowrap; } - .ui-progressbar-value .ui-progressbar-label { color: white; } -</style> - <script type="text/javascript"> $(function() { $("#progressbar1").progressbar({ value: 6 }); $("#progressbar2").progressbar({ labelAlign: 'center', label: 'center' }).progressbar("option", "value", 50); $("#progressbar3").progressbar().progressbar("option", "labelAlign", "right").progressbar("value", 90.73).data("label.progressbar", "right").progressbar("option", "label", true); - $("#progressbar4").progressbar().progressbar("destroy"); - $("#progressbar5").progressbar({ value: -10 }); - $("#progressbar6").progressbar().progressbar("value", 200); + $("#progressbar4").progressbar().progressbar("disable"); + $("#progressbar5").progressbar().progressbar("disable").progressbar("destroy"); + $("#progressbar6").progressbar({ value: -10 }); + $("#progressbar7").progressbar().progressbar("value", 200); }); </script> </head> @@ -45,6 +33,8 @@ <div id="progressbar5"></div> <br> <div id="progressbar6"></div> + <br> + <div id="progressbar7"></div> </body> </html> |