Bug 1410074: Load input.css from a chrome uri, so windows reftests can use system metric media queries. r?bz draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 06 Oct 2017 20:16:43 +0200
changeset 686864 a53d7991e5c8fbcd66bffd3dad60a6e6c6d93737
parent 686863 4f9fdb0411beac0e754871994b7e1c6f3ffa0231
child 686961 8f7dc783365197d8b5294642577586189fa21842
push id86327
push userbmo:emilio@crisal.io
push dateThu, 26 Oct 2017 14:40:02 +0000
reviewersbz
bugs1410074
milestone58.0a1
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
editor/reftests/xul/autocomplete-ref.xul
editor/reftests/xul/empty-ref.xul
editor/reftests/xul/emptyautocomplete-ref.xul
editor/reftests/xul/emptymultiline-1.xul
editor/reftests/xul/emptymultiline-2.xul
editor/reftests/xul/emptymultiline-ref.xul
editor/reftests/xul/emptytextbox-ref.xul
editor/reftests/xul/number-ref.xul
editor/reftests/xul/numberwithvalue-ref.xul
editor/reftests/xul/passwd-ref.xul
editor/reftests/xul/plain-ref.xul
editor/reftests/xul/textbox-ref.xul
layout/tools/reftest/jar.mn
--- 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)