Bug 1410074: Load input.css from a chrome uri, so windows reftests can use system metric media queries. r?bz
This requires exposing the reftest chrome package to content, but that should be
OK, and this seems to work...
MozReview-Commit-ID: EWkwqTHW3dg
--- a/editor/reftests/xul/autocomplete-ref.xul
+++ b/editor/reftests/xul/autocomplete-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input class="ac" value=" test"/>
--- a/editor/reftests/xul/empty-ref.xul
+++ b/editor/reftests/xul/empty-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input class="empty" value=" test"/>
--- a/editor/reftests/xul/emptyautocomplete-ref.xul
+++ b/editor/reftests/xul/emptyautocomplete-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input class="ac"/>
--- a/editor/reftests/xul/emptymultiline-1.xul
+++ b/editor/reftests/xul/emptymultiline-1.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<textbox multiline="true"/>
--- a/editor/reftests/xul/emptymultiline-2.xul
+++ b/editor/reftests/xul/emptymultiline-2.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<textbox multiline="true" rows="10"/>
--- a/editor/reftests/xul/emptymultiline-ref.xul
+++ b/editor/reftests/xul/emptymultiline-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:textarea rows="10" style="resize: none;"/>
--- a/editor/reftests/xul/emptytextbox-ref.xul
+++ b/editor/reftests/xul/emptytextbox-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input/>
--- a/editor/reftests/xul/number-ref.xul
+++ b/editor/reftests/xul/number-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input value="0" class="num"/>
--- a/editor/reftests/xul/numberwithvalue-ref.xul
+++ b/editor/reftests/xul/numberwithvalue-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input value="123" class="num"/>
--- a/editor/reftests/xul/passwd-ref.xul
+++ b/editor/reftests/xul/passwd-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input type="password" value="test"/>
--- a/editor/reftests/xul/plain-ref.xul
+++ b/editor/reftests/xul/plain-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:div class="plainfield"> test</html:div>
--- a/editor/reftests/xul/textbox-ref.xul
+++ b/editor/reftests/xul/textbox-ref.xul
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
-<?xml-stylesheet href="input.css" type="text/css"?>
+<?xml-stylesheet href="chrome://reftest/content/input.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="Textbox tests">
<script type="text/javascript" src="platform.js"/>
<html:input value=" test"/>
--- a/layout/tools/reftest/jar.mn
+++ b/layout/tools/reftest/jar.mn
@@ -1,10 +1,11 @@
reftest.jar:
-% content reftest %content/
+% content reftest %content/ contentaccessible=yes
content/globals.jsm (globals.jsm)
content/reftest-content.js (reftest-content.js)
content/AsyncSpellCheckTestHelper.jsm (../../../editor/AsyncSpellCheckTestHelper.jsm)
content/httpd.jsm (../../../netwerk/test/httpserver/httpd.js)
content/StructuredLog.jsm (../../../testing/modules/StructuredLog.jsm)
+ content/input.css (../../../editor/reftests/xul/input.css)
* content/manifest.jsm (manifest.jsm)
* content/reftest.jsm (reftest.jsm)
content/reftest.xul (reftest.xul)