Bug 572999 Make reftest recognize Solaris r=roc
authorGinn Chen <ginn.chen@sun.com>
Wed, 23 Jun 2010 17:33:21 +0800
changeset 44180 8f05ab3aa1983a7ab98961d83cf0f54001dd569f
parent 44179 4d97792b680637be04889622f41a769b9e42ec83
child 44181 65bfcf60a068124a8e1fa62c4807cb12a3c66951
push id14012
push userginn.chen@sun.com
push dateWed, 23 Jun 2010 09:37:55 +0000
treeherdermozilla-central@8f05ab3aa198 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs572999
milestone1.9.3a6pre
first release with
nightly linux32
8f05ab3aa198 / 3.7a6pre / 20100623031011 / files
nightly linux64
8f05ab3aa198 / 3.7a6pre / 20100623031246 / files
nightly mac
8f05ab3aa198 / 3.7a6pre / 20100623031248 / files
nightly win32
8f05ab3aa198 / 3.7a6pre / 20100623040215 / files
nightly win64
8f05ab3aa198 / 3.7a6pre / 20100623034025 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 572999 Make reftest recognize Solaris r=roc
layout/reftests/editor/xul/platform.js
modules/libpr0n/test/reftest/pngsuite-ancillary/qcms-asm-check.js
--- a/layout/reftests/editor/xul/platform.js
+++ b/layout/reftests/editor/xul/platform.js
@@ -5,16 +5,18 @@
 
 var id;
 var ua = navigator.userAgent;
 
 if (/Windows/.test(ua))
   id = "win";
 else if (/Linux/.test(ua))
   id = "linux";
+else if (/SunOS/.test(ua))
+  id = "linux";
 else if (/Mac OS X/.test(ua))
   id = "mac";
 
 if (id)
   document.documentElement.setAttribute("id", id);
 else
   document.documentElement.appendChild(
     document.createTextNode("Unrecognized platform")
--- a/modules/libpr0n/test/reftest/pngsuite-ancillary/qcms-asm-check.js
+++ b/modules/libpr0n/test/reftest/pngsuite-ancillary/qcms-asm-check.js
@@ -13,16 +13,16 @@ function check_qcms_has_assembly()
     if (navigator.platform == "Win32" || navigator.platform == "OS/2") {
         // Assume all Windows and OS/2 is x86 or x86_64.  We don't
         // expose any way for Web content to check.
         return true;
     }
 
     // On most Unix-like platforms, navigator.platform is basically
     // |uname -sm|.
-    if (navigator.platform.match(/(i[3456]86|x86_64|amd64)/)) {
+    if (navigator.platform.match(/(i[3456]86|x86_64|amd64|i86)/)) {
         return true;
     }
 
     return false;
 }
 
 var qcms_has_assembly = check_qcms_has_assembly();