mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Auto merge of #10204 - awalGarg:fix10161, r=Manishearth
Allow setting preferences to false in WPT tests First patch to servo - apologies if I did something stupid :) This is a fix for #10161. I have squashed the commits into one. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10204) <!-- Reviewable:end -->
This commit is contained in:
commit
4cb626ae29
7 changed files with 38 additions and 3 deletions
|
@ -6180,6 +6180,12 @@
|
|||
"url": "/_mozilla/mozilla/parentnodes.html"
|
||||
}
|
||||
],
|
||||
"mozilla/preferences.html": [
|
||||
{
|
||||
"path": "mozilla/preferences.html",
|
||||
"url": "/_mozilla/mozilla/preferences.html"
|
||||
}
|
||||
],
|
||||
"mozilla/preserve_wrapper_callback.html": [
|
||||
{
|
||||
"path": "mozilla/preserve_wrapper_callback.html",
|
||||
|
|
3
tests/wpt/mozilla/meta/mozilla/preferences.html.ini
Normal file
3
tests/wpt/mozilla/meta/mozilla/preferences.html.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
[preferences.html]
|
||||
type: testharness
|
||||
prefs: [dom.testbinding.preference_value.falsy:false, dom.testbinding.preference_value.truthy:true]
|
13
tests/wpt/mozilla/tests/mozilla/preferences.html
Normal file
13
tests/wpt/mozilla/tests/mozilla/preferences.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(function() {
|
||||
var testBinding = new TestBinding();
|
||||
assert_equals(typeof testBinding.BooleanMozPreference, "function");
|
||||
assert_equals(testBinding.BooleanMozPreference("dom.testbinding.preference_value.falsy"), false);
|
||||
assert_equals(testBinding.BooleanMozPreference("dom.testbinding.preference_value.truthy"), true);
|
||||
}, "prefs");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue