mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 06:37:30 +09:00
Bug 1351193 - Update tests
This commit is contained in:
parent
6e67c59787
commit
cbb7e5262c
3 changed files with 2 additions and 17 deletions
|
|
@ -172,7 +172,7 @@ function test()
|
||||||
|
|
||||||
// Check that DataTransfer's .types has the hack to alias contains()
|
// Check that DataTransfer's .types has the hack to alias contains()
|
||||||
// to includes().
|
// to includes().
|
||||||
var dataTransfer = new win.DataTransfer("foo", true);
|
var dataTransfer = new win.DataTransfer();
|
||||||
is(dataTransfer.types.contains, dataTransfer.types.includes,
|
is(dataTransfer.types.contains, dataTransfer.types.includes,
|
||||||
"Should have contains() set up as an alias to includes()");
|
"Should have contains() set up as an alias to includes()");
|
||||||
// Waive Xrays on the dataTransfer itself, since the .types we get is
|
// Waive Xrays on the dataTransfer itself, since the .types we get is
|
||||||
|
|
|
||||||
|
|
@ -1594,9 +1594,6 @@
|
||||||
[Path2D interface: operation addPathByStrokingText(DOMString,CanvasDrawingStyles,SVGMatrix,Path2D,unrestricted double)]
|
[Path2D interface: operation addPathByStrokingText(DOMString,CanvasDrawingStyles,SVGMatrix,Path2D,unrestricted double)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DataTransfer interface object length]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Window interface: operation showModalDialog(DOMString,any)]
|
[Window interface: operation showModalDialog(DOMString,any)]
|
||||||
disabled:
|
disabled:
|
||||||
if e10s: https://bugzilla.mozilla.org/show_bug.cgi?id=981796
|
if e10s: https://bugzilla.mozilla.org/show_bug.cgi?id=981796
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ function dropOnRemoteBrowserAsync(browser, data, shouldExpectStateChange) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let dataTransfer = new content.DataTransfer("dragstart", false);
|
let dataTransfer = new content.DataTransfer();
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
let types = data[i];
|
let types = data[i];
|
||||||
for (let j = 0; j < types.length; j++) {
|
for (let j = 0; j < types.length; j++) {
|
||||||
|
|
@ -166,18 +166,6 @@ function* dropLinksOnBrowser(browser, type) {
|
||||||
data: "http://www.mozilla.org/\nMozilla.org\nhttp://www.example.com/\nExample.com" } ] ],
|
data: "http://www.mozilla.org/\nMozilla.org\nhttp://www.example.com/\nExample.com" } ] ],
|
||||||
"text/x-moz-url with 2 URLs drop on browser " + type);
|
"text/x-moz-url with 2 URLs drop on browser " + type);
|
||||||
|
|
||||||
// Dropping multiple items should open multiple pages.
|
|
||||||
yield* expectLink(browser,
|
|
||||||
[ { url: "http://www.example.com/",
|
|
||||||
name: "Example.com" },
|
|
||||||
{ url: "http://www.mozilla.org/",
|
|
||||||
name: "http://www.mozilla.org/" }],
|
|
||||||
[ [ { type: "text/x-moz-url",
|
|
||||||
data: "http://www.example.com/\nExample.com" } ],
|
|
||||||
[ { type: "text/plain",
|
|
||||||
data: "http://www.mozilla.org/" } ] ],
|
|
||||||
"text/x-moz-url and text/plain drop on browser " + type);
|
|
||||||
|
|
||||||
// Dropping single item with multiple types should open single page.
|
// Dropping single item with multiple types should open single page.
|
||||||
yield* expectLink(browser,
|
yield* expectLink(browser,
|
||||||
[ { url: "http://www.example.org/",
|
[ { url: "http://www.example.org/",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue