mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
Bug 1519577 Update test_bug467123 to not rely on button.xml r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D31936 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
31047338be
commit
e598f9c995
@ -4,6 +4,7 @@ support-files =
|
||||
blockNoPlugins.xml
|
||||
blockPluginHard.xml
|
||||
bug418986-1.js
|
||||
clonedoc/**
|
||||
cpows_child.js
|
||||
cpows_parent.xul
|
||||
file_bug549682.xul
|
||||
|
1
dom/base/test/chrome/clonedoc/chrome.manifest
Normal file
1
dom/base/test/chrome/clonedoc/chrome.manifest
Normal file
@ -0,0 +1 @@
|
||||
content clonedoc content/
|
4
dom/base/test/chrome/clonedoc/content/doc.xml
Normal file
4
dom/base/test/chrome/clonedoc/content/doc.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<something>
|
||||
<somethinglese/>
|
||||
</something>
|
@ -17,10 +17,20 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=467123
|
||||
|
||||
<!-- test code goes here -->
|
||||
<script type="application/javascript"><![CDATA[
|
||||
|
||||
/** Test for Bug 467123 **/
|
||||
let url = Cc["@mozilla.org/network/io-service;1"]
|
||||
.getService(Ci.nsIIOService)
|
||||
.newURI(document.location.href);
|
||||
let file = Cc["@mozilla.org/chrome/chrome-registry;1"]
|
||||
.getService(Ci.nsIChromeRegistry)
|
||||
.convertChromeURL(url)
|
||||
.QueryInterface(Ci.nsIFileURL)
|
||||
.file.parent;
|
||||
file.append("clonedoc");
|
||||
Components.manager.addBootstrappedManifestLocation(file);
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", "chrome://global/content/bindings/button.xml", false);
|
||||
xhr.open("GET", "chrome://clonedoc/content/doc.xml", false);
|
||||
xhr.send();
|
||||
ok(xhr.responseXML, "We should have response document!");
|
||||
var e = null;
|
||||
|
Loading…
Reference in New Issue
Block a user