| Index: LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| diff --git a/LayoutTests/fast/dom/idl-dictionary-unittest.html b/LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| index caabc619843076aa3ecfe4bbcba85753da6cf9e6..e16c77181d432d42bc06538c3e8680f268f8cc2e 100644
|
| --- a/LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| +++ b/LayoutTests/fast/dom/idl-dictionary-unittest.html
|
| @@ -253,6 +253,21 @@ if (window.internals && internals.dictionaryTest) {
|
| shouldThrow("dictionaryTest.set({eventTargetOrNullMember: {}})");
|
| debug('');
|
|
|
| + debug('Test for passing Dictionary (not IDL dictionary)');
|
| + dictionaryTest.set({
|
| + dictionaryMember: {'foo': 'x', 'bar': 'y'}
|
| + });
|
| + properties = dictionaryTest.getDictionaryMemberProperties();
|
| + shouldBeEqualToString('properties.foo', 'x');
|
| + shouldBeEqualToString('properties.bar', 'y');
|
| + shouldBeUndefined('properties.baz');
|
| + dictionaryTest.set({dictionaryMember: undefined});
|
| + properties = dictionaryTest.getDictionaryMemberProperties();
|
| + shouldBe('properties', '{}');
|
| + shouldThrow("dictionaryTest.set({dictionaryMember: 42})");
|
| + shouldThrow("dictionaryTest.set({dictionaryMember: 'foo'})");
|
| + debug('');
|
| +
|
| debug('Test for derived dictionary');
|
| dictionaryTest.setDerived({ requiredBooleanMember: true });
|
| derived = dictionaryTest.getDerived();
|
|
|