mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update web-platform-tests to revision 755d18230983e9c7d894768b73fabff8bc290d91
This commit is contained in:
parent
d544c186b9
commit
fa788e624b
70 changed files with 1929 additions and 380 deletions
|
@ -3,6 +3,6 @@ mozinfo==1.1.0
|
|||
mozlog==4.1
|
||||
mozdebug==0.1.1
|
||||
pillow==6.0.0
|
||||
urllib3[secure]==1.25.2
|
||||
urllib3[secure]==1.25.3
|
||||
requests==2.22.0
|
||||
six>=1.8
|
||||
six==1.12.0
|
||||
|
|
|
@ -257,6 +257,25 @@ class MarionettePrefsProtocolPart(PrefsProtocolPart):
|
|||
case prefInterface.PREF_INT:
|
||||
prefInterface.setIntPref(pref, value);
|
||||
break;
|
||||
case prefInterface.PREF_INVALID:
|
||||
// Pref doesn't seem to be defined already; guess at the
|
||||
// right way to set it based on the type of value we have.
|
||||
switch (typeof value) {
|
||||
case "boolean":
|
||||
prefInterface.setBoolPref(pref, value);
|
||||
break;
|
||||
case "string":
|
||||
prefInterface.setCharPref(pref, value);
|
||||
break;
|
||||
case "number":
|
||||
prefInterface.setIntPref(pref, value);
|
||||
break;
|
||||
default:
|
||||
throw new Error("Unknown pref value type: " + (typeof value));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new Error("Unknown pref type " + type);
|
||||
}
|
||||
""" % (name, value)
|
||||
with self.marionette.using_context(self.marionette.CONTEXT_CHROME):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue