]> source.dussan.org Git - jquery-ui.git/commitdiff
test visual slider: new test - Slider in container with scrollbars
authorRichard Worth <rdworth@gmail.com>
Wed, 28 Jan 2009 13:58:55 +0000 (13:58 +0000)
committerRichard Worth <rdworth@gmail.com>
Wed, 28 Jan 2009 13:58:55 +0000 (13:58 +0000)
tests/visual/slider/slider_in_container_with_scrollbars.html [new file with mode: 0644]

diff --git a/tests/visual/slider/slider_in_container_with_scrollbars.html b/tests/visual/slider/slider_in_container_with_scrollbars.html
new file mode 100644 (file)
index 0000000..9968c21
--- /dev/null
@@ -0,0 +1,40 @@
+<!doctype html>\r
+<html lang="en">\r
+<head>\r
+       <title>Slider Visual Test : Slider in container with scrollbars</title>\r
+       <link rel="stylesheet" href="../visual.css" type="text/css" />\r
+       <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">\r
+       <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>\r
+       <script type="text/javascript" src="../../../ui/ui.core.js"></script>\r
+       <script type="text/javascript" src="../../../ui/ui.slider.js"></script>\r
+       <script type="text/javascript">\r
+       $(function() {\r
+               $("#slider").slider({ value: 50 });\r
+       });\r
+       </script>\r
+</head>\r
+<body>\r
+\r
+<h1>\r
+TEST: press UP, DOWN, LEFT, RIGHT, HOME, END on a slider which is inside a container with scrollbars.\r
+</h1>\r
+\r
+<div style="width: 200px; height: 150px; overflow:scroll;">\r
+\r
+<div style="width: 220px; height: 180px;">\r
+\r
+<div style="width: 100px; margin-left: 40px; margin-top: 60px;" id="slider"></div>\r
+\r
+</div>\r
+\r
+</div>\r
+\r
+<h2>\r
+ASSERT: the scrollbars do not move when the focus is on the slider handle and an arrow key or HOME or END are pressed.\r
+</h2>\r
+<h2>\r
+ASSERT: the scrollbars move when the focus is not on the slider handle and an arrow key or HOME or END are pressed.\r
+</h2>\r
+\r
+</body>\r
+</html>\r