mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
943789da00
--HG-- extra : rebase_source : 1158df4a4eb917074204e649efd8f2b8e699f115
42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=317448
|
|
-->
|
|
<head>
|
|
<title>Test for Bug 317448</title>
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
</head>
|
|
<body>
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=317448">Mozilla Bug 317448</a>
|
|
<p id="display"></p>
|
|
<div id="content" style="display: none">
|
|
|
|
</div>
|
|
<pre id="test">
|
|
<script class="testbody" type="text/javascript">
|
|
|
|
/** Test for Bug 317448 **/
|
|
var x = new XMLHttpRequest();
|
|
x.open("GET", document.location.href);
|
|
x.send("");
|
|
is(x instanceof Components.interfaces.nsIInterfaceRequestor,
|
|
true, "Must be interface requestor");
|
|
|
|
var count = {};
|
|
var interfaces = SpecialPowers.wrap(x).
|
|
QueryInterface(Components.interfaces.nsIClassInfo).
|
|
getInterfaces(count).
|
|
map(function(id) {
|
|
id = SpecialPowers.wrap(id);
|
|
return SpecialPowers.wrap(Components).interfacesByID[id].toString();
|
|
});
|
|
isnot(interfaces.indexOf("nsIInterfaceRequestor"), "-1",
|
|
"Must have interface requestor classinfo");
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|
|
|