Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: LayoutTests/fast/dom/idl-dictionary-unittest.html

Issue 1316833003: bindings: Support (deprecated) Dictionary in IDL dictionary (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698