mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1154679
- Part 2: Remove the usage of is_loosely from test_dragstart.html; r=Ms2ger
This commit is contained in:
parent
8770eaec61
commit
a59f91a75d
@ -205,7 +205,7 @@ function test_DataTransfer(dt)
|
||||
var draggable = $("draggable");
|
||||
dt.setData("application/-moz-node", draggable);
|
||||
checkOneDataItem(dt, ["text/plain", "text/html", "application/-moz-node"],
|
||||
["New Text", "<strong>Modified Text</strong>", draggable],
|
||||
["New Text", "<strong>Modified Text</strong>", draggable.toString()],
|
||||
0, "added node");
|
||||
|
||||
dt.clearData(""); // null means clear all
|
||||
@ -501,8 +501,8 @@ function checkOneDataItem(dt, expectedtypes, expecteddata, index, testid)
|
||||
checkTypes(dt, expectedtypes, index, testid);
|
||||
for (var f = 0; f < expectedtypes.length; f++) {
|
||||
if (index == 0)
|
||||
is_loosely(dt.getData(expectedtypes[f]), expecteddata[f], testid + " getData " + expectedtypes[f]);
|
||||
is_loosely(dt.mozGetDataAt(expectedtypes[f], index), expecteddata[f] ? expecteddata[f] : null,
|
||||
is(dt.getData(expectedtypes[f]), expecteddata[f], testid + " getData " + expectedtypes[f]);
|
||||
is(dt.mozGetDataAt(expectedtypes[f], index), expecteddata[f] ? expecteddata[f] : null,
|
||||
testid + " getDataAt " + expectedtypes[f]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user