diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-05 01:11:28 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-05 01:11:28 +0000 |
commit | 0c61abfa12624ed5359acd2957b9bed3a839b44d (patch) | |
tree | 85f196682ab6627309dd7892c6c8e471e8868124 /third_party/webdriver/test_data/droppableItems.html | |
parent | 434f98fe56928cc05a15d9ff9678d81b26812cf3 (diff) | |
download | chromium_src-0c61abfa12624ed5359acd2957b9bed3a839b44d.zip chromium_src-0c61abfa12624ed5359acd2957b9bed3a839b44d.tar.gz chromium_src-0c61abfa12624ed5359acd2957b9bed3a839b44d.tar.bz2 |
Manually add necessary test data for webdriver python tests.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6250071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/webdriver/test_data/droppableItems.html')
-rw-r--r-- | third_party/webdriver/test_data/droppableItems.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/third_party/webdriver/test_data/droppableItems.html b/third_party/webdriver/test_data/droppableItems.html new file mode 100644 index 0000000..0f8c3dc --- /dev/null +++ b/third_party/webdriver/test_data/droppableItems.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8" /> + <title>jQuery UI Droppable - Default Demo</title> + <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.1.custom.css" rel="stylesheet" /> + <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> + <script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"></script> + <style type="text/css"> + #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; } + #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; } + </style> + <script type="text/javascript"> + $(function() { + $("#draggable").draggable(); + $("#droppable").droppable({ + drop: function(event, ui) { + $(this).addClass('ui-state-highlight').find('p').html('Dropped!'); + } + }); + + var report_event = function(report_text) { + var reportElement = $("#drop_reports"); + var origText = reportElement.text(); + reportElement.text(origText + " " + report_text); + } + + $('body').mousedown(function() { + report_event('down'); + }); + + $('body').mousemove(function() { + report_event('move'); + }); + + $('body').mouseup(function() { + report_event('up'); + }); + }); + </script> +</head> +<body> +<div class="demo"> + +<div id="draggable" class="ui-widget-content"> + <p>Drag me to my target</p> +</div> + +<div id="droppable" class="ui-widget-header"> + <p>Drop here</p> +</div> + +<div class="test-data"> + <p id="drop_reports">start</p> +</div> + +</div><!-- End demo --> + +<div class="demo-description"> + +<p>Taken from the JQuery demo.</p> + +</div><!-- End demo-description --> +</body> +</html> |