browser_drag_bookmarks_on_toolbar.js File Reference

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 Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

function synthesizeDragWithDirection (   aElement,
  aExpectedDragData,
  aDirection 
)

Tests dragging on toolbar.

We must test these 2 cases:

  • Dragging toward left, top, right should start a drag.
  • Dragging toward down should should open the container if the item is a container, drag the item otherwise.
Parameters
aElementDOM node element we will drag
aExpectedDragDataArray 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.
aDirectionDirection for the dragging gesture, see dragDirections helper object.

Definition at line 61 of file browser_drag_bookmarks_on_toolbar.js.

Here is the call graph for this function:

function test ( )

Definition at line 251 of file browser_drag_bookmarks_on_toolbar.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

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.