mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
codegen: add tests for non-nullable non-required values
This commit is contained in:
parent
92ba0b9c39
commit
093f5c01e4
3 changed files with 16 additions and 6 deletions
|
@ -9,8 +9,9 @@ test(function() {
|
|||
|
||||
var dict = t.receiveTestDictionaryWithSuccessOnKeyword();
|
||||
assert_equals(dict.type, "success");
|
||||
assert_equals(dict.nonRequiredNullable, undefined);
|
||||
assert_equals(dict.nonRequiredNullable2, null);
|
||||
|
||||
var is_success = t.typeKeywordIsSuccess(dict);
|
||||
assert_true(is_success);
|
||||
}, "Conversion of dictionary elements with rust keywords works")
|
||||
assert_true(t.dictMatchesPassedValues(dict));
|
||||
}, "Conversion of dictionary elements with rust keywords, and null non-required nullable properties works")
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue