Go to the source code of this file.
Functions | |
function | synthesizeDragWithDirection (aElement, aExpectedDragData, aDirection) |
function | getToolbarNodeForItemId (aItemId) |
function | getExpectedDataForPlacesNode (aNode) |
function | nextTest () |
function | test () |
Variables | |
const | TEST_URL = "http://www.mozilla.org" |
const | TEST_TITLE = "example_title" |
var | gBookmarksToolbar = window.document.getElementById("bookmarksBarContent") |
var | dragDirections = { LEFT: 0, UP: 1, RIGHT: 2, DOWN: 3 } |
var | gTests |
function getExpectedDataForPlacesNode | ( | aNode | ) |
Definition at line 159 of file browser_drag_bookmarks_on_toolbar.js.
function getToolbarNodeForItemId | ( | aItemId | ) |
Definition at line 147 of file browser_drag_bookmarks_on_toolbar.js.
function nextTest | ( | ) |
Definition at line 239 of file browser_drag_bookmarks_on_toolbar.js.
function synthesizeDragWithDirection | ( | aElement, | |
aExpectedDragData, | |||
aDirection | |||
) |
Tests dragging on toolbar.
We must test these 2 cases:
aElement | DOM node element we will drag |
aExpectedDragData | Array of flavors and values in the form: [ ["text/plain: sometext", "text/html: <b>sometext</b>"], [...] ] Pass an empty array to check that drag even has been canceled. |
aDirection | Direction for the dragging gesture, see dragDirections helper object. |
Definition at line 61 of file browser_drag_bookmarks_on_toolbar.js.
function test | ( | ) |
Definition at line 251 of file browser_drag_bookmarks_on_toolbar.js.
var dragDirections = { LEFT: 0, UP: 1, RIGHT: 2, DOWN: 3 } |
Definition at line 42 of file browser_drag_bookmarks_on_toolbar.js.
var gBookmarksToolbar = window.document.getElementById("bookmarksBarContent") |
Definition at line 41 of file browser_drag_bookmarks_on_toolbar.js.
var gTests |
Definition at line 175 of file browser_drag_bookmarks_on_toolbar.js.
const TEST_TITLE = "example_title" |
Definition at line 39 of file browser_drag_bookmarks_on_toolbar.js.
const TEST_URL = "http://www.mozilla.org" |
Definition at line 38 of file browser_drag_bookmarks_on_toolbar.js.