mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 22:44:13 +00:00
Bug 771224 - use chrome:// instead of loading remote xul. r=jgriffin
This commit is contained in:
parent
4dfabffcbe
commit
0647850ec7
@ -15,4 +15,8 @@ ifdef ENABLE_MARIONETTE
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
ifdef ENABLE_TESTS
|
||||
DEFINES += -DENABLE_TESTS
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -16,6 +16,6 @@
|
||||
<textbox id="textInput3" class="asdf" size="6" value="test" label="input" />
|
||||
</vbox>
|
||||
|
||||
<iframe id="iframe" name="iframename" src="test2.xul"/>
|
||||
<iframe id="iframe" name="iframename" src="test_nested_iframe.xul"/>
|
||||
<iframe id="iframe" name="iframename" src="chrome://marionette/content/test2.xul"/>
|
||||
<iframe id="iframe" name="iframename" src="chrome://marionette/content/test_nested_iframe.xul"/>
|
||||
</dialog>
|
@ -20,8 +20,7 @@ class GeckoInstance(object):
|
||||
def start(self):
|
||||
profile = self.profile
|
||||
if not profile:
|
||||
prefs = {"dom.allow_XUL_XBL_for_file": True,
|
||||
"marionette.defaultPrefs.enabled": True,
|
||||
prefs = {"marionette.defaultPrefs.enabled": True,
|
||||
"marionette.defaultPrefs.port": 2828}
|
||||
profile = {"preferences": prefs, "restore":False}
|
||||
print "starting runner"
|
||||
|
@ -24,12 +24,7 @@ class TestClickChrome(MarionetteTestCase):
|
||||
MarionetteTestCase.setUp(self)
|
||||
self.marionette.set_context("chrome")
|
||||
self.win = self.marionette.get_window()
|
||||
#need to get the file:// path for xul
|
||||
unit = os.path.abspath(os.path.join(os.path.realpath(__file__), os.path.pardir))
|
||||
tests = os.path.abspath(os.path.join(unit, os.path.pardir))
|
||||
mpath = os.path.abspath(os.path.join(tests, os.path.pardir))
|
||||
xul = "file://" + os.path.join(mpath, "www", "test.xul")
|
||||
self.marionette.execute_script("window.open('" + xul +"', '_blank', 'chrome,centerscreen');")
|
||||
self.marionette.execute_script("window.open('chrome://marionette/content/test.xul', '_blank', 'chrome,centerscreen');")
|
||||
|
||||
def tearDown(self):
|
||||
self.marionette.execute_script("window.close();")
|
||||
|
@ -27,12 +27,7 @@ class TestStateChrome(MarionetteTestCase):
|
||||
MarionetteTestCase.setUp(self)
|
||||
self.marionette.set_context("chrome")
|
||||
self.win = self.marionette.get_window()
|
||||
#need to get the file:// path for xul
|
||||
unit = os.path.abspath(os.path.join(os.path.realpath(__file__), os.path.pardir))
|
||||
tests = os.path.abspath(os.path.join(unit, os.path.pardir))
|
||||
mpath = os.path.abspath(os.path.join(tests, os.path.pardir))
|
||||
xul = "file://" + os.path.join(mpath, "www", "test.xul")
|
||||
self.marionette.execute_script("window.open('" + xul +"', '_blank', 'chrome,centerscreen');")
|
||||
self.marionette.execute_script("window.open('chrome://marionette/content/test.xul', '_blank', 'chrome,centerscreen');")
|
||||
|
||||
def tearDown(self):
|
||||
self.marionette.execute_script("window.close();")
|
||||
|
@ -128,12 +128,7 @@ class TestElementsChrome(MarionetteTestCase):
|
||||
MarionetteTestCase.setUp(self)
|
||||
self.marionette.set_context("chrome")
|
||||
self.win = self.marionette.get_window()
|
||||
#need to get the file:// path for xul
|
||||
unit = os.path.abspath(os.path.join(os.path.realpath(__file__), os.path.pardir))
|
||||
tests = os.path.abspath(os.path.join(unit, os.path.pardir))
|
||||
mpath = os.path.abspath(os.path.join(tests, os.path.pardir))
|
||||
xul = "file://" + os.path.join(mpath, "www", "test.xul")
|
||||
self.marionette.execute_script("window.open('" + xul +"', '_blank', 'chrome,centerscreen');")
|
||||
self.marionette.execute_script("window.open('chrome://marionette/content/test.xul', '_blank', 'chrome,centerscreen');")
|
||||
|
||||
def tearDown(self):
|
||||
self.marionette.execute_script("window.close();")
|
||||
|
@ -17,12 +17,7 @@ class TestGetAttributeChrome(MarionetteTestCase):
|
||||
MarionetteTestCase.setUp(self)
|
||||
self.marionette.set_context("chrome")
|
||||
self.win = self.marionette.get_window()
|
||||
#need to get the file:// path for xul
|
||||
unit = os.path.abspath(os.path.join(os.path.realpath(__file__), os.path.pardir))
|
||||
tests = os.path.abspath(os.path.join(unit, os.path.pardir))
|
||||
mpath = os.path.abspath(os.path.join(tests, os.path.pardir))
|
||||
xul = "file://" + os.path.join(mpath, "www", "test.xul")
|
||||
self.marionette.execute_script("window.open('" + xul +"', '_blank', 'chrome,centerscreen');")
|
||||
self.marionette.execute_script("window.open('chrome://marionette/content/test.xul', '_blank', 'chrome,centerscreen');")
|
||||
|
||||
def tearDown(self):
|
||||
self.marionette.execute_script("window.close();")
|
||||
|
@ -19,12 +19,7 @@ class TestSelectedChrome(MarionetteTestCase):
|
||||
MarionetteTestCase.setUp(self)
|
||||
self.marionette.set_context("chrome")
|
||||
self.win = self.marionette.get_window()
|
||||
#need to get the file:// path for xul
|
||||
unit = os.path.abspath(os.path.join(os.path.realpath(__file__), os.path.pardir))
|
||||
tests = os.path.abspath(os.path.join(unit, os.path.pardir))
|
||||
mpath = os.path.abspath(os.path.join(tests, os.path.pardir))
|
||||
xul = "file://" + os.path.join(mpath, "www", "test.xul")
|
||||
self.marionette.execute_script("window.open('" + xul +"', '_blank', 'chrome,centerscreen');")
|
||||
self.marionette.execute_script("window.open('chrome://marionette/content/test.xul', '_blank', 'chrome,centerscreen');")
|
||||
|
||||
def tearDown(self):
|
||||
self.marionette.execute_script("window.close();")
|
||||
|
@ -37,12 +37,7 @@ class TestSwitchFrameChrome(MarionetteTestCase):
|
||||
MarionetteTestCase.setUp(self)
|
||||
self.marionette.set_context("chrome")
|
||||
self.win = self.marionette.get_window()
|
||||
#need to get the file:// path for xul
|
||||
unit = os.path.abspath(os.path.join(os.path.realpath(__file__), os.path.pardir))
|
||||
tests = os.path.abspath(os.path.join(unit, os.path.pardir))
|
||||
mpath = os.path.abspath(os.path.join(tests, os.path.pardir))
|
||||
xul = "file://" + os.path.join(mpath, "www", "test.xul")
|
||||
self.marionette.execute_script("window.open('" + xul +"', '_blank', 'chrome,centerscreen');")
|
||||
self.marionette.execute_script("window.open('chrome://marionette/content/test.xul', '_blank', 'chrome,centerscreen');")
|
||||
|
||||
def tearDown(self):
|
||||
self.marionette.execute_script("window.close();")
|
||||
|
@ -33,12 +33,7 @@ class TestTextChrome(MarionetteTestCase):
|
||||
MarionetteTestCase.setUp(self)
|
||||
self.marionette.set_context("chrome")
|
||||
self.win = self.marionette.get_window()
|
||||
#need to get the file:// path for xul
|
||||
unit = os.path.abspath(os.path.join(os.path.realpath(__file__), os.path.pardir))
|
||||
tests = os.path.abspath(os.path.join(unit, os.path.pardir))
|
||||
mpath = os.path.abspath(os.path.join(tests, os.path.pardir))
|
||||
xul = "file://" + os.path.join(mpath, "www", "test.xul")
|
||||
self.marionette.execute_script("window.open('" + xul +"', '_blank', 'chrome,centerscreen');")
|
||||
self.marionette.execute_script("window.open('chrome://marionette/content/test.xul', '_blank', 'chrome,centerscreen');")
|
||||
|
||||
def tearDown(self):
|
||||
self.marionette.execute_script("window.close();")
|
||||
|
@ -12,6 +12,11 @@ marionette.jar:
|
||||
content/marionette-perf.js (marionette-perf.js)
|
||||
content/EventUtils.js (EventUtils.js)
|
||||
content/ChromeUtils.js (ChromeUtils.js)
|
||||
#ifdef ENABLE_TESTS
|
||||
content/test.xul (client/marionette/chrome/test.xul)
|
||||
content/test2.xul (client/marionette/chrome/test2.xul)
|
||||
content/test_nested_iframe.xul (client/marionette/chrome/test_nested_iframe.xul)
|
||||
#endif
|
||||
|
||||
% content specialpowers %content/
|
||||
content/specialpowers.js (../mochitest/specialpowers/content/specialpowers.js)
|
||||
|
Loading…
x
Reference in New Issue
Block a user