зеркало из https://github.com/mozilla/pjs.git
Bug 471700 - reftest for native-widgets fail for fennec, but pass in firefox [r=dbaron]
This commit is contained in:
Родитель
4a731e85b7
Коммит
0cc1cbbde8
|
@ -11,19 +11,19 @@
|
|||
|
||||
# The following tests will fail if the platform does not have native
|
||||
# theme support (which all platforms should have).
|
||||
!= text-input-native.html text-input-nonnative.html
|
||||
fails-if(!nativeThemePref) != text-input-native.html text-input-nonnative.html
|
||||
== text-input-nonnative-when-styled.html text-input-nonnative-when-styled-ref.html
|
||||
!= textarea-native.html textarea-nonnative.html
|
||||
fails-if(!nativeThemePref) != textarea-native.html textarea-nonnative.html
|
||||
== textarea-nonnative-when-styled.html textarea-nonnative-when-styled-ref.html
|
||||
!= button-native.html button-nonnative.html
|
||||
fails-if(!nativeThemePref) != button-native.html button-nonnative.html
|
||||
== button-nonnative-when-styled.html button-nonnative-when-styled-ref.html
|
||||
!= combobox-native.html combobox-nonnative.html
|
||||
fails-if(!nativeThemePref) != combobox-native.html combobox-nonnative.html
|
||||
== combobox-nonnative-when-styled.html combobox-nonnative-when-styled-ref.html
|
||||
!= listbox-native.html listbox-nonnative.html
|
||||
fails-if(!nativeThemePref) != listbox-native.html listbox-nonnative.html
|
||||
== listbox-nonnative-when-styled.html listbox-nonnative-when-styled-ref.html
|
||||
!= radio-native.html radio-nonnative.html
|
||||
fails-if(!nativeThemePref) != radio-native.html radio-nonnative.html
|
||||
== radio-still-native-when-styled.html radio-still-native-when-styled-ref.html
|
||||
!= checkbox-native.html checkbox-nonnative.html
|
||||
fails-if(!nativeThemePref) != checkbox-native.html checkbox-nonnative.html
|
||||
== checkbox-still-native-when-styled.html checkbox-still-native-when-styled-ref.html
|
||||
== native-theme-disabled-cascade-levels.html native-theme-disabled-cascade-levels-ref.html
|
||||
|
||||
|
@ -41,7 +41,7 @@ skip-if(MOZ_WIDGET_TOOLKIT!="windows") != 403458-winmenu-ltr.xul 403458-winmenu-
|
|||
== 492155-3.html about:blank
|
||||
!= 492155-4.html about:blank
|
||||
|
||||
== box-shadow-styling.html box-shadow-styling-ref.html
|
||||
fails-if(!nativeThemePref) == box-shadow-styling.html box-shadow-styling-ref.html
|
||||
|
||||
# RTL mirroring tests
|
||||
== checkbox-not-mirrored-when-rtl.html checkbox-not-mirrored-when-rtl-ref.html
|
||||
|
|
|
@ -312,6 +312,14 @@ function ReadManifest(aURL)
|
|||
sandbox.windowsDefaultTheme = (getComputedStyle(box, null).display == "none");
|
||||
document.documentElement.removeChild(box);
|
||||
|
||||
var prefs = CC["@mozilla.org/preferences-service;1"].
|
||||
getService(CI.nsIPrefBranch2);
|
||||
try {
|
||||
sandbox.nativeThemePref = !prefs.getBoolPref("mozilla.widget.disable-native-theme");
|
||||
} catch (e) {
|
||||
sandbox.nativeThemePref = true;
|
||||
}
|
||||
|
||||
var line = {value:null};
|
||||
var lineNo = 0;
|
||||
var urlprefix = "";
|
||||
|
|
Загрузка…
Ссылка в новой задаче