Skip to content
Browse files

test visual slider: new test - Slider in container with scrollbars

  • Loading branch information
rdworth committed Jan 28, 2009
1 parent b80bf5a commit 43115285fc28bd9a29b53928a9008e7815bfe76c
Showing with 40 additions and 0 deletions.
  1. +40 −0 tests/visual/slider/slider_in_container_with_scrollbars.html
@@ -0,0 +1,40 @@
<!doctype html>
<html lang="en">
<title>Slider Visual Test : Slider in container with scrollbars</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
<script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
<script type="text/javascript" src="../../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../../ui/ui.slider.js"></script>
<script type="text/javascript">
$(function() {
$("#slider").slider({ value: 50 });

TEST: press UP, DOWN, LEFT, RIGHT, HOME, END on a slider which is inside a container with scrollbars.

<div style="width: 200px; height: 150px; overflow:scroll;">

<div style="width: 220px; height: 180px;">

<div style="width: 100px; margin-left: 40px; margin-top: 60px;" id="slider"></div>



ASSERT: the scrollbars do not move when the focus is on the slider handle and an arrow key or HOME or END are pressed.
ASSERT: the scrollbars move when the focus is not on the slider handle and an arrow key or HOME or END are pressed.


0 comments on commit 4311528

Please sign in to comment.
You can’t perform that action at this time.