dom: Convert parent dictionary values when converting dictionaries to JS.

This commit is contained in:
Josh Matthews 2020-06-15 17:27:47 -04:00
parent a34d1573b6
commit edf86d1bdc
7 changed files with 57 additions and 4 deletions

View file

@ -0,0 +1,2 @@
[dictionary_to_jsval.html]
prefs: [dom.testbinding.enabled:true]

View file

@ -13357,6 +13357,13 @@
{}
]
],
"dictionary_to_jsval.html": [
"e31a7e5cfaa0635d41ab2adac96318b574c58a10",
[
null,
{}
]
],
"documentElement.html": [
"aee3278ba84ca12a77286a1c03dbaec9fc3a7cd0",
[

View file

@ -0,0 +1,2 @@
[dictionary_to_jsval.html]
prefs: [dom.testbinding.enabled:true]

View file

@ -0,0 +1,12 @@
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
let b = new TestBinding();
let dict = b.getDictionaryWithParent("parent", "child");
assert_equals(dict.parentStringMember, "parent");
assert_equals(dict.stringMember, "child");
});
</script>