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 d855f128c0fd279aaac7f1ec1d8225a1767d2b5f..66829caac0c02ff7e4ff9c22615868453a731f0c 100644 |
--- a/LayoutTests/fast/dom/idl-dictionary-unittest.html |
+++ b/LayoutTests/fast/dom/idl-dictionary-unittest.html |
@@ -174,6 +174,13 @@ if (window.internals && internals.dictionaryTest) { |
shouldThrow("dictionaryTest.set({objectMember: 'invalid'})"); |
debug(''); |
+ debug('Test for setting invalid Element value'); |
+ shouldThrow("dictionaryTest.set({elementMember: 42})"); |
+ shouldThrow("dictionaryTest.set({elementMember: testObject1})"); |
+ shouldThrow("dictionaryTest.set({elementMember: []})"); |
+ shouldThrow("dictionaryTest.set({elementMember: document})"); |
+ debug(''); |
+ |
debug('Test for passing invalid dictionary values'); |
shouldThrow("dictionaryTest.set(42)"); |
shouldThrow("dictionaryTest.set('string')"); |