Skip to content
Permalink
Browse files

draggable unit tests: added option iframeFix tests

  • Loading branch information
rdworth committed Feb 7, 2009
1 parent b3702cf commit fb7f7fc393c2544f87395200578bee7895d49c71
@@ -1,8 +1,8 @@
<!doctype html>
<html lang="en">
<head>
<title>Simple Draggable</title>
<link rel="stylesheet" href="../all.css" type="text/css">
<title>Draggable Visual Test : Default</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>
@@ -14,13 +14,8 @@
</script>
</head>
<body>

<ul class="plugins">
<li class="plugin">
Draggable
<div id="draggable"></div>
</li>
</ul>

<div id="draggable">
<p> Draggable </p>
</div>
</body>
</html>
@@ -9,7 +9,6 @@
<script type="text/javascript" src="../../../ui/ui.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").css({ width: 100, height: 100, background: '#abc' });
$("#draggable").draggable({
containment: [50, 100, 400, 350]
});
@@ -9,7 +9,6 @@
<script type="text/javascript" src="../../../ui/ui.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").css({ width: 100, height: 100, background: '#abc' });
$("#draggable").draggable({
cursorAt: { top: -15, right: 15 }
});
@@ -9,7 +9,6 @@
<script type="text/javascript" src="../../../ui/ui.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").css({ width: 100, height: 100, background: '#abc' });
$("#draggable").draggable({
handle: ".handle"
});
@@ -0,0 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<title>Draggable Visual Test : Draggable option iframeFix false</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.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").draggable({
cursorAt: { top: -10, left: -10 },
iframeFix: false
});
});
</script>
</head>
<body>
<div id="draggable">
<p> Draggable </p>
</div>
<iframe id="iframe1"></iframe>
<iframe id="iframe2"></iframe>
<iframe id="iframe3"></iframe>
</body>
</html>
@@ -0,0 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<title>Draggable Visual Test : Draggable option iframeFix selector</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.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").draggable({
cursorAt: { top: -10, left: -10 },
iframeFix: "#iframe2"
});
});
</script>
</head>
<body>
<div id="draggable">
<p> Draggable </p>
</div>
<iframe id="iframe1"></iframe>
<iframe id="iframe2"></iframe>
<iframe id="iframe3"></iframe>
</body>
</html>
@@ -1,17 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<title>Draggable Visual Test : Draggable option cursorAt array</title>
<title>Draggable Visual Test : Draggable option iframeFix true</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.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").css({ width: 100, height: 100, background: '#abc' });
$("#draggable").draggable({
cursorAt: [5, -5]
cursorAt: { top: -10, left: -10 },
iframeFix: true
});
});
</script>
@@ -20,5 +20,8 @@
<div id="draggable">
<p> Draggable </p>
</div>
<iframe id="iframe1"></iframe>
<iframe id="iframe2"></iframe>
<iframe id="iframe3"></iframe>
</body>
</html>

0 comments on commit fb7f7fc

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