browser_drag.js
Go to the documentation of this file.
1 function test()
2 {
3  // ---- Test dragging the proxy icon ---
4 
5  var value = content.location.href;
6  var urlString = value + "\n" + content.document.title;
7  var htmlString = "<a href=\"" + value + "\">" + value + "</a>";
8 
9  var expected = [ [
10  "text/x-moz-url: " + urlString,
11  "text/uri-list: " + value,
12  "text/plain: " + value,
13  "text/html: " + htmlString
14  ] ];
15 
16  // set the valid attribute so dropping is allowed
17  var proxyicon = document.getElementById("page-proxy-favicon")
18  var oldstate = proxyicon.getAttribute("pageproxystate");
19  proxyicon.setAttribute("pageproxystate", "valid");
20  var dt = EventUtils.synthesizeDragStart(proxyicon, expected);
21  is(dt, null, "drag on proxy icon");
22  proxyicon.setAttribute("pageproxystate", oldstate);
23 }
function test()
Definition: browser_drag.js:1
return null
Definition: FeedWriter.js:1143
var expected
countRef value
Definition: FeedWriter.js:1423