mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
dom: Convert parent dictionary values when converting dictionaries to JS.
This commit is contained in:
parent
a34d1573b6
commit
edf86d1bdc
7 changed files with 57 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
[dictionary_to_jsval.html]
|
||||
prefs: [dom.testbinding.enabled:true]
|
|
@ -13357,6 +13357,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"dictionary_to_jsval.html": [
|
||||
"e31a7e5cfaa0635d41ab2adac96318b574c58a10",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"documentElement.html": [
|
||||
"aee3278ba84ca12a77286a1c03dbaec9fc3a7cd0",
|
||||
[
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[dictionary_to_jsval.html]
|
||||
prefs: [dom.testbinding.enabled:true]
|
12
tests/wpt/mozilla/tests/mozilla/dictionary_to_jsval.html
Normal file
12
tests/wpt/mozilla/tests/mozilla/dictionary_to_jsval.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue