jquery-ui/tests/visual/draggable/replaced.html
Jörn Zaefferer b698f809de Tests: Use demo bootstrap for visual tests
Adds a data-composite option and fixes paths for effects. Otherwise
just applies the same conversion as already applied to demos, sometimes
moving a <style> element to the right place.
2015-09-30 17:55:20 +02:00

33 lines
701 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Draggable Visual Test</title>
<link rel="stylesheet" href="../../../themes/base/all.css">
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../demos/bootstrap.js">
$( "#draggable" )
.draggable()
.on( "mousedown", function() {
$( this ).html( "<div>replaced</div>" );
});
</script>
<style>
#draggable {
background: green;
height: 75px;
width: 75px;
}
</style>
</head>
<body>
<p>WHAT: A draggable, whose content is replaced onmousedown.</p>
<p>EXPECTED: In IE8, the draggable can actually be dragged.</p>
<div id="draggable"><div>content</div></div>
</body>
</html>